- Use below Vagrantfile, this will install a Ubuntu 16.04 box and update the server and install git and the build-essential packages.
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.network "forwarded_port", guest: 80, host: 10301
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install git build-essential
SHELL