VagrantでVMを起動する際に、共有フォルダのマウントに失敗した。Goolgeで検索して、以下などやってみたのだが、それでもダメだった。
$ vagrant plugin install vagrant-vbguest
Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Installed the plugin 'vagrant-vbguest (0.15.2)'!環境
HostOS: Windows 10(VirtualBoxを使用)
Getst: CentOS 8解決方法
- VirtualBoxとVagrantを最新に更新する。
- VirtualBoxとVagrantを更新しても、以下のようにVagrantでの起動に失敗する。
$ vagrant up
Vagrant failed to initialize at a very early stage:
The plugins failed to initialize correctly. This may be due to manual
modifications made within the Vagrant home directory. Vagrant can
attempt to automatically correct this issue by running:
vagrant plugin repair
If Vagrant was recently updated, this error may be due to incompatible
versions of dependencies. To fix this problem please remove and re-install
all plugins. Vagrant can attempt to do this automatically by running:
vagrant plugin expunge --reinstall
Or you may want to try updating the installed plugins to their latest
versions:
vagrant plugin update
Error message given during initialization: Unable to resolve dependency: user requested 'vagrant-vbguest (= 0.15.2)'- プラグインを再インストールする。
$ vagrant plugin expunge --reinstall- 以下コマンドを再度実行。これでVMが起動する。
※まだマウントには失敗する。
$ vagrant up
...
The error output from the command was:
/sbin/mount.vboxsf: mounting failed with the error: No such device- VMにSSHログインして、
yum updateする。
$ vagrant ssh
# 以下、VMでのコマンド。
$ sudo su
# yum update- VMからログアウトする。
# exit
$ exit- VagrantでVMをリロードすれば、マウントされるはず。
$ vagrant reload --provision


