Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I've used vagrant to set up ubuntu 12.10. How can I actually connect to the graphical desktop? There doesn't seem to be a way in the Virtualbox manager. It shows a preview but the 'show' icon is disabled.

It's a bit of a fiddle but I can suspend the vagrant then use the VirtualBox manager to start the VM and it connects to the display. I'd rather I didn't have to do this though because it might mess up NFS shares/IP addresses, etc.

share|improve this question
Also see this question: enabling gui in Vagrantfile settings – TachyonVortex Nov 11 '13 at 13:03
Seeing as the answer should not be part of the question, you should cut it out and submit it by using the "answer your own question" button. – Agi Hammerthief Mar 23 '14 at 11:00
With VirtualBox 5.0, this becomes very simple; see here: – Wildcard Dec 10 '15 at 18:23
config.vm.boot_mode = :gui


share|improve this answer
This results in an error in vagrant 1.7 vm: * The following settings shouldn't exist: boot_mode – krd Apr 30 '15 at 15:45

you edit the Vagrantfile and you add this line in section provider:

   config.vm.provider "virtualbox" do |vb|

     vb.gui = true

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.