Following the vagrant documentation to create a new base box running Ubuntu 12.04 and Puppet requires to do a lot of single steps. Using this simple guide may help you to go through these steps much faster.
You will need to install a current version of VirtualBox and vagrant:
gem install vagrantYou should also download Ubuntu 12.04 and simply create an Ubuntu virtual machine in VirtualBox.
Use the following convention during this process:
- Hostname:
vagrant-ubuntu-precise - Domain:
vagrantup.com - Main account login:
vagrant - Main account password:
vagrant
Once your virtual machine is created, start it and log in as user vagrant.
Use VirtualBox' Device menue to install the guest additions and run the following command:
curl https://gist.github.com/jehrhardt/4721006/raw/911334507ff0f0f2f88b4fb5d62e64a54a3c2675/setup_guest_additions.sh | sudo shThere are some basics, that need to be done on the virtual machine. Most of them can be automated using this command:
curl https://gist.github.com/jehrhardt/4721006/raw/911334507ff0f0f2f88b4fb5d62e64a54a3c2675/setup_vm.sh | sudo shThe last manual step is to fix the sudoers list.
sudo su
visudoFind the line starting with %admin, replace it with %admin ALL=(ALL) NOPASSWD:ALL and add the line Defaults env_keep="SSH_AUTH_SOCK" in the section, where Defaults are
defined.
© 2013 Jan Ehrhardt - Licensed under the terms of CC-BY-SA.