I want to pass my WLAN card to bhyve VM. Host is FreeBSD 13.0-RC5, tried on FreeBSD, OpenBSD and Linux guests.
WLAN card is M.2 device and works on host. Passing another PCIe card (PCIe x4 LAN) to guests works.
WLAN card on host:
WLAN card under FreeBSD guest:
Settings on host:
Is it WLAN card problem? Motherboard BIOS problem (M.2 E-key slot vs normal PCIe)?
WLAN card is M.2 device and works on host. Passing another PCIe card (PCIe x4 LAN) to guests works.
WLAN card on host:
Code:
Apr 7 12:11:55 hostname kernel: ath0: <Atheros AR946x/AR948x> mem 0xfc500000-0xfc57ffff at device 0.0 on pci7
Apr 7 12:11:55 hostname kernel: ath0: [HT] enabling HT modes
Apr 7 12:11:55 hostname kernel: ath0: [HT] enabling short-GI in 20MHz mode
Apr 7 12:11:55 hostname kernel: ath0: [HT] 1 stream STBC receive enabled
Apr 7 12:11:55 hostname kernel: ath0: [HT] 1 stream STBC transmit enabled
Apr 7 12:11:55 hostname kernel: ath0: [HT] LDPC transmit/receive enabled
Apr 7 12:11:55 hostname kernel: ath0: [HT] 2 RX streams; 2 TX streams
Apr 7 12:11:55 hostname kernel: ath0: AR9460 mac 640.3 RF5110 phy 73.0
Apr 7 12:11:55 hostname kernel: ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000
WLAN card under FreeBSD guest:
Code:
# dmesg | grep -i ath
[ath_hal] loaded
ath0: <Atheros AR946x/AR948x> mem 0xc0080000-0xc00fffff at device 6.0 on pci0
ath0: could not map interrupt
device_attach: ath0 attach returned 6
ath0: <Atheros AR946x/AR948x> mem 0xc0080000-0xc00fffff at device 6.0 on pci0
ath0: could not map interrupt
device_attach: ath0 attach returned 6
Settings on host:
Code:
# vm passthru
DEVICE BHYVE ID READY DESCRIPTION
...
ppt4 9/0/0 Yes AR9462 Wireless Network Adapter
...
# pciconf -lv
...
ppt4@pci0:9:0:0: class=0x028000 rev=0x01 hdr=0x00 vendor=0x168c device=0x0034 subvendor=0x11ad subdevice=0x0802
vendor = 'Qualcomm Atheros'
device = 'AR9462 Wireless Network Adapter'
class = network
...
# cat /mnt/vm/fbsd/fbsd.conf
...
passthru0="9/0/0"
...
Is it WLAN card problem? Motherboard BIOS problem (M.2 E-key slot vs normal PCIe)?
Last edited: