0
3

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/vagrantフォルダ共有がうまくいかない

Last updated at Posted at 2017-06-27

エラーの内容

vagrant upした時、以下のエラーが出る...

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

いろいろ調べてみましたが...

フォルダ共有機能はGuest Additionsが提供している。
ホスト(VirtualBox)とゲスト(Guest Additions)でバージョン不一致があるとマウントエラーが起きる

らしい...

Guest AdditionsのVersionとVirtualBoxのVersionが違うとマウントがうまくいかない
らしい...

試したこと

1. kernel-devel のインストール

No package kernel-devel-hogehoge.x86_64 available.
というエラーの内容から調べた結果、以下を試してみた

yum update
yum install <http://rpm.pbone.net/で探した対象のバージョンのkernel-devel>

↑を実行してからvagrant reload

「No such device」のエラー解消せず。。

2. もともと入れていたプラグイン「vagrant-vbguest」の自動更新を停止する

vbguestの自動更新を行わないようにして、とりあえず解決しました。。

↓vagrantfile↓

config.vbguest.auto_update = false

↑を記載してからvagrant up

参考

[Sy] 【解決した】Vagrantでvagrant-vbguestを使ってたら共有フォルダのマウントに失敗する
[Vagrant]Gueat Additionsの更新に失敗するの時の対応

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?