63

VirtualBox has a window showing the display of the guest OS. I am connecting to VirtualBox with Remote Desktop, so I don't need VirtualBox to show that window in the host OS.

Of course, I can minimize it, but is there a way to tell VirtualBox not to display that window?

Oliver Salzburg
  • 87,539
  • 63
  • 263
  • 308
avernet
  • 2,301

3 Answers3

94

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.

Tarka
  • 1,585
  • 1
  • 11
  • 11
  • 4
    How to open the window after I start a headless machine ? – wener Apr 10 '14 at 01: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 '15 at 08:50
55

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.

Mies
  • 721
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
  • That works excellent for windows. – antitoxic Apr 03 '13 at 19:17
  • 1
    Yes really good for windows! Launching from a startup script doesn't leave you with a command prompt window open. – Soth Aug 08 '14 at 02:31
  • 1
    That solution is IMO better than the accepted one because it starts new VirtualBox instance in a background service process that better suits my needs. – ForNeVeR Jan 10 '15 at 06:42