Return to Level1Techs.com

QubesOS GPU passthrough [NVIDIA]


#1

Hi
I’m trying to build a working machine based on the “QubesOS” operating system my goal is to work in 3D and Render
My Hardware:

  • CPU AMD1800x
  • MB crosshair VI hero
  • GPU GTX980 and 780TI

My question:
it is possible to pass 2 GPUs to the same VM?
I have to buy another GPU for the QubesOS system, some recommendation?
(low cost 2GB or 3GB for an HDMI monitor 1920x1080)

VM Creation Method and Problems: (passGTX780ti for test)

qvm-create --class StandaloneVM --label red --property virt_mode=hvm win7test
qvm-prefs win7test memory 4096
qvm-prefs win7test maxmem 4096
qvm-prefs win7test kernel ‘’
qvm-volume extend win7test:root 50g
qvm-prefs win7test debug true
qvm-features win7test video-model cirrus
qvm-start --cdrom=vmDownloads:/home/user/isos/w7.iso win7test
->restart
qvm-start win7test
->Windows is installed and working
qvm-prefs win7test memory 2048
qvm-prefs win7test maxmem 2048
qvm-features --unset win7test video-model
qvm-prefs win7test qrexec_timeout 300
qvm-prefs win7test debug false

in dom0:
lspci
0b:00.0 (gtx780tivga)
0b:00.1 (gtx780ti audio)

in /etc/default/grub
add:
GRUB_CMDLINE_LINUX="… rd.qubes.hide_pci=0b:00.0,0b:00.1 modprobe=xen-pciback.passthrough=1 xen-pciback.permissive"
GRUB_CMDLINE_XEN_DEFAULT="… dom0_mem=min:1024M dom0_mem=max:4096M"

update grub:
grub2-mkconfig -o /boot/grub2/grub.cfg

reboot
Add in GUI
VM-win7test -> gtx780ti vga and audio

-> qvm-start win7test

Problems:
windows detect GPU
I install software rendering no gpu detect and no CUDA
i Install new Nvidia driver i have erro43

this was my experience for now,
Thanks in advance


#2

Perhaps this link might help.


#3

Hi,
I follow the tutorial, but I can not find a way to overcome the error43
thank you


#4

Isn’t error 43 Nvidia’s anti-virtualization-on-consumer-cards crippling related?


#5

i think yes
I read on Arch tuto, i need hide the vendor_id, but i have no idea how to make in (XEN) QubesOS

Edit:
link