我有一个全新安装的苏格兰威士忌。我一直在尝试安装它,在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插件,但这并没有用。任何想法如何解决这个问题。
提前多多感谢。
问候,
凯文
答案 0 :(得分:2)
如果您使用的是VirtualBox 5.1.16,则会报告类似的问题。看起来降级到5.1.14已经为大多数人解决了这个问题。你可以尝试一下。