Vagrant.configure("2") do |config| config.vm.box = "debian/stretch64" config.vm.provider "virtualbox" do |v| v.name = "aic18g6t4" v.memory = 2048 # online deployment: needed to assign a fixed ip. if File.exist?(".online") config.vm.network "public_network", adapter: 2, type: "dhcp", mac: "080808080808" end end config.vm.provider "libvirt" do |v| v.memory = 2048 config.vm.synced_folder ".", "/vagrant", type: "rsync" end # design-choice: run file in vm. config.vm.provision "shell", inline: "/vagrant/provision.sh" config.vm.network "forwarded_port", adapter: 1, guest: 8080, host: 8080 # only for debugging reasons? config.vm.network "forwarded_port", adapter: 1, guest: 8081, host: 8081 config.vm.network "forwarded_port", adapter: 1, guest: 8082, host: 8082 config.vm.network "forwarded_port", adapter: 1, guest: 8083, host: 8083 config.vm.network "forwarded_port", adapter: 1, guest: 8084, host: 8084 config.vm.network "forwarded_port", adapter: 1, guest: 8085, host: 8085 end