Skip to content

Instantly share code, notes, and snippets.

@hgouveia
Created June 27, 2018 09:20
Show Gist options
  • Save hgouveia/60ac39fe31638e50ed469cbc4b6d8db1 to your computer and use it in GitHub Desktop.
Save hgouveia/60ac39fe31638e50ed469cbc4b6d8db1 to your computer and use it in GitHub Desktop.
Vagrant: Ubuntu GUI Virtualbox
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", 1024, "--cpus", 1, "--vram", 256, "--accelerate3d", "on"]
vb.customize ["setextradata", :id, "GUI/MaxGuestResolution", "any" ]
vb.customize ["setextradata", :id, "CustomVideoMode1", "1024x768x32" ]
vb.customize ["setextradata", :id, "GUI/CustomVideoMode1", "1024x768x32" ]
vb.gui = true
end
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get upgrade -y
apt-get install -y ubuntu-desktop
reboot
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment