Setting up Vagrant and Virtual Box

  1. Download Vagrant and Virtuals box

(Virtualbox)[] (Vagrant)[] Make sure to install command line tools

  1. Make a directory for vagrantfile and instructions

mkdir ~/vagrant

  1. Find a virtual box you want

(puppetlabs boxes)[] (vagrant ubuntu boxes)[] (atlas)[]

Pick debian

  1. Add using vagrant box add

vagrant box add debian64

  1. Create a default virtual server:

vagrant init debian64

  1. 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

(vagrant docs)[] (run 64bit guest virtualbox)[]