Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Aug 2021 14:47:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 258007] FreeBSD and Linux guest os emulated with bhyve can't pass thru any of my NVIDIA graphic cards : the vm freezes before to starting the boot of the disk.
Message-ID:  <bug-258007-27103-6LGo55Fvl3@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-258007-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-258007-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258007

--- Comment #5 from mario felicioni <marietto2008@gmail.com> ---
Here we go. I've installed FreeBSD instead of Linux with bhyve and I tried =
to
pass thru the rtx 2080 ti using this command :

Code:

bhyve   -S -c 4 -m 8G -w -H \
        -s 0,hostbridge \
        -s 1,passthru,1/0/0 \
        -s 1:1,passthru,1/0/2 \
        -s 1:2,passthru,1/0/3 \
        -s 2,virtio-blk,/mnt/da1p1/vms/os/freebsd-13R/freebsd-13R.img \
        -s 3,virtio-net,tap0 \
        -s 29,fbuf,tcp=3D0.0.0.0:5900,w=3D1440,h=3D900 \
        -s 30,xhci,tablet \
        -s 31,lpc -l com1,stdio \
        -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
        vm0


as u can see :

1) I didn't pass thru the device 1/0/1 because it is the audio device
integrated with the rtx 2080 ti
2) I have removed the emulated audio device
3) I have installed freebsd 13R instead of linux
4) without the passthru lines it works

but it didn't work. it freezes on the black screen before to itizialize the
disk. On /boot/loader.conf I have added this :

Code:

pptdevs=3D"1/0/0 1/0/2 1/0/3"


Code:

pciconf -v -l

ppt0@pci0:1:0:0:    class=3D0x030000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de
device=3D0x1e04 subvendor=3D0x19da subdevice=3D0x2503
    vendor     =3D 'NVIDIA Corporation'
    device     =3D 'TU102 [GeForce RTX 2080 Ti]'
    class      =3D display
    subclass   =3D VGA

hdac0@pci0:1:0:1:    class=3D0x040300 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de
device=3D0x10f7 subvendor=3D0x19da subdevice=3D0x2503
    vendor     =3D 'NVIDIA Corporation'
    device     =3D 'TU102 High Definition Audio Controller'
    class      =3D multimedia
    subclass   =3D HDA

ppt1@pci0:1:0:2:    class=3D0x0c0330 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de
device=3D0x1ad6 subvendor=3D0x19da subdevice=3D0x2503
    vendor     =3D 'NVIDIA Corporation'
    device     =3D 'TU102 USB 3.1 Host Controller'
    class      =3D serial bus
    subclass   =3D USB

ppt2@pci0:1:0:3:    class=3D0x0c8000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de
device=3D0x1ad7 subvendor=3D0x19da subdevice=3D0x2503
    vendor     =3D 'NVIDIA Corporation'
    device     =3D 'TU102 USB Type-C UCSI Controller'
    class      =3D serial bus

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258007-27103-6LGo55Fvl3>