-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
virtio-gpu: Possible to support "Duplicate these displays" ? #993
Comments
Can you please post the qemu command line for viogpudod config? Thanks, |
This is the xml for libvirt
This is the qemu cmdline
Seems libvirt is using
|
Yes, virtio-vga can be a problem. I would suggest to try "-device virtio-gpu-pci" instead. Best, |
Seems that might be a limitation of libvirt
as far as i know doesn't provide a way to specify |
I have very limited knowledge in libvirt but it looks as libvirt knows about virtio-gpu-pci capability |
To be honest, this gave me trouble with some settings after reinstalling the system. |
Don't have working gpu passthrough system at the moment, Vadim. |
It's been a while, but i was messing with my virtual machine today and remembered this issue. After searching a bit about what I have the host machine's GPUs passed through by passing the entire IMMOU group into the VM as exclusive access with VFIO. What I'm trying to do here is support the ability for a remote virt-manager instance to see the desktop in situations where i need to tweak settings. E.g. today my windows 11 vm has decided not to display anything on the screen via the passed through GPU, and i can't access it via spice (virt-manager), but i can RDP into it. |
Just FYI, I have just got "Duplicate these displays" working. I mostly use Moonlight + Sunshine to remotely control the headless PC from MacBook, but I did plug in a monitor to the PC and saw monitor, Moonlight, and VNC all them same. Spec:
Qemu runs inside 2 layers of container, aka. Quemu -> docker -> LXC -> Debian host. But I don't think it matters. Here is my Qemu options. qemu-system-x86_64 \
-machine q35 \
-cpu host \
-enable-kvm \
-smp sockets=1,cores=4,threads=1 \
-m 8G \
-name win10-vfio \
-uuid 4cda0e80-1b50-4323-ab83-020000000006 \
-monitor unix:/win10-vfio/win10-vfio.sock,server,nowait \
-rtc base=localtime \
-device virtio-vga,bus=pcie.0,addr=0x1 \
-device virtio-keyboard-pci,bus=pcie.0,addr=0x2 \
-device virtio-mouse-pci,bus=pcie.0,addr=0x3 \
-device virtio-tablet-pci,bus=pcie.0,addr=0x4 \
-netdev bridge,id=net0,br=br0 \
-device virtio-net-pci,netdev=net0,mac=02:00:00:00:00:06,bus=pcie.0,addr=0x5 \
-drive id=disk0,file=/win10-vfio/win10-vfio.qcow2,index=0,media=disk,if=none,discard=unmap,detect-zeroes=unmap \
-device virtio-blk-pci,drive=disk0,bus=pcie.0,addr=0x6 \
-device qemu-xhci,id=xhci,bus=pcie.0,addr=0x7 \
-audiodev none,id=snd0 \
-device intel-hda,bus=pcie.0,addr=0x8 \
-device hda-output,audiodev=snd0 \
-device vfio-pci,host=00:02.0,rombar=1,x-vga=off,x-igd-gms=1,x-igd-opregion=on,bus=pcie.0,addr=0x9 \
-display vnc=192.168.21.3:6 \
-boot c |
Is your feature request related to a problem? Please describe.
I have a libvirt/virtual-machine-manager Windows 10 virtual machine with a VFIO passed-through physical GPU.
For remote access purposes, I also have a Spice display configured.
When viewing the remote machine via virtual-machine-manager/Spice, when the viogpudod driver isn't installed, Windows configures the "Microsoft Basic Display Driver" for the virtio video device.
With the "Microsoft Basic Display Driver", the resolution is able to be configured as 1920x1080, but has an "Active Signal Resolution" of 1280x800. So the displayed graphics are squished on the virtual-machine-manager screen.
However, Importantly I can set the physical GPU and virtio device as "Duplicate these displays", which shows allows the remote machine to see the same data that's on the physical screen.
If i install the viogpudod driver the resolution can be set to 1920x1080 properly (though the "Active Signal Resolution" is shown as -1x-1, which doesn't seem right), However, i can't set "Duplicate these displays", meaning that I can't see what's on the physical screen from the remote virtual-machine-manager screen.
Is it possible to add support for duplicating the display? It's not clear that this is possible for display-only-drivers to support the "Duplicate these displays" feature, but the "Microsoft Basic Display Driver' seemingly supporting this makes me think it's possible.
The text was updated successfully, but these errors were encountered: