Re: [pve-devel] qemu-ga

2016-07-18 Thread Dietmar Maurer
> > if (defined($conf) && $conf->{agent}) { > > vm_qmp_command($vmid, { execute => "guest-shutdown" }, > > $nocheck); > > } else { > > vm_qmp_command($vmid, { execute => "system_powerdown" }, > > $nocheck); > > } > > > What

Re: [pve-devel] qemu-ga

2016-07-18 Thread Michael Rasmussen
On Mon, 18 Jul 2016 06:15:13 +0200 (CEST) Dietmar Maurer wrote: > > yes > > if (defined($conf) && $conf->{agent}) { > vm_qmp_command($vmid, { execute => "guest-shutdown" }, > $nocheck); > } else { >

Re: [pve-devel] qemu-ga

2016-07-18 Thread Andreas Steinel
It is also used for backups (e.g. filesystem freeze) which is very handy for hook-scripts. One thing I couldn't find is how long the timeout for the agent to respond is. If some hook-scripts take too long, I get timeouts while backing up. Would be great to know the limit and maybe increase it.

Re: [pve-devel] qemu-ga

2016-07-17 Thread Dietmar Maurer
> If qemu agent is enable on the VM and detected a running qemu agent in > the VM do you use qemu agent poweroff when shutdown is activated in > pve-manager? yes if (defined($conf) && $conf->{agent}) { vm_qmp_command($vmid, { execute => "guest-shutdown" },

Re: [pve-devel] qemu-ga

2016-07-17 Thread Michael Rasmussen
On Sun, 17 Jul 2016 09:51:19 +0200 (CEST) Dietmar Maurer wrote: > > would it not be a cool feature to use qemu-ga > > guest-network-get-interfaces to display VM interfaces*) in the status panel > > provided guest agent is enabled and running in the client? > > Or maybe a

Re: [pve-devel] qemu-ga

2016-07-17 Thread lyt_yudi
> 在 2016年7月17日,下午3:51,Dietmar Maurer 写道: > >> would it not be a cool feature to use qemu-ga >> guest-network-get-interfaces to display VM interfaces*) in the status panel >> provided guest agent is enabled and running in the client? > > Or maybe a separate panel? would

Re: [pve-devel] qemu-ga

2016-07-17 Thread lyt_yudi
Hi, > 在 2016年7月17日,上午8:38,Michael Rasmussen 写道: > > *) Not available currently in the windows agent. Need to be recompiling with the latest code qga: win32 qmp_guest_network_get_interfaces implementation

Re: [pve-devel] qemu-ga

2016-07-17 Thread Dietmar Maurer
> would it not be a cool feature to use qemu-ga > guest-network-get-interfaces to display VM interfaces*) in the status panel > provided guest agent is enabled and running in the client? Or maybe a separate panel? ___ pve-devel mailing list

[pve-devel] qemu-ga

2016-07-16 Thread Michael Rasmussen
Hi all, Has been toying a bit with qemu-ga and discovered that current version supports listing network interfaces in the client: {"execute":"guest-network-get-interfaces"} {"return": [ { "name": "lo", "ip-addresses": [ {"ip-address-type": "ipv4", "ip-address": "127.0.0.1", "prefix": 8},