I have xcpng running in my home server. It has 5 running vms, pfsense, truenas,ubuntu and xen orchestra.
My scenario is I have to shutdown xcpng server when there is a power failure in my home. My node red service running in Ubuntu server can sense a power failure and can trigger a script via ssh.
Can I just ssh into my xcpng server and trigger “shutdown -h now” ? Will that shutdown all vms gracefully? and then shutdown the xcpng server itself?
Currently I have been using “Emergency Mode” in xen orchestra which gets the job done. But I am not sure how to trigger Emergency Mode via CLI.
Any help is greatly appreciated.
[Note: The command will be triggered from node red which lives in the ubuntu server which itself is running as a vm in xcpng]