> > if (defined($conf) && $conf->{agent}) {
> > vm_qmp_command($vmid, { execute => "guest-shutdown" },
> > $nocheck);
> > } else {
> > vm_qmp_command($vmid, { execute => "system_powerdown" },
> > $nocheck);
> > }
> >
> What
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 {
>
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.
> 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" },
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
> 在 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
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
> 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
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},