Hello World from OSS Silicon Valley


HowToUse/Vagrant/1.6


_ Prerequisite

_ Install&Setup

Step.1
Download and runinstaller.

https://www.vagrantup.com/downloads

install_fig1.png
Step.2
Click Next button.
install_fig2.png
Step.3
Check the accept and click next button.
install_fig3.png
Step.4
Choose install folder and click next button.
install_fig4.png
Step.5
Choose install folder and click finish button.
install_fig5.png

_ HowToUse

_ Create Vagrantfile

Step.1
Execute the following command to create init file.
$ vagrant init <Guest OS name> <box file path>

Example

$ vagrant init centos-6-x64 http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210.box
CreateInitFile_fig1.png

Puppet Labs Vagrant Boxes http://puppet-vagrant-boxes.puppetlabs.com/

Chef Bento project https://github.com/opscode/bento

Step.2
Edit Vagrantfile which is created by vagrant init as needed
$ vi Vagrantfile

_ Launch guestOS

Step.1
Launch guest OS. In the first launch, vagrant download box file to remote server, but after it, vagrant try to launch guest OS with the local virtual box file.
$ vagrant up
LaunchGuestOS_fig1.png
LaunchGuestOS_fig2.png
Step.3
Connect to guest OS from command line.
$ vagrant ssh
LaunchGuestOS_fig3.png
Step.4
Connect to guest OS from VirtualBox. Initial password for root is "vagrant".
LaunchGuestOS_fig4.png
Step.5
Shutdown guest OS.
$ vagrant halt
LaunchGuestOS_fig5.png

_ Contributer

S.Yatsuzuka

_ Open Discussion

If you have questions or comments, please share them below. We will improve the above information referring to your posting.