vagrant(for windows)

# vagrantのインストール


# CentOS64bit版をインストール

$ vagrant box add {title} {url}
C:\Users\a9b\>C:\HashiCorp\Vagrant\bin\vagrant box add lucid64

# 実際にVirtualBoxで起動します

$ vagrant init {BOX名}
$ vagrant up
C:\Users\a9b\>mkdir lucid64 
C:\Users\a9b\>cd lucid64 
C:\Users\a9b\lucid64 >C:\HashiCorp\Vagrant\bin\vagrant init lucid64
C:\Users\a9b\lucid64 >C:\HashiCorp\Vagrant\bin\vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'lucid64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] Mounting shared folders...
[default] -- /vagrant
C:\Users\a9b\lucid64 >dir
C:\Users\seki\cent64 のディレクトリ
2013/11/20  15:27    <DIR>          .
2013/11/20  15:27    <DIR>          ..
2013/11/20  15:27    <DIR>          .vagrant
2013/11/20  15:27             4,730 Vagrantfile

# sshでログイン

$ vagrant ssh
C:\Users\a9b\cent64>C:\HashiCorp\Vagrant\bin\vagrant ssh
`ssh` executable not found in any directories in the %PATH% variable. Is an
SSH client installed? Try installing Cygwin, MinGW or Git, all of which
contain an SSH client. Or use the PuTTY SSH client with the following
authentication information shown below:

Port: 2222
Username: vagrant
Private key: C:/Users/a9b/.vagrant.d/insecure_private_key

# 参考URL