When adding the Intel Wifi device, I get no errors and
ifconfig -a / iw list / iw dev within the instance is not listing the wifi, the host still lists it.
I followed the demo shown in Using the LXD Kali container image – Mi blog lah!.
The profile used for the instance:
lxc profile device add p-hotspot1 intelwifi nic nictype=physical parent=wlo1 name=wlan0
There is also no reference to the wlo1 device in /var/snap/lxd/common/lxd/logs/inst-hotspot1/lxc.conf
I am able to pass USB Modemsticks without problems.
Also the Intel PCI Ethernet interfaces (enp36s0f0 -enp36s0f3) are usable in the instance by doing
lxc profile device add p-net-internet1 n-internet1 nic nictype=physical parent=enp36s0f3 name=n-internet1
and disappears on the host.
Do you have any hints?
Versions:
lxd --version
4.0.5
uname -a
Linux jupiter-host 5.4.0-72-generic #80-Ubuntu SMP Mon Apr 12 17:35:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
lxc network list:
root@jupiter-host:/# lxc network list
+-----------------+----------+---------+-------------+---------+
| NAME | TYPE | MANAGED | DESCRIPTION | USED BY |
+-----------------+----------+---------+-------------+---------+
| enp36s0f0 | physical | NO | | 0 |
.....
| wlo1 | physical | NO | | 1 |
+-----------------+----------+---------+-------------+---------+
lspci:
lspci | grep Intel
...
24:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
24:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
24:00.2 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
24:00.3 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
...
28:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
...
ifconfig:
wlo1: flags=4098<BROADCAST,MULTICAST> mtu 1500
Wifi infos:
iw dev phy#0 Interface wlo1 ifindex 7 wdev 0x1
iw list | more
Wiphy phy0
max # scan SSIDs: 20
max scan IEs length: 365 bytes
max # sched scan SSIDs: 20
iw phy0 info|grep netns
* set_wiphy_netns