Setting Up Vagrant And Virtual Box
Setting up Vagrant and Virtual Box#
- Download Vagrant and Virtuals box
- Virtualbox
- Vagrant
- Make sure to install command line tools
- Make a directory for vagrantfile and instructions
mkdir ~/vagrant
- Find a virtual box you want
Pick debian
- Add using
vagrant box add
vagrant box add debian64 http://puppet-vagrant-boxes.puppetlabs.com/debian-73-x64-virtualbox-nocm.box
- Create a default virtual server:
vagrant init debian64
- Book the server
vagrant up
If you get an error on about not being able to connect with ssh
vim VagrantFile
Add:
config.vm.provider "virtualbox" do |v|
v.gui = true
end
Restart:
vagrant halt
vagrant up
You may still get this error
VT-x/AMD-V hardware acceleration is not available on your system. Your 64-bit guest will fail to detect a 64-bit CPU and will not be able to boot.
You can check your system with:
egrep '(vmx|svm)' /proc/cpuinfo
May need to acvtivate in bios AMD-V/VT-x
In VM:
Settings -> System -> Acceleration" and make sure that "Enable VT-x/AMD-V" is activated