Autolaunch Guest When Opening Virtual Box

Discussions related to using VirtualBox on Mac OS X hosts.
mille1j
Posts: 17
Joined: 14. Nov 2013, 19:19

Autolaunch Guest When Opening Virtual Box

Post by mille1j »

I only have one guest setup in Virtual box. Yet, when i open the virtual box app, it takes me to the main screen where I have to choose start.

YES! I want to start it, that's why I opened the app!

Is it possible to configure virtual box so that with one click you can have your guest launch instead of clicking on virtual box, then when the app opens, clicking start for the guest? I know, its just an extra click, but I hate it. Especially for 14 users doing it many times per day.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Autolaunch Guest When Opening Virtual Box

Post by loukingjr »

See this post: VirtualBox Menulet

basically what it does is create a menu in the menu bar that lets you directly launch a guest whether you have one or a hundred guests.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Autolaunch Guest When Opening Virtual Box

Post by socratis »

Or, you can right-click on the VM, choose 'Create Alias on Desktop'. You can move the alias to wherever you want (e.g. Documents). You can even drag it to the Dock and launch the client directly from there, without ever launching the VirtualBox Manager.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mille1j
Posts: 17
Joined: 14. Nov 2013, 19:19

Re: Autolaunch Guest When Opening Virtual Box

Post by mille1j »

PERFECT! Thanks for the tip!
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Autolaunch Guest When Opening Virtual Box

Post by loukingjr »

socratis wrote:Or, you can right-click on the VM, choose 'Create Alias on Desktop'. You can move the alias to wherever you want (e.g. Documents). You can even drag it to the Dock and launch the client directly from there, without ever launching the VirtualBox Manager.
That doesn't actually work on OSX 10.10.1 or with VB 4.3.21. I forget when it stopped working but it was awhile ago. I remember asking Perryg about it. I can't dbl-click on the .vbox files to start guests.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Autolaunch Guest When Opening Virtual Box

Post by Perryg »

Dbl clicking the *.vbox file and create a shortcut are two different things. Not sure about Mac of course, but it should create a shortcut that starts the guest.

Here are the properties of the command for the shortcut. Notice it uses the UUID instead of the actual name.

Code: Select all

/opt/VirtualBox/VirtualBox --comment "Ubuntu-Server" --startvm "6b23480d-0c3a-4ee3-92a7-8ac35c34de1f"
Of course the /opt/VirtualBox in my install will be different than yours because I build my own version with special settings and locations. It just needs the absolute path to VirtualBox.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Autolaunch Guest When Opening Virtual Box

Post by loukingjr »

when it creates an alias it points to the .vbox file. neither works. the alias also doesn't have an icon unlike when I create aliases of normal Mac programs. It might have been as long ago as OSX 10.9 and I forget which version of VB. It's been months.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Autolaunch Guest When Opening Virtual Box

Post by socratis »

loukingjr wrote:That doesn't actually work on OSX 10.10.1 or with VB 4.3.21.
Really?!? Have you been able to narrow it down to which is to blame, OSX or VBox? Do aliases work for other type of documents? Because on 10.6.8 with VB 4.3.20 it works as described, both by dbl-clicking the alias and by dragging the alias to the Dock and single-clicking there.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Autolaunch Guest When Opening Virtual Box

Post by loukingjr »

socratis wrote:
loukingjr wrote:That doesn't actually work on OSX 10.10.1 or with VB 4.3.21.
Really?!? Have you been able to narrow it down to which is to blame, OSX or VBox? Do aliases work for other type of documents? Because on 10.6.8 with VB 4.3.20 it works as described, both by dbl-clicking the alias and by dragging the alias to the Dock and single-clicking there.
see my post above. :D
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Autolaunch Guest When Opening Virtual Box

Post by loukingjr »

well it works in OSX 10.9 w/VB 4.3.20 so I guess I will fallback to VB 4.3.20 on OSX 10.10 and see.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Autolaunch Guest When Opening Virtual Box

Post by loukingjr »

ugh. It seems there is some problem with my VirtualBox install on just one of the machines. I thought it might be a third party app causing the problem but I can't imagine it only affects VirtualBox aliases.

I created aliases on a second OSX 10.10.1 machine with both 4.3.18 and 4.3.20. One difference is the one that works is using the default location for machines. The one that doesn't work is using a different location. Perhaps there was a regression somewhere along the line if you had changed the default location. beats me.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, OSX
Location: U S of A

Re: Autolaunch Guest When Opening Virtual Box

Post by ChipMcK »

Works just fine on my Yosemite.1 and VB 4.3.20
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Autolaunch Guest When Opening Virtual Box

Post by loukingjr »

ChipMcK wrote:Works just fine on my Yosemite.1 and VB 4.3.20
Do you mean changing the default location works fine? I can't imagine what else it could be. I could completely uninstall VB including the files the uninstall tool leaves behind I suppose.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, OSX
Location: U S of A

Re: Autolaunch Guest When Opening Virtual Box

Post by ChipMcK »

loukingjr wrote:
ChipMcK wrote:Works just fine on my Yosemite.1 and VB 4.3.20
Do you mean changing the default locati works fine? I can't imagine what else it could be. I could completely uninstall VB including the files the uninstall tool leaves behind I suppose.
My default is set to a folder of a volume of an external drive.
  1. In VB manager Right-Click and select Create Alias on Desktop OR
  2. Right-Click on .vbox file, select Make Alias and move that to the Desktop
Last edited by ChipMcK on 15. Dec 2014, 03:37, edited 1 time in total.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Autolaunch Guest When Opening Virtual Box

Post by loukingjr »

Thanks Chip but I know how to create an alias. :) I found the problem, I just don't know how to fix it. the .vbox files are supposed to open with vmstarter which is inside the VirtualBox package. Somehow they were changed to start with TextEdit and I don't know how to change them back. If I right click on them to select a program to open them with I can't select vmstarter because it's inside the VirtualBox package. :D

edit: I worded that badly. I can set each individually but I can't set all .vbox files to "Always open with"
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Post Reply