Hello World from OSS Silicon Valley


HowToUse/Vagrant/1.6

#contents

*Prerequisite [#p7787c80]
-Install [[Overall/VirtualBox]]

*Install&Setup [#ga9b9a40]
:Step.1|
Download and runinstaller.

https://www.vagrantup.com/downloads

#ref(install_fig1.png,,500x312,)

:Step.2|
Click Next button.

#ref(install_fig2.png,,500x398,)

:Step.3|
Check the accept and click next button.

#ref(install_fig3.png,,500x398,)

:Step.4|
Choose install folder and click next button.

#ref(install_fig4.png,,500x398,)

:Step.5|
Choose install folder and click finish button.

#ref(install_fig5.png,,500x398,)

*HowToUse [#ta863717]
**Create Vagrantfile [#o86a5000]
: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

#ref(CreateInitFile_fig1.png,,500x275,)

''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 [#t48567f6]
: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

#ref(LaunchGuestOS_fig1.png,,500x275,)

#ref(LaunchGuestOS_fig2.png,,500x266,)

:Step.3|
Connect to guest OS from command line.

 $ vagrant ssh

#ref(LaunchGuestOS_fig3.png,,500x275,)

:Step.4|
Connect to guest OS from VirtualBox. Initial password for root is "vagrant".

#ref(LaunchGuestOS_fig4.png,,500x277,)


:Step.5|
Shutdown guest OS.

 $ vagrant halt

#ref(LaunchGuestOS_fig5.png,,500x275,)


*Contributer [#l1b9a3ae]
S.Yatsuzuka

*Open Discussion [#xe792749]
If you have questions or comments, please share them below.
We will improve the above information referring to your posting.
#article