I am using QEMU/KVM on virt-manager. I am total noob at this so I would really appreciate if someone could help me out. My only issue is that I am not getting a GPU output to my guest monitor (ASUS ROG PG279Q) which is connected via DP; the screen lights up for a second and then goes to sleep mode. But if I plug in my host monitor into my GPU via DP (which is connected to the MoBo with HDMI already) , it boots up to UEFI shell. Is this issue related to my monitor or am I missing something?
Could you explain a little more about your situation? From what I gather you are trying to run windows from linux via virt-manager? Are you able to boot into windows without the passthrough?
Yes, I’m trying to run windows through virt-manager. I think I got the passthrough to work but it just won’t display on the desired guest monitor. I haven’t tried to boot into windows without the passthrough. I’m going to upload a video to show more about my situation soon.
Right, waatched the vid, and as you guessed, the system is defaulting to using the “host” monitor as the primary display when both are plugged in, even if you switch the cables aroud?
I would ask if you could use just the “guest” monitor for the host (plugged direct to motherboard) and the “host” screen in the GPU for the guest, to see if each will run single monitor mode? as a trial
Cool, if the screens work the “wrong” way around, I would presume there is some problem with a connector or cable, and try to play with the combination of cables or ports until it works?
If the “guest” screen still does not work connected to the motherboard, I’d confirm the monitor definitely works? I haven’t come across a monitor that didn’t even just dumb down if advanced features weren’t enabled, But I can;t rule it out. Also maybe check any OSD / settings on guest, in case some crazy profile is set, or timeout, or super low brightness by accident. Or even some bit of fluff / dirt in a socket
Anyway, I gotta hit the hay, it’s 02:07 and I got work tomorrow.
I’ll refer to the monitors as monitor 1 and monitor 2, monitor 1 being the guest monitor (the one on the left in video) and monitor 2 (right monitor) being the the host pc.
I did what you said and made monitor 1 the host pc to see where the VM would launch and it booted into monitor 2.
Next test I used monitor 1 again as host, and monitor 1 was the only thing connected to the GPU; monitor 2 was not connected by any means. Launching VM and checking monitor 1 for display port output yielded no results.
I swapped the display ports and did the same test – yielding same results as above.
For some reason, my GPU only likes monitor 2; monitor 1 is just not being seen by the GPU?
Monitor 1 works completely fine and is not broken whatsoever. As I have dual boot windows in another hard drive and play games in that windows installation.
As far as I know GPU will select which ever monitor they are comfortable with. With my GTX 560 it at first took dvi port that has HDMI adapter connected to HDMI switch, but at some point switched to a monitor directly connected to HDMI so nothing is in between. RTX 2070 on the other hand always like direct HDMI over DP to HDMI adapter that goes to a switch.
Try using HDMI cable to monitor 1 if you have the option.
Edit: I have a few issues with monitors and adapters. For 1 DP to adapter can’t do 21:9 resolution or even detect monitor is capable of it. My other monitor has really loose HDMI connection that some times GPU fail to see it’s even connected.
I have the older version of ASUS ROG PG279Q as my main monitor (PG278Q) - It’s a bit finicky. It would not work without the nvidia-drivers in linux. so YMMV
You need to get troubleshoot why the uefi shell pops up when you boot your vm. It should boot straight into windows if everything is configured ok. Have you made sure to read and complete these steps in the archwiki: (Setting_up_an_OVMF-based_guest_VM)
Also be aware of this from the archwiki:
"It is possible you will be dropped into the UEFI menu instead of starting the installation upon powering your VM for the first time. Sometimes the correct ISO file was not automatically detected and you will need to manually specify the drive to boot. By typing exit and navigating to “boot manager” you will enter a menu that allows you to choose between devices. "
I got it working following those steps. I booted first into windows without the passthrough to install it and make sure all is ok for booting. then I attached the gpu to the VM and booted again and installed nvidia drivers + fixed error code 43
Only guest pc. Read my earlier comment - You need to select your boot media when the uefi shell boots up.
::EDIT:: When you are able to boot into windows - your guest monitor (asus rog) should just start working.
Have you been able to boot into the vm windows w/o the passthru? Have you installed the vm windows? It seems you are halfway there as you are able to see the uefi shell.
Hey, just came back to confirm it was the indeed the drivers at fault! Updated my GPU drivers within the guest pc and sure enough the monitor loaded when rebooted. Thank you, and to everyone that had helped me.
Things I did just in case someone has the same issue:
Launched VM and navigated using the wrong monitor.
Install Geforce Experience and updated my drivers.