Skip to content

Latest commit

 

History

History
76 lines (47 loc) · 1.17 KB

File metadata and controls

76 lines (47 loc) · 1.17 KB

Vagrant Tutorial

Intro

Vagrant is a tool that easily set up an environment that looks similar to the actual working environment.


Use

To use vagrant, you should first find your desired virtual environment from here.

To start your environment, you should use the following command.

vagrant init ubuntu/trusty64

It may take several minutes if the enviroment is first used.


Vagrant Config Instructions

  • config.vm.box - Operating System

  • config.vm.provider - Virtual Box

  • config.vm.network - How you host sees your box

  • config.vm.synced_folder - How you access files in your computer

  • config.vm.provision - what we want setup


Basic Commands

If Vagrantfile is not present, you have to init vagrant by:

vagrant init `ubuntu/trusty64`

If Vagrantfile is present, just run:

vagrant up
vagrant resume
vagrant suspend
vagrant destroy
vagrant ssh

TODO:

Can use it to test ansible-playbook