[Nut-upsuser] early shutdown of VMware VMs

Arjen de Korte nut+users at de-korte.org
Fri Feb 13 17:35:14 UTC 2009


Citeren David Newman <dnewman op networktest.com>:

>>> How to shut down VMWare guest virtual machines earlier than the host
>>> machine they run on? (For example, if everything normally shuts down at
>>> 5% UPS battery, then the VMs should shut down at 10%.)
>> First question is, why do you want to do that?
> Because a clean shutdown of the VMs is more important than high uptime
> for the VMs.
>
> If both guest and host machines shut down at the same time, the host
> might finish its shutdown before the guests have, leading to possible
> filesystem corruption. I will gladly trade off some downtime of the VMs
> to ensure clean shutdowns.

I would be really surprised if this couldn't be handled by VMWare.  
Briefly looking at some Googled pages, it seems that the host can  
signal the guests to shutdown and I assume it should also be possible  
to check if they have indeed done so. If that's the case, the host  
should signal the guests that they need to shutdown, wait until the  
last one has finished and proceed with shutting down itself. Scripting  
this should be pretty straightforward.

[...]

>> I'm not an expert on VMware, but I would expect that you can configure
>> on the host that it shuts down the guests before going down.
> Thanks -- that's what I'm asking for -- what is it that I configure, and
> are there sample configs someplace that do this?

You should really ask on a VMWare mailinglist how to do this. We can  
help you shutdown your systems, but not any application (including  
VMWare) it may be running.

Usually, NUT expects system halt scripts to be dealing with this (with  
or without NUT running). Even for a system that is running 24/7, I  
would still want that. If they need to be brought down for  
maintenance, I don't want to have to think about what needs to be  
stopped, before it is safe to type 'halt -p' on the console.

Best regards, Arjen
-- 
Please keep list traffic on the list





More information about the Nut-upsuser mailing list