virtualization - Fail to Nvidia GPU passthrough in Ubuntu - Ask Ubuntu
i followed this post setup passthrough. referred other articles. installed driver following this article.
i tried both following options qemu 2.2:
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \ -device vfio-pci,host=02:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \ -device vfio-pci,host=02:00.1,bus=root.1,addr=00.1 \ -m q35
and
-device vfio-pci,host=02:00.0,multifunction=on,x-vga=on \ -device vfio-pci,host=02:00.1 \ -vga none
when run lspci -vv
on guest:
01:00.0 vga compatible controller: nvidia corporation gk104 [geforce gtx 760] (rev a1) (prog-if 00 [vga controller]) subsystem: device 196e:0984 physical slot: 0 control: i/o+ mem+ busmaster- speccycle- memwinv- vgasnoop- parerr- stepping- serr+ fastb2b- disintx- status: cap+ 66mhz- udf- fastb2b- parerr- devsel=fast >tabort- <tabort- <mabort- >serr- <perr- intx- interrupt: pin routed irq 10 region 0: memory @ fc000000 (32-bit, non-prefetchable) [size=16m] region 1: memory @ e8000000 (64-bit, prefetchable) [size=128m] region 3: memory @ f0000000 (64-bit, prefetchable) [size=32m] region 5: i/o ports @ c000 [size=128] expansion rom @ fd000000 [disabled] [size=512k] capabilities: <access denied> 01:00.1 audio device: nvidia corporation gk104 hdmi audio controller (rev a1) subsystem: device 196e:0984 physical slot: 0 control: i/o- mem+ busmaster+ speccycle- memwinv- vgasnoop- parerr- stepping- serr+ fastb2b- disintx- status: cap+ 66mhz- udf- fastb2b- parerr- devsel=fast >tabort- <tabort- <mabort- >serr- <perr- intx- latency: 0, cache line size: 256 bytes interrupt: pin b routed irq 17 region 0: memory @ fd080000 (32-bit, non-prefetchable) [size=16k] capabilities: <access denied> kernel driver in use: snd_hda_intel
when run smi:
$ nvidia-smi nvidia-smi has failed because couldn't communicate nvidia driver. make sure latest nvidia driver installed , running.
on host:
02:00.0 vga compatible controller: nvidia corporation gk104 [geforce gtx 760] (rev a1) (prog-if 00 [vga controller]) subsystem: device 196e:0984 control: i/o+ mem+ busmaster- speccycle- memwinv- vgasnoop- parerr- stepping- serr+ fastb2b- disintx- status: cap+ 66mhz- udf- fastb2b- parerr- devsel=fast >tabort- <tabort- <mabort- >serr- <perr- intx- interrupt: pin routed irq 16 region 0: memory @ f9000000 (32-bit, non-prefetchable) [size=16m] region 1: memory @ d8000000 (64-bit, prefetchable) [size=128m] region 3: memory @ d6000000 (64-bit, prefetchable) [size=32m] region 5: i/o ports @ cc00 [size=128] expansion rom @ f8f80000 [disabled] [size=512k] capabilities: <access denied> kernel driver in use: vfio-pci 02:00.1 audio device: nvidia corporation gk104 hdmi audio controller (rev a1) subsystem: device 196e:0984 control: i/o- mem+ busmaster+ speccycle- memwinv- vgasnoop- parerr- stepping- serr+ fastb2b- disintx- status: cap+ 66mhz- udf- fastb2b- parerr- devsel=fast >tabort- <tabort- <mabort- >serr- <perr- intx- latency: 0, cache line size: 256 bytes interrupt: pin b routed irq 17 region 0: memory @ f8f7c000 (32-bit, non-prefetchable) [size=16k] capabilities: <access denied> kernel driver in use: vfio-pci
i've tried figure out several days, rebinding gpu, reinstalling drivers, etc. still don't know step wrong.
did passthrough gpu successfully? how can make work on guest?
any great. in advance.
Comments
Post a Comment