[pve-devel] [PATCH] add qemu guest agent client

Alexandre DERUMIER aderumier at odiso.com
Wed Sep 5 10:29:54 CEST 2012


yes, It should be possible


main differences :

- we can't send "id" to a qmp comamnd. (so I sent guest-sync with sequence id before each command)
       note that this id must be a integer, for in my code, I don't sent the vmid $$:$cmdid_seq, but only $cmdid_seq
- the returned json finish by "}\n" and not "}\r\n"
- we don't need to send qmp_capabilities at the connection opening


you can make a diff between qgaclient and qmpclient, I didn't have make too much changes.



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

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre Derumier" <aderumier at odiso.com>, pve-devel at pve.proxmox.com 
Envoyé: Mercredi 5 Septembre 2012 09:47:40 
Objet: RE: [pve-devel] [PATCH] add qemu guest agent client 

> Subject: [pve-devel] [PATCH] add qemu guest agent client 
> 
> This implement qemu guest agent client. 
> 
> I Have take the qmp client code and try to adapt it. 

Isn't there a way to reuse the qmp code? What exactly is the difference between 
QMP and QGA protocol? Can't we use a common base class? 


More information about the pve-devel mailing list