[pve-devel] [PATCH 2/2] now if the QMP command starts with guest-+ , it will bind dynamicly to the VMID.qga socket. To test the function vmtime is implemented which return the vm UNIX Time.

Dietmar Maurer dietmar at proxmox.com
Mon Nov 24 18:00:24 CET 2014


> I think that libvirt sent always "guest-sync" before doing the real command, to
> see the if guest-agent is alive.
> 
> So, I think we can sent guest-sync with a real small timeout, like 1s, before doing
> a longer qga command which need a bigger timeout.

Ah, OK. Or we can save the state of the last command into a temp file,
so that we can avoid the delay?

if (last_command_was_successful()) {
	run_qmp_command()
} else {
	test_conn_with_small_timeout()
	run_qmp_command()
}



More information about the pve-devel mailing list