What version of VMWare are you running? This makes a difference as to your choices. <br><br>Do you have the VMWare tools installed on the virtual machines?<br><br>With most versions you can have the host shut down the guest. Some versions give more options than others.<br>
<br>As I understood from a previous thread there is no current means to trigger at set battery levels for particular slaves. But you may be able to trigger at a higher battery level so the host will start the guest shutdown and have time to complete before you run out of battery.<br>
<br>If I mis speak here please correct me list. I an a novice on nut.<br><br>Doug<br><br><div class="gmail_quote">On Fri, Feb 13, 2009 at 11:01 AM, Jon Bendtsen <span dir="ltr"><<a href="mailto:jbendtsen@laerdal.dk">jbendtsen@laerdal.dk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On 13/02/2009, at 16.48, David Newman wrote:<br>
<br>
> On 2/12/09 11:19 PM, Arjen de Korte wrote:<br>
>> Citeren David Newman <<a href="mailto:dnewman@networktest.com">dnewman@networktest.com</a>>:<br>
>><br>
>>> How to shut down VMWare guest virtual machines earlier than the host<br>
>>> machine they run on? (For example, if everything normally shuts<br>
>>> down at<br>
>>> 5% UPS battery, then the VMs should shut down at 10%.)<br>
>><br>
>> First question is, why do you want to do that?<br>
><br>
> Because a clean shutdown of the VMs is more important than high uptime<br>
> for the VMs.<br>
><br>
> If both guest and host machines shut down at the same time, the host<br>
> might finish its shutdown before the guests have, leading to possible<br>
> filesystem corruption. I will gladly trade off some downtime of the<br>
> VMs<br>
> to ensure clean shutdowns.<br>
><br>
><br>
>><br>
>>> I also read upssched.txt but I can't tell from the early shutdown<br>
>>> section which settings to use on the master and which on the slaves.<br>
>>><br>
>>> This seems like a fairly standard problem -- are there sample<br>
>>> configs<br>
>>> posted someplace?<br>
>><br>
>> I'm not an expert on VMware, but I would expect that you can<br>
>> configure<br>
>> on the host that it shuts down the guests before going down.<br>
><br>
> Thanks -- that's what I'm asking for -- what is it that I configure,<br>
> and<br>
> are there sample configs someplace that do this?<br>
<br>
</div></div>I think you have to ask on a VMware list how you configure the VMware<br>
server to tell the VMware clients to shut down. Maybe just sending<br>
ctrl+alt+delete is enough.<br>
<br>
Or you could just use the notify command? Once ONBATT is reached,<br>
then sleep for a 1 minute or more, and start the shutdown?<br>
If you get a ONLINE then have the script check if all virtual machines<br>
are running.<br>
<br>
There might be a problem if the UPS has very little power left. So<br>
when you<br>
get a LOWBATT execute a script that doesnt sleep but start the shutdown<br>
now.<br>
<br>
NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC<br>
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC<br>
NOTIFYFLAG ONLINE SYSLOG+EXEC<br>
<br>
NOTIFYCMD /sbin/upsmail.sh<br>
<br>
Then just include something that tells the virtual machines to shut<br>
down.<br>
And install it on every vmware client unless you can instruct vmware to<br>
shut the clients nicely down. Maybe tell vmware to sleep the machines<br>
at ONBATT?<br>
<br>
<br>
<br>
JonB<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@lists.alioth.debian.org">Nut-upsuser@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser</a><br>
</div></div></blockquote></div><br>