From: "Walter Dnes" <waltdnes@waltdnes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] which VM do you recommend?
Date: Wed, 31 Jul 2013 21:40:04 -0400 [thread overview]
Message-ID: <20130801014004.GA27622@waltdnes.org> (raw)
In-Reply-To: <51F8F7B4.7000805@libertytrek.org>
On Wed, Jul 31, 2013 at 07:40:36AM -0400, Tanstaafl wrote
> On 2013-07-30 8:30 PM, Walter Dnes <waltdnes@waltdnes.org> wrote:
> >
> > Why do you need vmware tools? From the host, execute...
> >
> > ssh root@<guest> /sbin/poweroff
>
> Two reasons this isn't sufficient...
>
> 1. Extended power outage
>
> If my UPS sends a shutdown command to the host, I (obviously) want it to
> safely shutdown ALL running VMs.
>
> 2. Manual host shutdown
>
> I have my hosts configured so that if I press/release the power button,
> the host goes through a full power down process. I (obviously) want this
> process to also initiate safe shutdowns on all running VM's.
>
> I do not want to have to SSH in and manually run a command to
> uncooperative VM's first, I want to just be able to press/release the
> power button, and have the host safely shut down all running VMs, then
> itself.
***IT DOES NOT HAVE TO BE MANUAL*** I have a 1-line script that shuts
down my hot-backup machine, which I bring up once a month for updates.
Here it is...
#!/bin/bash
ssh waltdnes@d531 sudo /sbin/poweroff
...with an appropriate entry in /etc/sudoers.d. In your case, you can
have your script run like so (assuming the VM's port 22 is redirected to
60022)
#!/bin/bash
ssh -P 60022 root@localhost /sbin/poweroff
I repeat, this is scriptable, and does not have to be manual.
--
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications
next prev parent reply other threads:[~2013-08-01 1:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-30 6:45 [gentoo-user] which VM do you recommend? Helmut Jarausch
2013-07-30 8:11 ` Randolph Maaßen
2013-07-30 9:20 ` Helmut Jarausch
2013-07-30 9:49 ` Randolph Maaßen
2013-07-30 10:36 ` Tanstaafl
2013-07-30 12:42 ` Alan McKinnon
2013-07-30 12:54 ` Kerin Millar
2013-07-31 0:30 ` Walter Dnes
2013-07-31 11:40 ` Tanstaafl
2013-07-31 12:30 ` William Kenworthy
2013-08-01 1:40 ` Walter Dnes [this message]
2013-08-01 4:10 ` Walter Dnes
2013-07-30 8:20 ` Alan McKinnon
2013-07-30 9:28 ` Helmut Jarausch
2013-07-30 9:49 ` Alan McKinnon
2013-08-01 11:07 ` Mick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130801014004.GA27622@waltdnes.org \
--to=waltdnes@waltdnes.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox