So a while ago I installed Ubuntu 18.04 Desktop in a KVM virtual machine on a server, using LibVirt / Virt-Manager.
One of the features I noticed (admittedly after some fiddling) was Ubuntu would update the desktop resolution after I resized the SPICE window. [see Figure 1.]
Figure 1. - Well that’s not a standard Resolution
All was good in the world for a while and using SPICE at high resolutions over a 10GBe network is actually close to native in it’s experience.
However one of the main reasons I use virtualization is that I need to test software under a variety of distributions. So when I came to install ANY other distro (that I have tried) I found the feature to set the resolution dynamically missing [see figure 2.]
Figure 2. - The option for a weird resolution isn’t there
So does anyone know what software or configs Ubuntu is using to talk to the virtio video driver and set the dynamic resolution, so I can install it in other distros. It is a real quality of life improvement when working with virtual desktops (and if anyone knows how to do it for Windows I would be eternally grateful)?
TLDR for future readers:
systemctl enable spice-vdagent.service
- ensure that a spice channel is installed in the VM