Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 could we close GUI session in virtual box without shutting down the virtual machine. I have a lot of Linux instances I only need to connect to one of them.

share|improve this question
Do you want to change to a different terminal? Ctrl-alt-F1 is your friend. – Robert Jan 6 '12 at 8:07
No, I want to close the GUI session and the VM doesn't shut down. Like what we do in xen or kvm. – Majid Azimi Jan 6 '12 at 8:10

This has already been answered already, but...

With Virtualbox 4.2 and later, there is a quiet little option to start the VM in headless mode. Simply select your VM, then while holding SHIFT down, click Start. This will run the VM in headless mode. Note that there is still no way to "detach" from the VM in GUI mode, but you can suspend the VM with Save State and restart in headless mode.

Better yet, only run in headless mode and use RDP/VNC to manage. phpVirtualBox is a decent web interface to remotely manage VirtualBox instances.


share|improve this answer

As of VBox 5.0 you can close the window and it will prompt you for action including "run in background"

share|improve this answer
Hmmm...I don't see this option. – Dave Mackey Apr 24 at 0:00
There is no such option – Hooman Yar 9 hours ago
up vote 2 down vote accepted

I asked this question in ask.fedora:

Don't open a GUI session in the first place, use the headless version of VirtualBox:

Otherwise, when you close your session, you close all the programs you were running inside, including the hypervisor.

share|improve this answer

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.