Vagrant 无法挂载共享文件夹 [英] Vagrant unable to mount shared folders

查看:48
本文介绍了Vagrant 无法挂载共享文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我全新安装了 scotchbox.我一直在尝试安装它,在 Mac 上它通常可以正常工作,现在我正在使用 Windows,并且我开始遇到各种问题.

I have a fresh installation of scotchbox. I have been trying to install this, on a mac it normally works without problems, now im using windows and im starting to get all sorts of problems with it.

解决了大部分问题,但由于某种原因我无法解决这个问题.

Solved most of them, however I cannot solve this one for some reason.

==> 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 的流浪插件,但没有成功.任何想法如何解决这个问题.

I have tried installing a vagrant plugin called vagrant-vbguest, this didn't work. Any ideas how to solve this.

非常感谢.

您好,

凯文

推荐答案

如果您使用的是 VirtualBox 5.1.16,则会报告类似的问题.对于大多数人来说,降级到 5.1.14 似乎已经解决了这个问题.你可以试一试.

If you are using VirtualBox 5.1.16, there have been similar issues reported. It looks like downgrading to 5.1.14 has solved this for most of them. You could give it a try.

这篇关于Vagrant 无法挂载共享文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