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 -
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!