can I share USB connected UPS with proxmox and a windows VM?

jaytee129

Member
Jun 16, 2022
144
10
23
I'd like a USB connected UPS to be accessible to both PVE (using nut) and a Windows VM (on same host/node). Is this possible? I do understand that if one says shutdown in 2 mins and the other says shutdown in 3 mins, the 2 min. one would win. Plan is to have proxmox version be the "3-min" one as a backup/worse case if VM isn't running.

Any info would be appreciated.
 
You can only connect a USB device to either a VM or the PVE host. What you could do is for example connect the UPS to your host, then install NUT as a server to your PVE host and nut as a client in the WinVM so the NUT server on the PVE host will tell the NUT client on the WinVM to shutdown over the network. But I don't get the point. A NUT in a VM can only shutdown that VM, not the server. And when NUT on the PVE host is shutting down the server the shutdown command will first shutdown all guests and after all guests are shutdown it will shutdown the PVE server. So its totally fine to just shutdown the PVE host. You dont need NUT inside the guests for a gracefully shutdown.
 
What I didn't explain was that I wanted to use the Cyberpower UPS PowerPanel Business Software in the Windows VM with all it's GUI features but have a backup control of the UPS in case Windows VM either wasn't running or hung or whatever. There is a Remote client install but I think it only works with network connected UPS.