On Linux :
First, make sure that the Virtual Box binaries are in your path. This is done by default on Linux, but in Windows, you might have to manually add the installation directory's bin folder to your path.
Then, you need to know either your Guest OS name or UUID number. You can find both of these by typing
VBoxManage list vms
into a terminal. From there, simply type
VBoxHeadless -s <Guest-OS-Name>
or
VBoxHeadless -s <UUID>
This launches the VM without attaching its display to a window. Now all you have to do is set this command as a boot-time service that runs in the background, and you'll be set.
Share
Improve this answer
Follow
answered Nov 19, 2009 at 3:09
Mies's user avatar
Mies
70166 silver badges44 bronze badges
4
Is there a way to add this as a parameter (or something) to the machines settings? –
MrGlass
Aug 15, 2012 at 16:30
Add a comment
93
Old question, but an update is in order:
As of VirtualBox 4.2, you can start a headless machine from the GUI by holding Shift while you click the Start button.
Horribly unintuitive, but that, and other new features, are outlined in an Oracle blog post.
EDIT: As of VirtualBox 5.0, there's a dropdown on the Start button that allows you to choose how to start the VM, including in headless mode.
Share
Improve this answer
Follow
edited Jun 13, 2016 at 20:36
answered Jan 7, 2013 at 0:31
Tarka's user avatar
Tarka
1,57511 gold badge1111 silver badges1010 bronze badges
4
How to open the window after I start a headless machine ? –
wener
Apr 10, 2014 at 1:21
3
In VirtualBox 5.0, there is a drop down arrow next to the start button. Using that, you can select between a normal, headless, or detachable start. –
Bastian35022
Nov 13, 2015 at 8:50
Add a comment
19
You can tell VirtualBox to start the VM in headless mode, not using the gui start button - but its the same.
VBoxManage startvm <guest-os-name> --type headless