Vagrant 无法挂载共享文件夹
Vagrant unable to mount shared folders
我全新安装了 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>
我的 vagrantfile:
# -*- 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 插件,但没有成功。关于如何解决这个问题的任何想法。
非常感谢。
你好,
凯文
如果您使用的是 VirtualBox 5.1.16,则会报告类似的问题。看起来降级到 5.1.14 已经解决了大多数问题。你可以试一试。
我全新安装了 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>
我的 vagrantfile:
# -*- 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 插件,但没有成功。关于如何解决这个问题的任何想法。
非常感谢。
你好,
凯文
如果您使用的是 VirtualBox 5.1.16,则会报告类似的问题。看起来降级到 5.1.14 已经解决了大多数问题。你可以试一试。