You are not logged in.
Hi.
I have setup a qemu virtual machine to boot into my Windows 10 disk.
Spice stuff is working: I can use usb redirection, I can copy-paste,
and I can hear audio. Except that the view does not change when I
change the resolution of the guest, so my view is still the tiny
upper-left corner, but the actual display is way bigger.
This is how I am starting the virtual machine:
#!/bin/sh
qemu-system-x86_64 \
-bios /usr/share/ovmf/x64/OVMF.fd \
-drive file=/dev/nvme0n1,format=raw,cache=none,if=virtio \
-enable-kvm \
-cpu host,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time \
-smp cpus=8,cores=4,threads=2,sockets=1 \
-m 8G \
-soundhw hda \
-vga qxl \
-spice unix,addr=/tmp/vm_spice.socket,disable-ticketing \
-device virtio-serial -chardev spicevmc,id=vdagent,debug=0,name=vdagent \
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
-device ich9-usb-ehci1,id=usb \
-device ich9-usb-uhci1,masterbus=usb.0,firstport=0,multifunction=on \
-device ich9-usb-uhci2,masterbus=usb.0,firstport=2 \
-device ich9-usb-uhci3,masterbus=usb.0,firstport=4 \
-chardev spicevmc,name=usbredir,id=usbredirchardev1 \
-device usb-redir,chardev=usbredirchardev1,id=usbredirdev1 \
-chardev spicevmc,name=usbredir,id=usbredirchardev2 \
-device usb-redir,chardev=usbredirchardev2,id=usbredirdev2 \
-chardev spicevmc,name=usbredir,id=usbredirchardev3 \
-device usb-redir,chardev=usbredirchardev3,id=usbredirdev3
Then, I connect with:
remote-viewer spice+unix:///tmp/vm_spice.socket
or
spicy --uri="spice+unix:///tmp/vm_spice.socket"
Both, remote-viewer/virt-viewer and spicy/spice-gtk do not work as
expected, which is why I think it is a configuration error on my part
and not a bug upstream.
This behaviour also occurs when I resize the window. When I resize the
window, the resolution of guest changes, as expected, but the view does
not (for both viewers).
In spicy, I checked the option to resize to guest, but, in
remote-viewer, I do not see that option in "View --> Display --> Scale
Display -->Auto Resize VM with Display", as many sources say. In fact,
I don't see scale display at all!
"Homework" that I did:
* Read the Arch Wiki: https://wiki.archlinux.org/index.php/QEMU
Side note: Audio section seems out of date: "Environment variable based
configuration deprecated."
* Read Spice Manual: https://www.spice-space.org/spice-user-manual.html
* Tried manually adding vram following this advice
(https://www.ovirt.org/develop/internal/video-ram.html) even though
defaults should be fine, according to Arch Wiki:
-global qxl-vga.ram_size=33177600 \
-global qxl-vga.vram_size_mb=8 \
-global qxl-vga.vgamem_mb=8 \
* Reinstalled spice-guest-tools on Windows 10
* Did a lot of searching on Google
What am I doing wrong?
Thanks for your help!
------------------------------------------------------------------------
Edit:
Just to clarify the behaviour I am seeing:
When I resize my window to become bigger, the display overflows outside
my view.
When I resize my window to become smaller, the display fits inside the
view, but there are blackbars, and the view is still the same size.
Last edited by tchici (2020-04-22 17:02:47)
Offline
Finally got this working!
See this:
https://wiki.archlinux.org/index.php/QE … resolution
So, instead of
...
-vga qxl
...
use
...
-device qxl-vga,max_outputs=1
...
Didn't sound related first time I read it, so I ignored it back then, but the
instructions worked!
Offline