Any Any

いつでもどこでも、何でもかんでも。

Vagrantでmountに失敗した時の対処法

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

VMsshでログインし、以下のコマンドを実行することで直る。

sudo /etc/init.d/vboxadd setup

コマンドを検索してみたが、ちょいちょいshared folderやらVirtualBoxのGuestAdditionで引っかかっている方がいるっぽい。