21
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VirtualBox 5.1.20で共有フォルダーが動かなくなる対策

Last updated at Posted at 2017-04-19

VirtualBoxを5.1.20にアップデート後、Guest Additionをインストールし直すと、以下のようなメッセージが出力され、それ以降、共有フォルダーのマウントに失敗するようになってしまいます。

Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o dmode=755,fmode=644,uid=1000,gid=1000 vagrant /vagrant

The error output from the command was:

mount: wrong fs type, bad option, bad superblock on vagrant,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

Guest Additionがリグレッション起こしたのかな?
(Issueを調べれば上がってそう)

sudo rm /sbin/mount.vboxsf && sudo ln -s /usr/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf

を行えばマウントできるようになります。

なので、上記手順を実施後、

(VM再起動したくない場合)

sudo mount -t vboxsf -o dmode=755,fmode=644,uid=1000,gid=1000 vagrant /vagrant

を行うか、(VM再起動してもいい場合)ホストで

vagrant reload

して、VMを再起動すればOK

【参考】
http://qiita.com/amagitakayosi/items/07ff50afac1cd6f62c1f

【2017/04/23 追記】
@ytooyama さんからの情報です。
以下のisuueが発行されているようです。VirtualBoxの修正対応待ちですね。

21
16
6

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?