Skip to content

Instantly share code, notes, and snippets.

@kayo-tozaki
Last active May 16, 2019 09:48
Show Gist options
  • Select an option

  • Save kayo-tozaki/04b2586c1ec274d378f9 to your computer and use it in GitHub Desktop.

Select an option

Save kayo-tozaki/04b2586c1ec274d378f9 to your computer and use it in GitHub Desktop.
vagrantfile for ubuntu-gui
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# ↓yes proxy statement / not set using NAT only
config.proxy.http = "http://your.proxy.address:port_num"
config.proxy.https = "https://your.proxy.address:port_num"
# ↓no proxy statement
#config.proxy.http = ""
#config.proxy.https = ""
end
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu"
config.vm.network "private_network", ip: "192.168.33.11"
#config.vm.network "public_network"
# config.vm.synced_folder "../data", "/vagrant_data"
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
# Customize the amount of memory on the VM:
vb.memory = "1024"
end
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get install ubuntu-desktop
SHELL
end
end
@sudorudu
Copy link

Thx !!! One tiny note: for me a "-y" was necessary in the apt-get command at the end ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment