Daniel Messenger
https://www.vagrantup.comVagrant is a platform that sits on top of virtualisation software to provide automation of creating and provisioning virtual machine (VM) environments
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.synced_folder "/path/on/host/web_root", "/web_root"
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 "file", source: "./install_mysql.sh", destination: "~/install_mysql.sh"
end
One time run on the command line to initialise the box
Now the box has been downloaded and a Vagrantfile is present
Note: Guest additions are designed to be installed on the guest OS to provide device drivers and system applications that improve the guest OS performance