Vagrantのmountエラー対応

[Sponsored Links]

introduction

vagrantのmountエラーが発生した。初回起動はうまくできたのだが、Vagrantfileを修正してvagrant reloadで再起動を行った際に、以下のエラーが発生した。

1.Failed to mount folders in Linux guest. This is usually because
2.the "vboxsf" file system is not available. Please verify that
3.the guest additions are properly installed in the guest and
4.can work properly. The command attempted was:
5.
6.mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant /vagrant
7.mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant
8.
9.The error output from the last command was:
10.
11./sbin/mount.vboxsf: mounting failed with the error: No such device

今回は以下の手順でエラーが無事解消されたので記載する。

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

1.[vagrant@localhost ~]$ sudo yum install kernel-devel

2.vboxのリビルド

1.[vagrant@localhost ~]$ sudo /etc/rc.d/init.d/vboxadd setup
2.Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
3.Building the VirtualBox Guest Additions kernel modules
4.Building the main Guest Additions module                   [  OK  ]
5.Building the shared folder support module                  [  OK  ]
6.Building the OpenGL support module                         [失敗]
7.(Look at /var/log/vboxadd-install.log to find out what went wrong. The module is not built but the others are.)
8.Doing non-kernel setup of the Guest Additions              [  OK  ]
9.Starting the VirtualBox Guest Additions                    [  OK  ]

3.vagrantの再起動

1.$ vagrant reload

参考

以下を参考にさせてもらいました!!

http://tech.withsin.net/2015/07/10/virtualbox-vagrant-mount-fail/

  • このエントリーをはてなブックマークに追加
[Sponsored Links]