3

I have a VirtualBox VM set up on OS X Lion. How do I have it automatically start when I log into my account?

  • See http://apple.stackexchange.com/questions/3030/how-can-i-run-stop-relaunch-an-application-automatically-at-boot-login-some-oth but open the VM file to boot it rather than the VB app. –  May 22 '12 at 04:07

3 Answers3

2

Add the .VDI file for the VM you wish to auto run to your System Preferences > Users > Login Item. You can find the .VDI file in the folder of the VM. The default name of the folder VirtualBox saves these to is called VirtualBox VMs.

dhempler
  • 1,616
0

You have to add the .vbox file to the startup items rather than the .vdi like dennis.hempler said. The .vbox is specially designed for booting VMs without opening the app.

0

I added terminal to open at login from the dock, added Virtualbox to also open at login at startup. Put a shell command to start up my VM. You can set that in Terminal app preferences under shell tab, there is a startup command you can enter.

The following is mine.

VBoxManage startvm VirtualBox --type headless

Where VirtualBox is your box name whatever that may be. Headless means it doesn't launch a window from VB.

grg
  • 201,078