Automatic screen resolution of Windows VM

How do I make “automatic screen resolution” work with a Windows VM?

In the VM guest I have installed virtio-win-0.1.271.iso. (I installed virtio-win-guest-tools.exe and virtio-win-qt-x86.msi). I also installed spice-guest-tools-latest.exe.

What’s working is:

  • share host folder in guest
  • copy-paste works between host and guest (both ways)
  • Display driver is “Red Hat Virtio GPU DOD”
  • A lot of static display resolutions to choose from

What doesn’t work is to be able to select a mode that automatically adjusts the resolution to the size of the host window. Is this at all possible in this setup? I know that VirtualBox can do it.

BTW. It does scaling when resizing the host window, but that is not what I want.

You’ld need to find out first whether QEMU has the feature of changing resolution automatically upon the change of the windows size.

In virt-manager there seems to be an option “View” → “Scale Display” → “Auto resize VM with window”.

But I’m using Incus. How would that virt-manager option translate into something that Incus understands?

Incus is using virt-viewer/remote-viewer as a way to view VMs.
You may have to add the configuration in the config file, /usr/share/appdata/remote-viewer.appdata.xml