Qemu agent works on command line

dea

Renowned Member
Feb 6, 2009
243
87
68
Hi, is possible send message in qemu agent throught the command line ?
I would enable/disable VSS in Windows VM from command line (like backup do)

Thanks

Luca
 
Perfect.
Pratically how can I send 'guest-fsfreeze-freeze' and 'guest-fsfreeze-thaw' to the VM ? OK I refer to the socket, but the qmp command ?

Very thanks

Luca
 
Wolfgang patched qm today to include a mechanism to do this directly from the command line via qm.

There a some qmp libraries for easier access, but without any library it would work with agent socket itself:

Code:
$ echo '{"execute":"guest-fsfreeze-freeze"}' | socat unix-connect:/var/run/qemu-server/<VMID>.qga -