?
Solved

VMWare auto start and auto shutdown of guest OS's upon host boot and shutdown

Posted on 2006-03-28
4
Medium Priority
?
10,747 Views
Last Modified: 2008-06-20
I am looking for a way to auto start and auto shutdown my VM using VMWare Workstation 5.5

For startup I found this:
    I'm using autologin with a shortcut to vmware.exe in the startup folder. I added a bit to the shortcut
    "C:\Program Files\VMware\VMware Workstation\vmware.exe" -x "c:\vmware\win98.vmx" "c:\vmware\winxppro.vmx"
    Just set the path to your vmx files and remember to check the power on then open in the machine config.

And this:

    A companion to instsrv is srvany.exe and the method for starting VMWare as a
service is as follows: ... http://groups.google.com/group/vmware.for-windowsnt.experimental/browse_thread/thread/5db8fdb1f7bcc469/be8c1febcd7abc65?lnk=st&q=Run+VMware+Workstation+VMs+as+services&rnum=1&hl=en#be8c1febcd7abc65

However for shutdown I do not have a workable solution.

Someone mentioned using the shutdown.exe to shutdown each individual VM, but I can't find any shutdown event on my W2K3 host.

Any ideas,

Thanks,

Byron
0
Comment
Question by:byronleonard
  • 2
  • 2
4 Comments
 
LVL 18

Expert Comment

by:carl_legere
ID: 16315887
it can be copied from a windows XP system and works just as well, you MUST use the shutdown reason code major and minor unless you have turned off shutdown reason codes

C:\>shutdown /?
Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "c
omment"] [-d up:xx:yy]

        No args                 Display this message (same as -?)
        -i                      Display GUI interface, must be the first option
        -l                      Log off (cannot be used with -m option)
        -s                      Shutdown the computer
        -r                      Shutdown and restart the computer
        -a                      Abort a system shutdown
        -m \\computername       Remote computer to shutdown/restart/abort
        -t xx                   Set timeout for shutdown to xx seconds
        -c "comment"            Shutdown comment (maximum of 127 characters)
        -f                      Forces running applications to close without war
ning
        -d [u][p]:xx:yy         The reason code for the shutdown
                                u is the user code
                                p is a planned shutdown code
                                xx is the major reason code (positive integer le
ss than 256)
                                yy is the minor reason code (positive integer le
ss than 65536)

C:\>
0
 

Author Comment

by:byronleonard
ID: 16323909

Thanks, but I mean the Shutdown 'event' that I can use to run a script to run shutdown.exe.

For example in my ups software I want to be able to run a script that will shutdown my VM's
0
 
LVL 18

Accepted Solution

by:
carl_legere earned 1000 total points
ID: 16323946
I'm not following.  Something (manually or autmatically) has to do the shutdown.
0
 

Author Comment

by:byronleonard
ID: 16337455

I found it.  Thanks.

Start / Run Type gpedit.msc

Computer Configuration / Windows Settings / Scripts (Startup / Shutdown) / Shutdown

Then I can configure a VBScript to run on shutdown.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question