2015年初めに調査した内容なので、情報が古い可能性があります。
外出時に使用するラップトップのOSにLinuxMintを使用しています。 このマシンでもVagrantを使用できるようにします。
$ sudo apt-get install -y virtualbox virtualbox-dkms virtualbox-guest-additions-iso virtualbox-qt
$ sudo apt-get install -y vagrant
CentOSを使用したいのでCentOSのboxを追加する
$ mkdir ~/vagrant
$ cd ~/vagrant
$ vagrant box add centos64-32 http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-i386-v20131103.box
$ vagrant init centos64-32
$ vagrant up
これで使用可能になったと思いきや下記のエラーが出た。
[default] The guest additions on this VM do not match the installed version of
VirtualBox! In most cases this is fine, but in rare cases it can
cause things such as shared folders to not work properly. If you see
shared folder errors, please update the guest additions within the
virtual machine and reload your VM.
Guest Additions Version: 4.3.2
VirtualBox Version: 4.2
しかしvagrant status
で確認するとステータスはrunningになっている。
$ vagrant ssh
でログインすることもできた。
気持ち悪いけどログインできたしよしとする。 どうせ使い捨ての環境だし。
Vagrantを使用するにあたってsaharaは絶対入れときたいのでインストール
$ vagrant plugin install sahara
あとはすでに以前作ったVagrantfileをインポートして再度vagrant up
すればOK。