Hi! I have a server with an NVIDIA Titan V GPU. I've been successful in setting up GPU passthrough by following the recipe in the PVE wiki: I can see and use the GPU in my VM. I'd like to use this GPU for math computations only, there is no monitor attached. I would also like to allow users to log in using xrdp. All of this currently works. Now here's my problem: As soon as I enable the passed-through GPU in the VM config, the VM doesn't see the standard, virtual VGA card anymore that is specified in the VM config file. It seems that the virtual VGA card gets disabled as soon as the x-vga=on option is given. This has the effect that (1) the NoVNC console in the Proxmox UI can't connect anymore, and (2) that the xrdp X server uses my math GPU.
So, is there a way to keep the virtual VGA card enabled while at the same time passing through a physical GPU? I've tried setting x-vga=off: In that case, the virtual VGA reappears in the VM PCIe bus, but I can't use the physical GPU anymore (it is still on the PCIe bus in the VM, but I can't run CUDA test programs anymore. Nvidia-smi hangs forever. So the nvidia driver is unhappy when x-vga=off.) -- Thanks for your help.
Relevant lines from the VM config:
args: -machine pc,max-ram-below-4g=1G
bios: ovmf
efidisk0: local-lvm:vm-101-disk-1,size=128K
hostpci0: 18:00,pcie=1,x-vga=on
machine: q35
vga: std,memory=64
pveversion: pve-manager/5.2-11/13c2da63 (running kernel: 4.15.18-9-pve)
So, is there a way to keep the virtual VGA card enabled while at the same time passing through a physical GPU? I've tried setting x-vga=off: In that case, the virtual VGA reappears in the VM PCIe bus, but I can't use the physical GPU anymore (it is still on the PCIe bus in the VM, but I can't run CUDA test programs anymore. Nvidia-smi hangs forever. So the nvidia driver is unhappy when x-vga=off.) -- Thanks for your help.
Relevant lines from the VM config:
args: -machine pc,max-ram-below-4g=1G
bios: ovmf
efidisk0: local-lvm:vm-101-disk-1,size=128K
hostpci0: 18:00,pcie=1,x-vga=on
machine: q35
vga: std,memory=64
pveversion: pve-manager/5.2-11/13c2da63 (running kernel: 4.15.18-9-pve)