Vagrant was unable to mount VirtualBox shared folders

后端 未结 8 2090
一生所求
一生所求 2021-01-29 18:17

Current setup: Virtualbox 5.1.20 with Vagrant 1.9.3

Previous working setup: Virtualbox 5.1.18 with Vagrant 1.9

8条回答
  •  南笙
    南笙 (楼主)
    2021-01-29 18:58

    For me, the problem was fixed under the following conditions:

    Environment:

    • VirtualBox version 6.0.4r128413
    • Vagrant version 2.2.3

    Steps:

    Go to your project directory from the terminal or command line (cd) and run the following commands:

    1. vagrant plugin install vagrant-vbguest to install the Vagrant VB Guest Plugin

    2. vagrant up

    If you get an error regarding vboxsf not being available. Then maybe your VirtualBox Guest Additions are not installed properly. Hopefully, the commands below will fix your problem.

    vagrant ssh
    sudo yum -y install kernel-devel
    sudo yum update -y
    exit
    vagrant halt
    vagrant up --provision
    

提交回复
热议问题