Vagrantで"The guest additions on this VM do not match the install version of VirtualBox!"と出たら

こんな感じのメッセージが出た場合

[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.

Guest Additions Version: 4.2.8
VirtualBox Version: 4.2.12

ホスト側とvagrant側のvirtualboxのバージョンがあわないよ。 って言われてる。

問題無さそうな気がするけど、 ググったら出てきたので対応した。

vagrant ssh

でvagrantに入って。

こっからお望みのisoを落としてきてインストールしてやればOKっぽい。

http://download.virtualbox.org/virtualbox/

リモート側でこんな感じの作業を行う。

cd /usr/local/src
sudo wget -c http://download.virtualbox.org/virtualbox/4.2.12/VBoxGuestAdditions_4.2.12.iso
sudo mount VBoxGuestAdditions_4.2.12.iso -o loop /mnt
sudo sh /mnt/VBoxLinuxAdditions.run
sudo umount /mnt

途中で。

Installing the Window System drivers                       [失敗]

って出るけど。 windowsがどうのこうの言ってるからよくわからないけどまあ良いと思う。

exit

して

vagrant halt
vagrant up

出なくなった。

複数vm立ち上げる時なんかはchefで対応するのかなー?