Skip to content

Setting Up Vagrant And Virtual Box

Setting up Vagrant and Virtual Box#

  1. Download Vagrant and Virtuals box
  1. Make a directory for vagrantfile and instructions
mkdir ~/vagrant
  1. Find a virtual box you want

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


config.vm.provider "virtualbox" do |v|
  v.gui = true


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