[OpenIndiana-discuss] bhyve: help nedded for config NVidia GPU passthru

Stephan Althaus Stephan.Althaus at Duedinghausen.eu
Sun Sep 18 20:00:41 UTC 2022


Hello!

I want to have a byhve windows guest on OI see the graphics card NVidia 
GT 1030.

Maybe someone here has something like this working on illumos and is 
able to share hints how to do this or how to do debugging...


I have generally configured 3 PCI devices for passthru:

$ pptadm list -o all
DEV        VENDOR DEVICE SUBVENDOR SUBDEVICE REV 
PATH                                              LABEL
/dev/ppt0  8086   1533   1734      11f1      3 
/pci at 0,0/pci8086,8c14 at 1c,2/pci1734,11f1 at 0         Intel Corporation I210 
Gigabit Network Connection
/dev/ppt1  10de   1d01   1462      8c98      a1 
/pci at 0,0/pci8086,c01 at 1/display at 0                  NVIDIA Corporation 
GP108 [GeForce GT 1030]
/dev/ppt2  10de   fb8    1462      8c98      a1 
/pci at 0,0/pci8086,c01 at 1/pci1462,8c98 at 0,1           NVIDIA Corporation 
GP108 High Definition Audio Controller

but the bhyve zone does not start because of errors:

INFO:root:/usr/sbin/bhyve -U 21113d28-9e90-e5df-9338-acd67c36ed79 -A -H 
-B 1,manufacturer=OpenIndiana,product=OpenIndiana 
HVM,version=1.0,serial=21113d28-9e90-e5df-9338-acd67c36ed79,sku=001,family=Virtual 
Machine -c 2 -m 4G -l bootrom,/usr/share/bhyve/firmware/BHYVE_RELEASE.fd 
-s 0,hostbridge,model=i440fx -s 31,lpc -l com1,/dev/zconsole -s 
4:0,ahci-hd,/dev/zvol/rdsk/home2/vm/win10vol1 -s 
5:0,ahci-hd,/dev/zvol/rdsk/home2/vm/win10vol2 -s 
6:0,virtio-net-viona,vnic1 -s 30:0,fbuf,vga=off,unix=/tmp/vm.vnc -s 
30:1,xhci,tablet -S -s 8:0,passthru,/dev/ppt1 -s 9:0,passthru,/dev/ppt2 
win10
INFO:root:Starting bhyve
INFO:root:Bhyve exited 4
ERROR:root:Error b'bhyve: invalid passthru options\ndevice emulation 
initialization error: No such file or directory\n'
DEBUG:root:Output b''

The part of the zonecfg for passthru is:

add attr
set name="extra"
set type="string"
set value="-S -s 8:0,passthru,/dev/ppt1 -s 9:0,passthru,/dev/ppt2"
end

What am i doing wrong ?


Greetings,

Stephan




More information about the openindiana-discuss mailing list