You are not logged in.

#1 2019-02-27 02:27:06

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 100

[SOLVED] QEMU + Virt-Manager = No resize VM to Window feature

Hi All,

I am hoping this is an easy one. I recently loaded up my new laptop with Arch. Using XFCE4 and all is well. I have a small issue with my QEMU VM's which for some reason i now dont have the option to "Auto resize VM to window". The option is there but its ticked but grey'd out.

I was able to do this on my old laptop without an issue with the very same VM that i simply copied accross.

can anyone shed some light on what the cause might be and how i can resolve it? Thanks in advance.

Last edited by stanna (2019-03-01 00:22:46)

Offline

#2 2019-02-27 11:05:37

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,404

Re: [SOLVED] QEMU + Virt-Manager = No resize VM to Window feature

Permission issues come to mind as a potential cause.
post ls -l for the folder you copied the VM to.

Which program are you using to manage VMs ?
Does the old laptop also use arch linux / xfce4 ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2019-02-27 21:53:19

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 100

Re: [SOLVED] QEMU + Virt-Manager = No resize VM to Window feature

I wish it was as simple as a permissions thing. I reinstalled the spice-space client drivers which had no effect. Installed a fresh new windows 7 VM with the same result.

The old laptop had Arch/XFCE4 installed also and could auto resize.

-rw-------. 1 qemu qemu 107390828544 Feb 27 14:00 win2k16.qcow2
-rw-------. 1 qemu qemu 107390828544 Feb 28 08:45 windows7.qcow2

baffling...

Offline

#4 2019-02-28 02:28:32

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 100

Re: [SOLVED] QEMU + Virt-Manager = No resize VM to Window feature

If i hover the mouse over the option to auto resize it tells me "guest agent not available". The agent is installed but its not actually starting and i have no idea why.

if i try to manually start the service it fails. i look at the service and its trying to execute c:\program files\qemu-ga\qemu-ga -d
i try to run that manually from an elevated prompt and get the below.

1551320344.697265: critical: error opening path
1551320344.697265: critical: error opening channel
1551320344.697265: critical: failed to create guest agent channel
1551320344.697265: critical: failed to initialize guest agent channel

i guess this issue has nothing to do with Arch or linux at all if the agent itself will not launch in Windows.

Offline

#5 2019-02-28 06:38:31

Toolybird
Member
Registered: 2017-09-30
Posts: 93

Re: [SOLVED] QEMU + Virt-Manager = No resize VM to Window feature

Do you have the device "Channel qemu-ga" installed in your VM config?

(ie: org.qemu.guest_agent.0)

IIRC, recent versions of libvirt/virt-manager no longer install as many devices by default as they used to.

EDIT: in fact, it's probably the Spice Channel you need ie: (com.redhat.spice.0) in VM config and Spice Agent installed inside the Win 7 VM.

Last edited by Toolybird (2019-02-28 06:56:53)

Offline

#6 2019-02-28 22:10:44

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 100

Re: [SOLVED] QEMU + Virt-Manager = No resize VM to Window feature

how do i do that excactly? i have never had to add something like this into the config before and not sure how this is done.

Offline

#7 2019-03-01 00:22:30

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 100

Re: [SOLVED] QEMU + Virt-Manager = No resize VM to Window feature

@ToolyBird, I managed to work it out an adding the spice channel. Thank you very much that was the exact issue. its all working perfectly again now. what a strange thing to leave out by default and i couldnt find any information on this at all during my searches but that will most likely be put down to the terms i was using i suspect. thanks again!

now i can get rid of vmware which was my temporary solution until i got this working again.

solved.

Offline

#8 2019-03-01 06:41:21

Toolybird
Member
Registered: 2017-09-30
Posts: 93

Re: [SOLVED] QEMU + Virt-Manager = No resize VM to Window feature

stanna wrote:

what a strange thing to leave out by default and i couldnt find any information on this at all during my searches

This is the only thing I could find:

https://bugzilla.redhat.com/show_bug.cgi?id=1653698

Offline

Board footer

Powered by FluxBB