I am trying to run alpine linux as a guest in bhyve.
/boot/loader.conf:
/etc/rc.conf:
I have rebooted an can confirm that any USB devices plugged into the host no longer work with the host, so I am resorting to control the host over SSH.
Once I'm in, I am running vm-bhyve, specifically, alpine linux with the hopes of setting up hostapd to run a wifi AP.
alpine.conf:
Now, the only configuration that successfully booted is the one with passthru0 set to 0/20/0 (the xHCI USB controller). If I include all of them, or any other controller or combination thereof, it won't boot. When including the xHCI controller and I run lsusb, I can see 2 USB hubs, but nothing beyond that. Additionally, running dmesg in the guest isn't showing any USB devices. I can see that the xhci kernel modules are loaded (lsmod | grep xhci).
/boot/loader.conf:
Code:
vmm_load="YES"
pptdevs="0/20/0 0/26/0 0/29/0"
pciconf -lv
:
Code:
ppt0@pci0:0:20:0: class=0x0c0330 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1e31 subvendor=0x1028 subdevice=0x0577
vendor = 'Intel Corporation'
device = '7 Series/C210 Series Chipset Family USB xHCI Host Controller'
class = serial bus
subclass = USB
ppt1@pci0:0:26:0: class=0x0c0320 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1e2d subvendor=0x1028 subdevice=0x0577
vendor = 'Intel Corporation'
device = '7 Series/C216 Chipset Family USB Enhanced Host Controller'
class = serial bus
subclass = USB
ppt2@pci0:0:29:0: class=0x0c0320 rev=0x04 hdr=0x00 vendor=0x8086 device=0x1e26 subvendor=0x1028 subdevice=0x0577
vendor = 'Intel Corporation'
device = '7 Series/C216 Chipset Family USB Enhanced Host Controller'
class = serial bus
subclass = USB
/etc/rc.conf:
Code:
vm_enable="YES"
vm_dir="zfs:z_250.3/vms"
I have rebooted an can confirm that any USB devices plugged into the host no longer work with the host, so I am resorting to control the host over SSH.
Once I'm in, I am running vm-bhyve, specifically, alpine linux with the hopes of setting up hostapd to run a wifi AP.
alpine.conf:
Code:
loader="grub"
guest="linux"
cpu=1
memory=512M
network0_type="virtio-net"
network0_switch="public"
disk0_type="virtio-blk"
disk0_name="disk0.img"
grub_install0="linux /boot/vmlinuz-virt initrd=/boot/initramfs-virt alpine_dev=cdrom:iso9660 modules=loop,squashfs,sd-mod,usb-storage,sr-mod"
grub_install1="initrd /boot/initramfs-virt"
grub_run0="linux /boot/vmlinuz-virt root=/dev/vda3 modules=ext4"
grub_run1="initrd /boot/initramfs-virt"
network0_mac="58:9c:fc:0f:de:05"
uuid="58a719b9-6c30-11ec-a85f-b8ca3a7a3269"
# @see: [URL]https://github.com/churchers/vm-bhyve/blob/master/sample-templates/config.sample[/URL]
# pass the PCI USB device
passthru0="0/20/0"
Now, the only configuration that successfully booted is the one with passthru0 set to 0/20/0 (the xHCI USB controller). If I include all of them, or any other controller or combination thereof, it won't boot. When including the xHCI controller and I run lsusb, I can see 2 USB hubs, but nothing beyond that. Additionally, running dmesg in the guest isn't showing any USB devices. I can see that the xhci kernel modules are loaded (lsmod | grep xhci).