Created
June 27, 2018 09:20
-
-
Save hgouveia/60ac39fe31638e50ed469cbc4b6d8db1 to your computer and use it in GitHub Desktop.
Vagrant: Ubuntu GUI Virtualbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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