Skip navigation
VMware

This Question is Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
9,367 Views 8 Replies Last post: Dec 3, 2007 2:26 AM by cj0 RSS
dpuckett Novice 16 posts since
Jan 29, 2007
Currently Being Moderated

Apr 1, 2007 7:30 PM

Auto start virtual machines upon reboot

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.

Guru VMware Employees 11,935 posts since
Oct 15, 2006
Currently Being Moderated
1. Apr 1, 2007 8:02 PM in response to: dpuckett
Re: Auto start virtual machines upon reboot

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...).

rcardona2k Champion 6,193 posts since
Oct 20, 2005
Currently Being Moderated
3. Apr 1, 2007 8:43 PM in response to: dpuckett
Re: Auto start virtual machines upon reboot

With Fast User Switching enabled, if you execute this script, it will take you to the fast-user login window:

 

Re: Auto start virtual machines upon reboot

/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!

Guru VMware Employees 11,935 posts since
Oct 15, 2006
Currently Being Moderated
5. Apr 1, 2007 9:09 PM in response to: rcardona2k
Re: Auto start virtual machines upon reboot

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?

Guru VMware Employees 11,935 posts since
Oct 15, 2006
Currently Being Moderated
6. Apr 1, 2007 9:11 PM in response to: dpuckett
Re: Auto start virtual machines upon reboot

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?

cj0 Novice 8 posts since
Dec 2, 2007
Currently Being Moderated
8. Dec 3, 2007 2:26 AM in response to: etung
Re: Auto start virtual machines upon reboot

 

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

 

 

Bookmarked By (0)

Share This Page

Communities