I added a GPU according to https://wiki.freebsd.org/bhyve/pci_passthru. This shows up as expected, but
I am at a loss.
bhyve
complains that "PCI device at 5/0/0 is not using the ppt(4) driver". /boot/loader.conf
:
Code:
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
cryptodev_load="YES"
zfs_load="YES"
vmm_load="YES"
pptdevs="5/0/0 5/0/1"
amdtemp_load="YES"
pciconf -lv | grep -A4 ppt
:
Code:
ppt0@pci0:5:0:0: class=0x030000 rev=0xc1 hdr=0x00 vendor=0x1002 device=0x743f subvendor=0x1849 subdevice=0x5226
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 24 [Radeon RX 6400/6500 XT/6500M]'
class = display
subclass = VGA
ppt1@pci0:5:0:1: class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0xab28 subvendor=0x1002 subdevice=0xab28
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 21/23 HDMI/DP Audio Controller'
class = multimedia
subclass = HDA
Code:
bhyve -AHP -w -c 2 -S -m 1G \
-s 0:0,hostbridge \
-s 1:0,lpc \
-s 2:0,virtio-net,tap0 \
-s 3:0,virtio-blk,/dev/zvol/zroot/prison/bhyve/ubuntu/disk \
-s 4:0,ahci-cd,./install.iso \
-s 5:0,passthru,5/0/0 \
-s 5:1,passthru,5/0/1 \
-s 29,fbuf,tcp=0.0.0.0:5900,w=940,h=720,wait \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd ubuntu
I am at a loss.