Last active
May 16, 2019 09:48
-
-
Save kayo-tozaki/04b2586c1ec274d378f9 to your computer and use it in GitHub Desktop.
vagrantfile for ubuntu-gui
This file contains hidden or 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
| # -*- 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thx !!! One tiny note: for me a "-y" was necessary in the apt-get command at the end ;-)