virt-manager guest resize not working

auto resize vm with window greyed out
virt-manager change screen resolution
auto resize vm with window disabled
virt-manager vmvga
spice guest tools
qemu-guest-agent
qemu resize window
install spice guest tools ubuntu

Installed virt-manager, target virtual machine is debian jessie with spice-vdagent installed shared clipboard, and latency-free mouse input works

Display: Spice Video: QXL Channel spice: spicevmc, virtio, com.redhat.spice.0 (confirmed /dev devices exist in target vm)

Make sure guest resizing is enabled in virt-manager:

Menu View -> Scale Display -> Auto resize VM with window (Checked)

I found a setting in spicy that I assumed had an equivalent in virt-maanger. Aside, to connect with spicy from spice-client-gtk package; find the port to connect to by checking sudo ss -nlp | grep qemu, and connected to that port on localhost. Spicy's toggle for this was much easier to find: Options -> Resize guest to match window size (Checked).

No Auto Resize with SPICE and virt-manager, I've got it randomly working a few times but it also randomly stops working. It's currently not working and I'm not sure what I need to do to get it to work reliably ( like� Host: Ubuntu 16.10 Guest: Ubuntu 16.04.2, et. al (I've tried with other Linux distros with similar results) Guest: created using virt-manager Guest: installed spice-vdagent Guest: virt-manager > View > Scale Display > Auto resize VM with window (checked) spice. user@ubuntu:~$ ps aux | grep spice root 805 0.0 0.0 30568 260 ?

According to Installing Windows 10 in KVM + libvirt, visit Spice then scroll down to Windows binaries and then click the link spice guest tools. Proceed to install the spice tools after download completes. Once installation is complete, you should be able to get the guest VM resolution to match that of the resized VM window.

For me, "Auto resize VM with window" was greyed out until I installed the spice guest tools; I did not even have to reboot after installation - this feature was available immediately and it just worked - :).

Host machine: Ubuntu 16.04.6 LTS (Xenial Xerus)

Guest VM: Windows 10 Pro (Version 1809 build 17763.379)

virt-manager guest resize not working - virtual-machine - html, Make sure guest resizing is enabled in virt-manager: Menu View -> Scale Display -> Auto resize VM with window (Checked) I found a setting in spicy that I� Note: not Display, but a separate entry further down in the left-hand-side Hardware list in virt-manager. If video was set to VGA or QXL , I could not resize the guest. Then I changed the video hardware to Virtio , and the problem went away.

@ThorSummoner's approach works, but if you have a high resolution monitor, the guest video driver may not have enough memory to draw the larger screen. In that case, you will need to increase the video memory, but unfortunately the virt-manager GUI doesn't provide a method to do so. So instead follow this procedure:

  1. View -> Details -> copy the UUID.
  2. sudo virsh edit <copied uuid>
  3. Look for a line like the following: <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>. Your type and other parameters may be different, but as long as there's a vgamem, you can continue.
  4. Change vgamem to 32768
  5. Save & exit. The config file will automatically be checked for errors.

Then restart your VM, and try again.

[SOLVED] QEMU + Virt-Manager = No resize VM to Window feature , I have a small issue with my QEMU VM's which for some reason i now dont Permission issues come to mind as a potential cause. If i hover the mouse over the option to auto resize it tells me "guest agent not available". Virtual hosts are managed via Virt-Manager installed on a CentOS 7 + KDE client via SSH. Things are running quite nicely for now, I only have a few small minor details to adjust. On my main workstation running Slackware64 14.1, I also have Qemu/KVM and Virt-Manager installed. When I launch a virtual host and switch to full-screen display, the

For XFCE, this is a known bug which does not appear to have been fixed yet (confirmed still broken in Xubuntu 20.04).

This issue is due to a change in spice-vdagent whereby instead of changing the resolution directly, it instead notifies the DE to make the change, and that functionality has not been implemented yet in XFCE.

One workaround is to run the following in the guest every time you resize your window:

$ xrandr --output Virtual-1 --auto

491683 – virt-manager no longer auto adjusts to guest screen size, I have the same problem, virt-viewer doesn't auto resize. I'm using Fedora 11 Beta x86_64. Comment 7 Cole Robinson 2009-04-27 11:36:10 UTC. Danpb, any � After the reboot, go to View -> Auto-resize guest display and check the option. Now whenever you resize the window of your guest Windows install, it’ll resize automatically to your new window size. If this does not work for you, make sure you’re running at least Virtualbox 5.0.8 or later, I’ve had flaky results on previous versions.

