Skip to content

Instantly share code, notes, and snippets.

@dre3s
Last active January 12, 2016 18:05
Show Gist options
  • Select an option

  • Save dre3s/f56b522e496ab2b89ce7 to your computer and use it in GitHub Desktop.

Select an option

Save dre3s/f56b522e496ab2b89ce7 to your computer and use it in GitHub Desktop.
my.study.vagrant.starting.md

Starting with vagrant

Installing Virtualbox:

$ sudo apt-get install virtualbox

Installing Vagrant:

$ sudo apt-get install vagrant

dkms

$ sudo apt-get install virtualbox-dkms
$ vagrant add box - virtual machine

Choose box: http://www.vagrantbox.es/

vagrant box add precise64 http://files.vagrantup.com/precise64.box

Configure Project:

Example

$ mkdir vagrant_project
$ cd vagrant_project
$ mkdir vagrant_<name_project>
$ cd vagrant_<name_project>
$ vagrant init

Vagrantfile(config 1) - define box

config.vm.box = "precise64"

Up virtual machine

$  vagrant up

Connect using SSH:

$ vagrant ssh

Vagrantfile(config 2) - Sync directory of the mean machine, add line:

config.vm.synced_folder "/home/asato/workspace/", "/home/vagrant/workspace"

Restart vm

$ vagrant reload 

help infos

info type SO (x86_64)

$ arch

display info of system

$ lsb_release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment