8

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.

sarah
  • 561
  • 1
  • 4
  • 9

2 Answers2

1
config.vm.boot_mode = :gui

See http://docs-v1.vagrantup.com/v1/docs/config/vm/boot_mode.html

MichelZ
  • 11,068
  • 4
  • 32
  • 59
  • 1
    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
1

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

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

     vb.gui = true

   end
intropedro
  • 111
  • 1