Vagrant无法装载共享文件夹

Vagrant无法装载共享文件夹,vagrant,virtualbox,Vagrant,Virtualbox,我有一个新安装的scotchbox。我一直在尝试在mac上安装它,它正常工作没有问题,现在我在使用windows,我开始遇到各种各样的问题 解决了大部分问题,但由于某些原因,我无法解决这一问题 ==> default: Mounting shared folders... default: /var/www => C:/Users/kevin/Desktop/programeren/scotch-box-master Vagrant was unable to mount V

我有一个新安装的scotchbox。我一直在尝试在mac上安装它,它正常工作没有问题,现在我在使用windows,我开始遇到各种各样的问题

解决了大部分问题,但由于某些原因,我无法解决这一问题

==> default: Mounting shared folders...
    default: /var/www => C:/Users/kevin/Desktop/programeren/scotch-box-master
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=666,uid=1000,gid=1000 var_www /var/www

The error output from the command was:

: No such file or directory

C:\Users\kevin\Desktop\programeren\scotch-box-master>
我的流浪汉档案:

    # -*- mode: ruby -*-
    # vi: set ft=ruby :

    Vagrant.configure("2") do |config|

        config.vm.box = "scotch/box"
        config.vm.network "private_network", ip: "192.168.33.10"
        config.vm.hostname = "scotchbox"
        config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]

    # Optional NFS. Make sure to remove other synced_folder line too
    #config.vm.synced_folder ".", "/var/www", :nfs => { :mount_options => ["dmode=777","fmode=666"] }

end
我试过安装一个名为vagrant vbguest的vagrant插件,但没有成功。有没有办法解决这个问题

先谢谢你

您好


Kevin

如果您使用的是VirtualBox 5.1.16,则会出现类似的问题。看起来降级到5.1.14已经解决了大多数问题。你可以试试看

先生,你太棒了!谢谢