[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.

Alexandre DERUMIER aderumier at odiso.com
Mon Nov 24 18:19:46 CET 2014


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

I'm not sure, because It's possible that qga daemon can be stopped, or crash, ....



----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com, "Wolfgang Link" <wolfgang at linksystems.org> 
Envoyé: Lundi 24 Novembre 2014 18:00:24 
Objet: RE: [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. 

> 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