Can I make the VM shutdown trigger the node/machine to power off?

burger1113

New Member
Jun 16, 2023
12
1
3
I am using the machine with gpu passthrough for when I need to do work at home which requires both windows and macos. I've looked all over the internet to see if this is possible, but I guess not a lot of people are using proxmox in my use case.

For example, can I make it so that when I shut down my MacOS, it automatically shuts down the machine as well? It does seem like pressing the power button on the rig after selecting shutdown in MacOS does the trick, but there has got to be a way, right...?

I would also love to hear some other suggestions for using a proxmox VM like a regular PC if you could share them! Thank you so much.
 
You could just use the PVE webUI/API from your Mac VM to shutdown the PVE node. This will then also shutdown all guests, including the Mac VM you are using. This is basically what you are doing when pressing the power button. It tells the PVE node to shutdown and PVE will then shutdown all guests before shutting down itself.
 
Last edited:
You could just use the PVE webUI/API from your Mac VM to shutdown the PVE node. This will then also shutdown all guests, including the Mac VM you are using. This is basically what you are doing when pressing the power button. It tells the PVE node to shutdown and PVE will then shutdown all guests before shutting down itself.
I did try that yesterday, and it took way longer to shut down MacOS. I think at least 5 times longer than if I power down MacOS myself, then press the power button.
 
Then you should check if you are maybe just cutting the power while PVE is still running. In that case you lose data and it might break the whole installation.
Check the syslog for proper shutdown logs.
 
Last edited:
Then you should check if you are maybe just cutting the power while PVE is still running. In that you lose data and it might break the whole installation.
Check the syslog for proper shutdown logs.
Hmm no, without the VM running, shutting down the node takes about the same time to power down. It's not like I press the button, and it shuts off like when you hold the power button down.
 
I have exactly the same setup as you. The trick is to have your workstations i.e. windows and Mac options shut down order to be last with a delay, I use 360 secs. I generally have Windows on a Mac plus a few servers running. When finished for the day I log into the web GUI and shutdown pVE. In the task manager you can see it starts shutting down the servers first. Then I logout/shutdown which I am logged into Mac or Windows and it shuts down normally. Then after a small delay (360 seconds) the host shutsdown.
 

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!