Windows Vista Tips

Windows Vista Tips > Newsgroups > Virtual PC > Configuring a UPS to pause/shutdown virtual machines?

Reply
Thread Tools Display Modes

Configuring a UPS to pause/shutdown virtual machines?

 
 
adamscottmartin
Guest
Posts: n/a

 
      07-31-2009
I have a server running several Virtual PC 2007 machines. The server is
connected to a Belkin UPS, however the UPS software has no way of telling the
virtual machines to Pause (or shut down) when power is cut. I have been
searching for a way to do this via command line but haven't found what I want
just yet...anyone have any ideas how to do this?
 
Reply With Quote
 
 
 
 
Robert Comer
Guest
Posts: n/a

 
      07-31-2009

You might be able to use the shutdown command if the VM's are Windows
XP and your UPS software can send net commands. (Windows 2000 can do
it if you download the shutdown command from Microsoft. Don't know
about Vista and above, they have the shutdown command, but I've never
tried it and UAC would probably get in the way.)

shutdown \\PCName /s

Your host login has to be the same as the VM's login for that to work,
otherwise you're going to have to do a net use with user ID and
password before you do the shutdown command.

--
Bob Comer





On Fri, 31 Jul 2009 13:48:02 -0700, adamscottmartin
<adamscottmartin[@NOSPAM]hotmail[dot.com]> wrote:

>I have a server running several Virtual PC 2007 machines. The server is
>connected to a Belkin UPS, however the UPS software has no way of telling the
>virtual machines to Pause (or shut down) when power is cut. I have been
>searching for a way to do this via command line but haven't found what I want
>just yet...anyone have any ideas how to do this?

 
Reply With Quote
 
adamscottmartin
Guest
Posts: n/a

 
      07-31-2009
Thanks for the tip, will use that for now as it is better than nothing.
Still has to be something that would work better. Would be interested to
hear any other methods.

"Robert Comer" wrote:

> You might be able to use the shutdown command if the VM's are Windows
> XP and your UPS software can send net commands. (Windows 2000 can do
> it if you download the shutdown command from Microsoft. Don't know
> about Vista and above, they have the shutdown command, but I've never
> tried it and UAC would probably get in the way.)
>
> shutdown \\PCName /s
>
> Your host login has to be the same as the VM's login for that to work,
> otherwise you're going to have to do a net use with user ID and
> password before you do the shutdown command.
>
> --
> Bob Comer
>
>
>
>
>
> On Fri, 31 Jul 2009 13:48:02 -0700, adamscottmartin
> <adamscottmartin[@NOSPAM]hotmail[dot.com]> wrote:
>
> >I have a server running several Virtual PC 2007 machines. The server is
> >connected to a Belkin UPS, however the UPS software has no way of telling the
> >virtual machines to Pause (or shut down) when power is cut. I have been
> >searching for a way to do this via command line but haven't found what I want
> >just yet...anyone have any ideas how to do this?

>

 
Reply With Quote
 
Steve Jain [MVP]
Guest
Posts: n/a

 
      07-31-2009

On Fri, 31 Jul 2009 14:37:01 -0700, adamscottmartin
<adamscottmartin[@NOSPAM]hotmail[dot.com]> wrote:

>Thanks for the tip, will use that for now as it is better than nothing.
>Still has to be something that would work better. Would be interested to
>hear any other methods.


If you're running servers a better solution would be Virtual Server.
It runs as a service and is aware of the VMs running, so your server
should wait until your VMs are in a saved state.

--
Cheers,
Steve Jain, Virtual Machine MVP
http://vpc.essjae.com/
 
Reply With Quote
 
adamscottmartin
Guest
Posts: n/a

 
      08-03-2009
I have never used that product before because I never had a supported host OS
running (currently using Vista x64 which is not suggested for production use)
and because VirtualPC always got the job done. Will give it a look anyways.

"Steve Jain [MVP]" wrote:

> On Fri, 31 Jul 2009 14:37:01 -0700, adamscottmartin
> <adamscottmartin[@NOSPAM]hotmail[dot.com]> wrote:
>
> >Thanks for the tip, will use that for now as it is better than nothing.
> >Still has to be something that would work better. Would be interested to
> >hear any other methods.

>
> If you're running servers a better solution would be Virtual Server.
> It runs as a service and is aware of the VMs running, so your server
> should wait until your VMs are in a saved state.
>
> --
> Cheers,
> Steve Jain, Virtual Machine MVP
> http://vpc.essjae.com/
>

 
Reply With Quote
 
Robert Comer
Guest
Posts: n/a

 
      08-03-2009
Virtual Server really does give you more control and full scripting.

The next version of Virtual PC, which runs only on Windows 7 has
scripting just like Virtual Server...

--
Bob Comer


On Mon, 3 Aug 2009 07:07:01 -0700, adamscottmartin
<adamscottmartin[@NOSPAM]hotmail[dot.com]> wrote:

>I have never used that product before because I never had a supported host OS
>running (currently using Vista x64 which is not suggested for production use)
>and because VirtualPC always got the job done. Will give it a look anyways.
>
>"Steve Jain [MVP]" wrote:
>
>> On Fri, 31 Jul 2009 14:37:01 -0700, adamscottmartin
>> <adamscottmartin[@NOSPAM]hotmail[dot.com]> wrote:
>>
>> >Thanks for the tip, will use that for now as it is better than nothing.
>> >Still has to be something that would work better. Would be interested to
>> >hear any other methods.

>>
>> If you're running servers a better solution would be Virtual Server.
>> It runs as a service and is aware of the VMs running, so your server
>> should wait until your VMs are in a saved state.
>>
>> --
>> Cheers,
>> Steve Jain, Virtual Machine MVP
>> http://vpc.essjae.com/
>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mini newsgroup FAQ for the week of 7/26/2009 VPC_FAQ_POSTER Virtual PC 0 07-26-2009 04:01 AM
Virtual Server - Microsoft Learning Machines Nachete Windows 64 Bit 2 05-20-2008 09:36 PM
MS Virtual Server machines on a network share - permissions and ri Evgeniy Lotosh Windows Server 0 05-29-2007 07:05 AM
SPS 2003 Yianni Windows Server 0 07-21-2006 10:45 PM
SPS 2002 Yianni Windows Server 0 07-21-2006 10:41 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59