# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "Toasterson/openindiana-hipster" config.vm.provider "virtualbox" do |vb| # Set name of VM in virtualbox" vb.name = "opencloud_dev" # Use linked clone from master vm so that we do not install openindiana base 10 times vb.linked_clone = true # Set resources to something more reasonable vb.cpus = 4 vb.memory = 4096 end config.vm.provision "shell", inline: <<-SHELL # Install the go compiler and system header files to compile the applications inside the zone cat <> ~/.bashrc export PATH=/usr/local/bin:$PATH EOF cat < /etc/opencloud.yaml root: zfs: path: "rpool/podhost" mountpoint: "/podhost" docker: hubUrl: "https://registry-1.docker.io" EOF zfs create -o mountpoint=/zones rpool/zones dladm create-vnic -l e1000g0 template0 cat <