gpt4 book ai didi

vagrant - vagrant up 后未知文件系统类型 'vboxsf'

转载 作者:行者123 更新时间:2023-12-03 19:31:58 52 4
gpt4 key购买 nike

我想使用 vagrant 设置环境,但在 vagrant up 后显示错误。这是我的规范

我正在使用 :
- OS X 优胜美地版本 10.10.5
- VirtualBox 版本 5.2.6
- Vagrant 2.0.1

这是我的 Vagrant 文件

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'它显示这样的错误
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

但仍然没有工作。任何人都可以帮助我吗?

evendo 我可以通过 vagrant ssh 完成。我无法更新 vagrant 文件夹中的任何文件和文件夹。

我该怎么办

最佳答案

我相信这是一个符号链接(symbolic link)问题,可以通过运行 ln -sf /opt/VBoxGuestAdditions-5.1.20/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf 来解决.这里还有一张关于这个确切问题的票 https://www.virtualbox.org/ticket/16670#comment:3这似乎解决了。

关于vagrant - vagrant up 后未知文件系统类型 'vboxsf',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53608950/

52 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com