LoginSignup
0
1

More than 5 years have passed since last update.

vagrantのマウントが失敗するのでvbguestプラグインを入れる

Posted at

おそらく、VirtualBox5.0.30 → 5.1.12にバージョンアップしたからだと思いますが、vagrantでマウントができなくなりました。:cry:

vagrant upすると、

/sbin/mount.vboxsf: mounting failed with the error: No such device

と出て自動マウントが失敗している模様。(起動はできてるぽいけど)
いろいろggってみたところ、GuestAdditionsというのが古いままなのが問題みたいなので、そのへんをいい感じにしてくれるらしいプラグインを入れる。

$ vagrant plugin install vagrant-vbguest
Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Installed the plugin 'vagrant-vbguest (0.13.0)'!

入ったようなので再度 vagrant up する。

途中で

[default] GuestAdditions versions on your host (5.1.12) and guest (4.3.14) do not match.

とか出てて、勝手に何やらインストールしてくれるみたい。
途中で404 Not Foundとか出てて大丈夫かと心配になったけど、無事にYour box is ready and waiting.と緑色のメッセージが出ました。

念のため

$ vagrant vbguest --status

してみたけど、

Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   4.3.14
VBoxService inside the vm claims: 5.1.12
Going on, assuming VBoxService is correct...
[default] GuestAdditions 5.1.12 running --- OK.

と出てるので大丈夫っぽい。

vagrant ssh してみたら、ちゃんとマウントされていました。良かった。

0
1
0

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
0
1