pkg install vm-bhyve grub2-bhyve bhyve-firmwaremkdir /home/vm # or 'zfs create pool/vm' if you are using zfssysrc vm_enable="YES"sysrc vm_dir="/home/vm" # or "zfs:pool/vm"vm init
net.link.bridge.pfil_bridge -> 1net.link.bridge.pfil_member -> 0
vm switch create -t manual -b bridge0 public
[root@router ~]# vm passthruDEVICE BHYVE ID READY DESCRIPTIONhostb0 0/0/0 No -vgapci0 0/2/0 No JasperLake [UHD Graphics]none0 0/4/0 No Dynamic Tuning servicexhci0 0/20/0 No -iwlwifi0 0/20/3 No Wi-Fi 6 AX201 160MHz <--- This!sdhci_pci0 0/20/5 No -
vmm_load -> YESpptdevs -> 0/20/3
[root@router ~]# vm passthruDEVICE BHYVE ID READY DESCRIPTIONhostb0 0/0/0 No -vgapci0 0/2/0 No JasperLake [UHD Graphics]none0 0/4/0 No Dynamic Tuning servicexhci0 0/20/0 No -ppt0 0/20/3 Yes Wi-Fi 6 AX201 160MHz sdhci_pci0 0/20/5 No -
vm create -s0 openwrt # zero size imagecd /home/vm/openwrt # or /pool/vm/openwrtrm disk0.img # we won't be using the default created imgfetch https://downloads.openwrt.org/releases/22.03.5/targets/x86/64/openwrt-22.03.5-x86-64-generic-ext4-combined-efi.img.gzgunzip openwrt-22.03.5-x86-64-generic-ext4-combined-efi.img.gz
loader="uefi"cpu=2memory=512M # 256MB should be enough but just in casenetwork0_type="virtio-net"network0_switch="public"disk0_type="virtio-blk"disk0_name="openwrt-22.03.5-x86-64-generic-ext4-combined-efi.img"passthru0="0/20/3=7:0" # We map the device to slot 7 on OpenWrt
vm start -f openwrt
passwd # set root password/etc/init.d/odhcpd disable # Disable OpenWRT DHCP & DNS servers/etc/init.d/dnsmasq disableuci set network.lan.ipaddr='192.168.99.2/24'uci set network.lan.gateway='192.168.99.1'uci set network.lan.dns='192.168.99.1' uci commit/etc/init.d/network restartopkg updateopkg install luci
opkg install kmod-iwlwifi iwlwifi-firmware-ax210 hostapd-opensslreboot
devctl set driver -f pci0:2:0:0 ppt
it says booting and I get the prompt again ..How can I connect to console for the next steps.
vm listvm console <vm-name>
[ 5.754377] iwlwifi 0000:00:08.0: minimum version required: iwlwifi-ty-a0-gf-a0-39[ 5.755603] iwlwifi 0000:00:08.0: maximum version supported: iwlwifi-ty-a0-gf-a0-66
cd /lib/firmwarewget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/iwlwifi-ty-a0-gf-a0-66.ucode
Once again thank you for help in advance.