LoginSignup
0
0

More than 5 years have passed since last update.

vagrant up時のマウントフォルダのエラー

Posted at

vagrant upすると、
以下のメッセージが表示された

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=777,fmode=777,uid=1000,gid=1000 vagrant /vagrant

The error output from the command was:

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

以下の記事を参考にさせて頂きました。
https://qiita.com/wakaba260/items/b5c87b7815b710f303a0

vagrant sshで仮想マシンに入り
以下のコマンドを実行。

$ sudo yum -y update kernel
$ sudo yum -y install kernel-devel kernel-headers dkms gcc gcc-c++

その後、仮想マシンを再起動すると共有フォルダは共有されてました。

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