Skip to content

Instantly share code, notes, and snippets.

@lucasallan
Created November 6, 2016 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasallan/003027588ac5abdf5ef055b6c790946d to your computer and use it in GitHub Desktop.
Save lucasallan/003027588ac5abdf5ef055b6c790946d to your computer and use it in GitHub Desktop.
rkt vagrant
Vagrant.configure('2') do |config|
config.vm.box = "ubuntu/xenial64" # Ubuntu 16.04
# fix issues with slow dns http://serverfault.com/a/595010
config.vm.provider :virtualbox do |vb, override|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
vb.customize ["modifyvm", :id, "--memory", "4096"]
vb.customize ["modifyvm", :id, "--cpus", "4"]
end
config.vm.provider :libvirt do |libvirt, override|
libvirt.memory = 1024
end
config.vm.network "private_network", type: "dhcp"
config.vm.provision :shell, :privileged => true, :path => "scripts/install-rkt.sh"
config.vm.provision :shell, :inline => "usermod -a -G rkt-admin ubuntu"
config.vm.provision :shell, :inline => "usermod -a -G rkt ubuntu"
config.vm.synced_folder ".", "/rkt", type: "rsync", rsync__exclude: [".git/", "build-rir/"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment