- Host: Mac OS X 10.9.2, Ubuntu 14.04 LTS
- Virtualization Providers: VirtualBox 4.3.10, VMware Fusion 6.0.3 (1747349)
- Packer^ ~> 0.6.0
- Vagrant ~> 1.6.1
(^) Packer is required to build the custom Ubuntu image.
cp packer/template.json.example packer/template.json
Note: packer/template.json.example is based on Packer 0.6.0.
cpu_cores: 4 coresmemory: 4096 MBdisk_size: 20140 MB
- Copy
Vagrantfile.exampleasVagrantfileor create your own. - Configure and uncomment recipes that you want to cook.
- Optionally create your own recipes and place in the
cookbooks/customdirectory
rake virtualbox:install
rake vmware:install
vagrant up # starts vagrant
vagrant ssh # SSH into vagrant
vagrant reload # restarts vagrant
vagrant halt # stops vagrant
- If your vm cannot connect to the internet (this typically happens when you switch from one network to another on a VirtualBox vm), run this command:
sudo dhclient
-
If you're coming from 1.0.x version of Vagrant,
gem uninstall vagrantto avoid conflicts with the newer binary package based Vagrant. -
You received the message: "Error creating VM: VBoxManage error: VBoxManage: error: Machine settings file <path_to_vbox> already exists". Installation was left in a bad state. Open VirtualBox, stop and remove the existing VM. Delete this vbox in your VirtualBox directory and re-run the command that failed.