NUT and hibernate/pause VM with UPS

firecard

Member
Dec 2, 2020
10
0
6
53
Hello,

I have my UPS (APC 650) connected to Synology NAS and have the NAS UPS Server enabled, entered with my Proxmax nodes IPs.

Anyone has example to set up Proxmax nodes to herbinate/pause its VMs and then shut down itself with Network UPS Tools. I prefer herbinate ( or pause) the VMs rather then shutting them down before shutting down the nodes.

Network UPS Tools
https://networkupstools.org/docs/user-manual.chunked/index.html

Another question is the VMs I am using are Windows, some of the program running I have to start manually, hence I dont want to use shutdown of the VM and have it auto startup when the nodes come back, as I have to go into the VM to open the program. I suppose herbinate/pause will overcome having to start the program inside Windows manually, but which one is better for this case? Pause or herninate?

Thank you

 
Pausing a VM is doing exactly that, pausing the virtualization process. So what you want is hibernating: qm suspend <VMID> --todisk

How to handle the UPS' info that the node should shutdown is something where I do not have any experience. If you can trigger a script, you can write your own to send the guests to hibernation.
 
Pausing a VM is doing exactly that, pausing the virtualization process. So what you want is hibernating: qm suspend <VMID> --todisk

How to handle the UPS' info that the node should shutdown is something where I do not have any experience. If you can trigger a script, you can write your own to send the guests to hibernation.
HI, one question, if i pause the vm, what happens with the resources, like cpu and ram, they are realeased? or for that i need hibernation? (for releasing resources)
 

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!