vagrant up 后未知的文件系统类型“vboxsf" [英] unknown filesystem type 'vboxsf' after vagrant up
问题描述
我想使用 vagrant 设置环境但在 vagrant up 后显示错误.这是我的规格
i want to setup environment using vagrant but display error after vagrant up. here is my spec
我正在使用:- OS X 优胜美地版本 10.10.5- VirtualBox 版本 5.2.6- 流浪者 2.0.1
im using : - OS X Yosemite Version 10.10.5 - VirtualBox vesion 5.2.6 - Vagrant 2.0.1
这是我的 Vagrant 文件
and this is my Vagrant file
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.network "private_network", ip: "192.168.33.99"
config.vm.synced_folder "./", "/vagrant", type:"virtualbox", :owner => 'apache', :group => 'apache', mount_option: ['dmode=777', 'fmode=755']
end
但是我去运行 'vagrant up' 它显示这样的错误
but went i run 'vagrant up' it display error like this
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 uid=48,gid=48 vagrant /vagrant
The error output from the command was:
mount: unknown filesystem type 'vboxsf'
我确实运行了这段代码
vagrant plugin install vagrant-vbguest
vagrant vbguest
显示错误信息
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-3.10.0-862.14.4.el7.x86_64
An error occurred during installation of VirtualBox Guest Additions 5.2.6. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
Redirecting to /bin/systemctl start vboxadd.service
Job for vboxadd.service failed because the control process exited with error code. See "systemctl status vboxadd.service" and "journalctl -xe" for details.
Unmounting Virtualbox Guest Additions ISO from: /mnt
和这段代码
vagrant plugin install vagrant-winnfsd
但是还是不行.有人可以帮我吗?
but still didn't work. anyone can help me?
我可以通过 vagrant ssh 完成.我无法更新 vagrant 文件夹中的任何文件和文件夹.
evendo i can go through with vagrant ssh. i can't update any file and folder in vagrant folder.
我该怎么办
推荐答案
如果你还想使用 config.vm.box = "centos/7" 那就这样做:
If you still want use config.vm.box = "centos/7" then do this:
- 运行命令
vagrant plugin uninstall vagrant-vbguest
- 运行命令
vagrant plugin install vagrant-vbguest --plugin-version 0.21
替代解决方案:
- 您只需将
config.vm.box = "centos/7"
更改为config.vm.box = "generic/centos7"
- 使用这个命令卸载插件
vagrant plugin uninstall vagrant-vbguest
(如果你已经下载了) - 之后运行命令
vagrant up
这篇关于vagrant up 后未知的文件系统类型“vboxsf"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!