Windows7でCentOSをインストール

前提条件
Rubyがインストールされてること。

1. Vagrantインストール
ここ
Download Vagrant - Vagrantからダウンロードしてインストール


2. VirtualBoxインストール
ここDownloads – Oracle VM VirtualBoxからダウンロードしてインストール

3. VirtualBoxにゲストOSをインストール
インストール
urlのところはここA list of base boxes for Vagrant - Vagrantbox.esから目的のOSのURLを取得する。
ここopscode/bento · GitHubからダウンロードしてローカルのパスを指定しても良い

> vagrant box add {title} {url}

C:\dev\Vagrant\box>vagrant box add centos https://github.com/2creatives/vagrant-centos/releases/download/v0.1.0/centos64-x86_64-20131030.box
Downloading box from URL: https://github.com/2creatives/vagrant-centos/releases/download/v0.1.0/centos64-x86_64-20131030.box
Extracting box...ate: 2590k/s, Estimated time remaining: --:--:--)
Successfully added box 'centos' with provider 'virtualbox'!

設定ファイル作成
コマンドを実行したディレクトリに[VagrantFile]という設定ファイルができる

> vagrant init {title}

起動

> vagrant up

sshで接続
…できないのでPuTTYで接続する。

> 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:

Host: 127.0.0.1
Port: 2222
Username: vagrant
Private key: C:~/.vagrant.d/insecure_private_key