※Vagrantが既にインストール済みの状態からの説明です。
以下のURLからインストールしたいOSのURLを探してくる。
ここではOfficial Ubuntu 12.10 daily Cloud Image amd64 (Guest Additions)を利用することにする。
任意のディレクトリで以下のコマンドを実行する。
$ vagrant box add ubuntu http://cloud-images.ubuntu.com/quantal/current/quantal-server-cloudimg-vagrant-amd64-disk1.box
そうすると
$ vagrant box add ubuntu http://cloud-images.ubuntu.com/quantal/current/quantal-server-cloudimg-vagrant-amd64-disk1.box
Downloading or copying the box...
�[0KExtracting box...ate: 3298k/s, Estimated time remaining: --:--:--)
The box you're attempting to add already exists:
Name: ubuntu
Provider: virtualbox
と、こんな感じでダウンロード出来るはず。
ダウンロードが完了したら、
$ vagrant init ubuntu
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
$ vagrant up
でUbuntuサーバが起動する。
Windows環境の場合、SSHクライアントを利用して
Host: 127.0.0.1
Port: 2222
Usr/Pwd: vagrant/*******
とかの接続情報で接続出来る。