Vagrant error : Failed to mount folders in Linux guest

后端 未结 21 2307
臣服心动
臣服心动 2020-11-27 08:46

I have some issues with Vagrant shared folders, my base system is Ubuntu 13.10 desktop.

I do not understand why I have this error is something that is not right conf

相关标签:
21条回答
  • 2020-11-27 09:39

    I believe this is the most updated answer now and it worked for me ( Guest Additions Version: 5.0.6, VirtualBox Version: 4.3.16, Ubuntu 14.04 LTS)

    https://github.com/mitchellh/vagrant/issues/3341#issuecomment-144271026

    Basically i says:

    Simple and Quick Solution for Failed to mount folders in Linux guest issue.
    
    Add the following line to your Homestead/Vagrantfile:
    
    config.vbguest.auto_update = false
    Your Homestead/Vagrantfile should looks like this:
    
    /...
    
    Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    
       # To avoid install and uninstall VBoxGuessAdditions during vagrant provisioning.
        config.vbguest.auto_update = false
    
    .../
    Save it and execute
    
    $ vagrant destroy --force
    $ vagrant up
    
    0 讨论(0)
  • 2020-11-27 09:41

    Your log complains about not finding exportfs: sudo: /usr/bin/exportfs: command not found

    The exportfs makes local directories available for NFS clients to mount.

    0 讨论(0)
  • 2020-11-27 09:42

    by now the mounting works on some machines (ubuntu) and some doesn't (centos 7) but installing the plugin solves it

    vagrant plugin install vagrant-vbguest
    

    without having to do anything else on top of that, just

    vagrant reload
    
    0 讨论(0)
提交回复
热议问题