How do I get host (not VM) monitor output with gpu passthrough?

alex01763

Member
Feb 28, 2023
32
3
13
I'm trying to debug some stuff directly on the server with keyboard and monitor plugged in. However with having gpu pcie passthrough enabled, I don't have access to the output of the proxmox terminal on either integrated gpu, nor the external(pcie) gpu. I've searched online but everyone seems to be talking about how to get the outputs of VMs through the gpu, but that's not what I want. I want to see the host terminal through either integrated, not passed through gpu, or pcie passed through gpu. though in my understanding the former is much likely option. My passthrough setup is exactly like this: https://pve.proxmox.com/wiki/PCI(e)_Passthrough with video=vesafb:off,efifb:off added to grub. Did I do something wrong, or do I have to just deal with it?

I'm using an old intel cpu with an nvidia t400 gpu
 
Undo the PCI passthrough completely or unbind the vfio-pci driver and load the actual driver for the GPU. Have a look at thse old threads: https://forum.proxmox.com/threads/p...vidia-driver-gpu-from-a-vm.157018/post-719050
PS: video=vesafb:off,efifb:off is invalid (for a long time now) and does nothing.
Wouldn't that require me to shut off the vm I'm using? I read the thread and the original poster there seem to be wanting to switch between vm/lxcs so that won't be a problem in that case. I'm running a nas server with the gpu passed through, so it would be great if I woudn't have to keep switching my vm off and on again.
 
I'm running a nas server with the gpu passed through, so it would be great if I woudn't have to keep switching my vm off and on again.
PCI(e) passthrough gives the whole device to a VM and you cannot use if from the Proxmox host. Either get another GPU or remove it from the VM.
I'm not sure if you can hot unplug the GPU from VM and, if you can, the operating system inside the VM might not deal with it well. Maybe research QEMU/KVM PCI device hot-(un)pluging if you want to try this.
 
  • Like
Reactions: UdoB
PCI(e) passthrough gives the whole device to a VM and you cannot use if from the Proxmox host. Either get another GPU or remove it from the VM.
I'm not sure if you can hot unplug the GPU from VM and, if you can, the operating system inside the VM might not deal with it well. Maybe research QEMU/KVM PCI device hot-(un)pluging if you want to try this.
My motherboard doesn't have any more x16 slots and proxmox, at least in my setup, doesn't seem to work too well with hot unplugging gpus. I'll look into what you said.