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">&lt;<a href="mailto:jbendtsen@laerdal.dk">jbendtsen@laerdal.dk</a>&gt;</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>
&gt; On 2/12/09 11:19 PM, Arjen de Korte wrote:<br>
&gt;&gt; Citeren David Newman &lt;<a href="mailto:dnewman@networktest.com">dnewman@networktest.com</a>&gt;:<br>
&gt;&gt;<br>
&gt;&gt;&gt; How to shut down VMWare guest virtual machines earlier than the host<br>
&gt;&gt;&gt; machine they run on? (For example, if everything normally shuts<br>
&gt;&gt;&gt; down at<br>
&gt;&gt;&gt; 5% UPS battery, then the VMs should shut down at 10%.)<br>
&gt;&gt;<br>
&gt;&gt; First question is, why do you want to do that?<br>
&gt;<br>
&gt; Because a clean shutdown of the VMs is more important than high uptime<br>
&gt; for the VMs.<br>
&gt;<br>
&gt; If both guest and host machines shut down at the same time, the host<br>
&gt; might finish its shutdown before the guests have, leading to possible<br>
&gt; filesystem corruption. I will gladly trade off some downtime of the<br>
&gt; VMs<br>
&gt; to ensure clean shutdowns.<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; I also read upssched.txt but I can&#39;t tell from the early shutdown<br>
&gt;&gt;&gt; section which settings to use on the master and which on the slaves.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; This seems like a fairly standard problem -- are there sample<br>
&gt;&gt;&gt; configs<br>
&gt;&gt;&gt; posted someplace?<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m not an expert on VMware, but I would expect that you can<br>
&gt;&gt; configure<br>
&gt;&gt; on the host that it shuts down the guests before going down.<br>
&gt;<br>
&gt; Thanks -- that&#39;s what I&#39;m asking for -- what is it that I configure,<br>
&gt; and<br>
&gt; 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>