Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Virtual PC

Vista - Configuring a UPS to pause/shutdown virtual machines?

Reply
 
Old 07-31-2009   #1 (permalink)
adamscottmartin


 
 

Configuring a UPS to pause/shutdown virtual machines?

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?

My System SpecsSystem Spec
Old 07-31-2009   #2 (permalink)
Robert Comer


 
 

Re: Configuring a UPS to pause/shutdown virtual machines?

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:
Quote:

>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?
My System SpecsSystem Spec
Old 07-31-2009   #3 (permalink)
adamscottmartin


 
 

Re: Configuring a UPS to pause/shutdown virtual machines?

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:
Quote:

> 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:
>
Quote:

> >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?
>
My System SpecsSystem Spec
Old 07-31-2009   #4 (permalink)
Steve Jain [MVP]


 
 

Re: Configuring a UPS to pause/shutdown virtual machines?

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

>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/
My System SpecsSystem Spec
Old 08-03-2009   #5 (permalink)
adamscottmartin


 
 

Re: Configuring a UPS to pause/shutdown virtual machines?

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:
Quote:

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

> >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/
>
My System SpecsSystem Spec
Old 08-03-2009   #6 (permalink)
Robert Comer


 
 

Re: Configuring a UPS to pause/shutdown virtual machines?

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:
Quote:

>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:
>
Quote:

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

>> >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/
>>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Moving the My Virtual Machines directory Virtual PC
Missing Virtual Machines Virtual Server
virtual machines on C drive........ Virtual Server
XP SP3 updated 3 virtual machines Virtual PC
a tip for virtual machines Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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