Short answer that worked for me:

I also have Display set to Spice. If the VM's virtual Video hardware was set to VGA or QXL, I could not resize the desktop in the guest. When I changed Video to Virtio in virt-manager and restarted the VM, it worked.

Longer background in case it's useful to future visitors:

I ran into this problem in May 2020 and while the older answers here were of some help I thought I'd add some clarifications since the virt-manager UI and libvirt capabilities continuously evolve.

In my case, I have a Fedora 32 (KDE Spin) Linux host and the same OS in the guest. My virt-manager version is 2.2.1.

As with thorsummoner's original situation above I am using Display Spice so I can have goodies like the shared clipboard between host and guest.

The guest seemed stuck on 1024x768. xrandr in the guest showed lots of higher resolutions available, but when I tried to set the resolution to 1920x1080 -- whether with xrandr --output Virtual-1 --mode 1920x1080 or with Plasma's Display setting -- it would only momentarily change to the higher resolution. Then, clunk, it would change right back.

Explicitly setting a higher level VGA video memory did not work (although it did help for another problem long ago).

No matter what I set virt-manager's View -> Scale to display menu options to, this still happened.

The fix for me was in the virtual hardware Video settings. Note: not Display, but a separate entry further down in the left-hand-side Hardware list in virt-manager.

If video was set to VGA or QXL, I could not resize the guest.

Then I changed the video hardware to Virtio, and the problem went away. I could resize the desktop with either xrandr commands or the GUI Display preferences, and the changes would stick even after restarts.

Of course the guest VM should be cleanly shut down before making this change to its virtual hardware settings.

1290586 – Auto-screen-resolution change of qxl/spice guest not , Description of problem: Auto-resize resolution of guest appears to work out-of-the -box with gnome (F23) installed via virt-manager as guest with� So I can now resize the virt-manager window and the guest adapts! The output device shown by xrandr also changed from Virtual-0 to qxl-0. As I didn't change anything in the host, guest or VM configuration, I guess it's just a new package. There are still some glitches, but I am happy to see that it starts working now

How to get auto-resizing guest OS display on KVM/Virt-Manager , With Virt-Manager, I created a VM with guests like Ubuntu, Fedora, CentOS etc. For Windows guest I had to install a special graphics driver to even be able to� Resize LVs etc inside the guest (This can also be done offline using guestfish(1)) Once the guest has booted you should see the new space available, at least for filesystems that virt-resize knows how to resize, and for PVs. The user may need to resize LVs inside PVs, and also resize filesystem types that virt-resize does not know how to expand.

QA:Testcase Virtualization Spice Features, Connect to the VM graphical console with virt-manager. Select View->Scale Display->Auto resize VM with window. Once selected, resize the viewer window: after a moment, the guest should automatically resize its resolution to fit the window. Try it a few more times, it should continue to work. Note that resizing guest virtual machines in some cases may become problematic. If virt-resize fails, there are a number of tips that you can review and attempt in the virt-resize(1) man page. For some older Red Hat Enterprise Linux guest virtual machines, you may need to pay particular attention to the tip regarding GRUB.

Bug #1479717 “Auto resize VM doesn't work with windows 10 guest , My ubuntu system is up-to-date and I'm using QEMU emulator version 2.2.0. I use virt-manager 1.0.1 and SPICE guest tools 0.100 are installed�

Comments
  • The spice-client setting has no effect for me.
  • @gamen I had to make sure I was using QXL video, not Virtio or VGA. I don't really know why, but it seems QXL is the only one that supports that setting to resize the guest with the host window size.
  • Thanks. Note that you can also do this in virt-manager by going to Video QXL in the hardware details view and clicking on the "XML" tab.
  • @bart - I see no such XML tab in virt-manager - I'm on Ubuntu 16.04 though so could be that. virt-manager --version <==> 1.3.2
  • The XML tab showed up after I wrote this answer--it's a good point, but if you have a pre-mid-2019 distro, you won't have it.
  • It does not work on Elementary OS 5.1.3 (host) and Windows 10 (guest). Windows 10 still shows the only available resolution which is 800*600 after changing the video->model to Virtio. No other resolution option is available.