/sbin/mount.vboxsf: mounting failed with the error

Vagrantでvbguestを使って、VirtualBoxのアドオンを更新していて、VagrantとVirutalBoxを更新したら以下のように怒られるようになった…。

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

こんなときは、~/.vagrant.d/Vagrantfileを以下のように更新して、auto_updateを無効にする必要があるらしい。

Vagrant.configure("2") do |config|
  config.vbguest.auto_update = false
end

として、vagrant upしたら解決した。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です