VMware

This Question is Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
8 Replies Last post: Dec 3, 2007 2:26 AM by cj0  

Auto start virtual machines upon reboot posted: Apr 1, 2007 7:30 PM

Click to view dpuckett's profile Novice 16 posts since
Jan 29, 2007
I am a fairly new Mac user (since Nov) and have a question. I have a 8G Mac Pro that I generally keep 8+ Virtual Machines running at any given time. When I am at work I would really like to be able to reboot the host system and have all of my VM's start back up. From what I can tell this cannot be done with out an account being logged in. Can I have the system autlogin a "VMWARE" account, start all of my virtual machines and then switch back to the login screen while remaining logged in? Any assistance would be greatly appreciated.

Re: Auto start virtual machines upon reboot

1. Apr 1, 2007 8:02 PM in response to: dpuckett
Click to view etung's profile Guru 11,094 posts since
Oct 15, 2006
Can I have the system autlogin a "VMWARE" account, start all of my virtual machines and then switch back to the login screen while remaining logged in?

To autologin as a user:
"Preferences > Accounts > Login Options > Automatically log in as" and choose whichever account you want

To start all your virtual machines on login:
"Preferences > Accounts > (autologin account here) > Login Items" and add the vmx files. You'll want to make sure they can start up without prompting for input.

Switching back to the login screen while remaining logged in:
There's probably some way to do this but I don't know it off the top of my head. I say this because you can certainly Fast User Switch back to the login screen, so there's probably some way to do this in Applescript or something. I'm not sure what'll happen to the running VMs (if they get suspended, run at lower priority, run like normal...).

Re: Auto start virtual machines upon reboot

3. Apr 1, 2007 8:43 PM in response to: dpuckett
Click to view rcardona2k's profile Champion 5,202 posts since
Oct 20, 2005
With Fast User Switching enabled, if you execute this script, it will take you to the fast-user login window:

[code]
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend[/code]
Easiest way is to save it as a .tool file in your Login Startup items. I've tested this and it works.

Side-note: Your wife doesn't mind you running eight VMs in the background? Even if they were idling I would notice that!

Re: Auto start virtual machines upon reboot

5. Apr 1, 2007 9:09 PM in response to: rcardona2k
Click to view etung's profile Guru 11,094 posts since
Oct 15, 2006
Easiest way is to save it as a .tool file in your Login Startup items.

Out of curiosity, do you need to worry about order of operations (e.g. make sure all VMs launch before switching out), or does everything get run regardless?

Re: Auto start virtual machines upon reboot

6. Apr 1, 2007 9:11 PM in response to: dpuckett
Click to view etung's profile Guru 11,094 posts since
Oct 15, 2006
I generally keep 8+ Virtual Machines running at any given time

I forgot to ask this earlier, but out of curiosity, what are you doing with that many virtual machines at all times?

Re: Auto start virtual machines upon reboot

8. Dec 3, 2007 2:26 AM in response to: etung
Click to view cj0's profile Novice 8 posts since
Dec 2, 2007

When you would like to run a VMware fusion virtual machine on remote machine, managed with Apple
Remote Desktop (*ARD*).

Then you might nog want to use fast user
switching.

Several users reported being unable to control the machine
with ARD after a fast user switch occurs (VMware fusion doesn't even
need to be running).

Source: http://discussions.apple.com/thread.jspa?threadID=1003987&tstart=0

Since 10.5 an option could be to use spaces, and run VMware fusion in a separate space
or to run fusion headless, as explained in http://communities.vmware.com/message/593957

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities