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.


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.

  • 1
    i did not work :( 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

Right click VM in Manager, create desktop icon. Select the desktop icon and press Control+Shift+Command+T

That's it done

  • Does not work: "Trying to open a VM config '/Users/BLAH/VMPATH/VMNAME.vbox' which has the same UUID as an existing virtual machine." May 2 '19 at 0:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .