Something very wonky is still going on with my AX201. When I run it through iwlwifi it occasionally works, but I get loads of flickering and instability with KDE5. Same story on 14.0-RELEASE, 14.1-RC1 and CURRENT. However, now that I use wifibox the desktop also cleared up completely. The system suddenly feels rock-solid. Typing this from CURRENT right now, but will revert this setup back down once 14.1-RELEASE hits in a few days.
Lots of complicated interactions going on apparently. Looks like wifibox is the path of least resistance for those with AX201 + recent Intel iGPU graphics and a need to get their laptop to just work in the short term. How to get that running?
First install wifibox-iwlwifi through pkg. It takes care of its own dependencies.
This gives you something like:
Code:
ppt0@pci0:0:20:3: class=0x028000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x51f1 subvendor=0x8086 subdevice=0x0074
vendor = 'Intel Corporation'
device = 'Raptor Lake PCH CNVi WiFi'
class = network
The interesting part here is the pci0:0:20:3 bit, that tells you what you need to pass on to the Linux VM. Edit the config file /usr/local/etc/wifibox/bhyve.conf for that. There's a line in there that starts with 'passthru='. Mine currently is:
Note that this mirrors the digits you found through the pciconf command earlier. These numbers differ depending on where your WiFi card appears on the PCI bus.
I copied my /etc/wpa_supplicant.conf into /usr/local/etc/wifibox/wpa_supplicant/ directory unmodified so that the VM knows how to connect to my network at all.
In /etc/rc.conf you need to have a few things that set up wifibox and block out the loading of iwlwifi and iwm:
Code:
devmatch_enable="YES"
devmatch_blocklist="if_iwm if_iwlwifi"
wifibox_enable="YES"
I rebooted after this and manually ran dhclient against the wifibox0 interface. That got me an IP address from the VM and I could use the IPv4 internet. To make this stick, add the following to /etc/rc.conf:
Code:
ifconfig_wifibox0="SYNCDHCP"
IPv6 is also possible. This comes straight from the wifibox manpage and works fine in my /etc/rc.conf:
Code:
ifconfig_wifibox0_ipv6="inet6 fd00::1/64 accept_rtadv auto_linklocal"
For me personally, this is all I need. My laptop doesn't need any open ports (even though this is doable) and double NAT is acceptable for my needs. The box is plenty fast enough and I have 32GB of RAM in here so I won't notice the tiny 128MB Alpine VM running in the background.