Sample Header Ad - 728x90

Qemu GPU/Display passthrough

0 votes
0 answers
341 views
I want to passthrough my GPU to the QEMU Guest and it complete control of my monitor (seem as if it was the ONLY OS running) I have tried on a laptop with only the built-in monitor and the screen just went blank. I guess in a PC it would work if we connect the monitor directly to the GPU but I can't test it. **Questions**: 1) Is it possible to passthrough my GPU and give control of the monitor to my guest by connecting the monitor directly to the GPU? 2) Is it possible to give control of my laptop monitor to the guest and passthrough my GPU? **NOTES** * My laptop is runing Ubuntu Cinnamon * I'd like to specify the use of QEMU with KVM even though I think it's obvious? * I would like to NOT use any host/client applications **Similar Post** I found a question (https://unix.stackexchange.com/questions/632645/an-equivalent-of-looking-glass-where-vm-side-runs-linux) that requires a host/client application to basically have the host write the frames back. I would like to not resort to this tactic and give the guest complete control of the monitor. **EDIT:** **Goal** My goal is to have a VM running as a bare-metal machine (when it comes to the monitor) while passing the GPU to that VM (Which means no monitor for the host OS => Black screen on the laptop's monitor) **Example** Imagine I want to run a Mac VM (not bare-metal) on my laptop which has linux, If I want better performance I need to either find a way to add a second GPU to my laptop. If it is possible to display stuff to the monitor of the laptop directly from the VM I can passthrough my GPU without having a second one. Now the constraint of not using other software (like "Looking Glass"). If i want to add different guest (like a custom OS) where the software is not available I would need to either port the software or still fall back to getting a second GPU. So if it's possible I want to avoid something like this. **NOTE 2** The question is not specific for MacOS, I just found it easier to explain with this since you can't just install it without finding drivers etc, etc.
Asked by user18812922 (1 rep)
Apr 21, 2024, 01:42 PM
Last activity: Apr 27, 2024, 05:45 PM