VirtualBoxをダウングレードしてみる

VirtualBoxをダウングレードしてみる。

経緯

vagrantで、以前追加したCentOSのBOXでinitしてupしたところ
共有フォルダに関するエラーがでた。

$ vagrant init centos65
$ vagrant up
・・・
GuestAdditions versions on your host (4.3.18) and guest (4.3.6) do not match.
・・・
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` /vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` /vagrant /vagrant

現在のVirtualBoxのバージョンは「4.3.18」

エラーメッセージに

GuestAdditions versions on your host (4.3.18) and guest (4.3.6) do not match.

と出てるので、バージョンが一致してないのが関係してるっぽい。

ネットの記事を参考に下記のプラグインを入れたり、
色々試してみたが、うまくいかなかった。

$ vagrant plugin install vagrant-vbguest

そのため、VirtualBoxをダウングレードすることにした。

ダウングレード手順

下記のサイトから、過去のバージョンをダウンロードする。
「4.3.6」とマッチしないとエラーが出てるので、
今回は「4.3.6」をダウンロードした。

Download_Old_Builds_4_3 – Oracle VM VirtualBox
https://www.virtualbox.org/wiki/Download_Old_Builds_4_3

ダウンロードしたdmgファイル開いて、VirtualBox.pkgを実行する。

後は、手順に従ってインストールするだけ。

「4.3.6」になった。

確認

改めてvagrantを試してみると、エラーにならなかった。

めでたしめでたし。