[SOLVED] qemu-ga - it's possible to reboot via pve from VM?

czechsys

Renowned Member
Nov 18, 2015
432
49
93
For example, when i change VM name, without reboot on PVE side it's still using old name in qm process on PVE. Or use some swap on PVE.

Can i use qemu-ga to send reboot (itself) command from VM to PVE and if yes, what's correct syntax?
 
Hi,

no, it is not directly possible to send a command from the VM to the PVE via the qemu-ga.

But you could use SSH on the VM to trigger a custom script on the PVE which shuts the VM down and boots it again. :)
 
Thanks for reply. Exposing PVE infra to all VMs is no go for me. It will be nice feature for qemu-agent to "reset" process on PVE.
 
Thanks for reply. Exposing PVE infra to all VMs is no go for me. It will be nice feature for qemu-agent to "reset" process on PVE.
Using the PVE API should work too. You could create a user that is only allowed to start/stop/reset VMs (only give the "VM.PowerMgmt" privilege). And you could give that user a token to authentificate with the API. So in worst case a VM might shutdown another VM and you revoke the token.
 
Last edited: