Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I put my VirtualBox on my Dock in Mac OS X Lion. I want to have it on my dock so I can click on it to launch it.

share|improve this question

I don't use Virtualbox, but based on a couple resources, it looks like you can launch a specific VM from the command line, which means we can create a basic Automator application to serve as a launcher, which you can then put in the Dock.

In Automator, create a new workflow. Add a Run Shell Script action, and enter /abolute/path/to/vboxmanage startvm "vmname" in the text box. Replace vmname with the name of your VM as it appears in the Virtualbox GUI (make sure to keep the quotes though). Save the workflow, setting the File Format to Application. Then drag the resulting app onto your Dock.

share|improve this answer
i did not work :( – techsjs2012 Dec 5 '12 at 2:10
Try running the vboxmanage command in Terminal and see what output it generates. – robmathers Dec 5 '12 at 2:40
When I create the workflow, this is what my command looks like. /usr/bin/vboxmanage startvm /Users/mark/VirtualBox\ VMs/Windows7\ Pro\ 64/Windows7\ Pro\ 64.vbox -- I saved it as "Windows7" – Mark Cohen Dec 5 '12 at 3:27
Once I did that, I saved it to my /Applications folder and then copied the VirtualBox icon (cmd-c, cmd-v over the icon in the cmd-i (get info) for the Automator script) and dragged it to the Dock. – Mark Cohen Dec 5 '12 at 3:29
The parameter to the startvm command should be the name of the VM, not the path to its file. – robmathers Dec 5 '12 at 4:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.