Windows+Vagrant+CentOS7をインストールする(/sbin/mount.vboxsfエラーの対処方法)

VirtualBox-4.3.20-96997-Win.exeをインストールする

vagrant_1.7.1.msiをインストールする

  • BOXファイルのダウンロード

http://www.vagrantbox.es/のCentOS7.0 x86_64 minimal (VirtualBoxGuestAddtions 4.3.14)をダウンロードする
https://f0fff3908f081cb6461b407be80daf97f07ac418.googledrive.com/host/0BwtuV7VyVTSkUG1PM3pCeDJ4dVE/centos7.box

  • CenOS7のインストール

以下のコマンドを実行する
>vagrant box add centos7 C:\Users\XXXX\Downloads\centos7.box
>vagrant init centos7
>vagrant up
すると、下記のエラーが発生する

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

The error output from the last command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device
  • エラーの対処

localhost:2222にPuTTYSSHログイン
$ su -
# /etc/init.d/vboxadd setup

>vagrant halt
>vagrant up