I’m trying to use virt-manager, but when I launch a VM, the resolution doesn’t scale properly. See the black bars on the left and right sides in the attached screenshot:
I am using workstation and am able to set the resolution in the display settings for the VM. Once I have done that then I resize the window to match the size of the VM desktop.
In your image it may scale if you expand the window vertically. The layout (16x9) is normally fixed to avoid distortion of images that expand in one direction but not the other.
I have vdagent services running and I do not see the VM resize when I change the Windows size.
I do have these errors
Nov 05 12:49:34 f43kde.internal spice-vdagent[1966]: Adding graphics device info: channel_id: 0 monitor_id: 0 device_address: pci/0000/01.0, device_display_id: 0 xrandr output ID: 33
Nov 05 12:49:34 f43kde.internal spice-vdagent[1966]: display: failed to call GetCurrentState from mutter over DBUS
Nov 05 12:49:34 f43kde.internal spice-vdagent[1966]: error message: Cannot invoke method; proxy is for the well-known name org.gnome.Mutter.DisplayConfig without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag
If you use xorg and wayand mixed, the resize has to be don in the terminal manually as a workaround.
I used xfce in a virt-manager window while running Workstation/Wayland.
One workaround is to run the following in the guest every time you resize your window:
I am on Workstation too. After installing the pakage mentioned, and if you are in a xfce guest, and still get the issue of not increasing to window size, you will need the command i posted.
Remember, it is for x11 guests on a wayland v-machine.
So you need to execute in the terminal of the guest.
This has mostly solved my issue. A few things to note:
spice-vdagent is already installed, but I got an error message when I tried installing it. I’m not sure if I should be concerned about the “–allow-inactive” flag: