gpt4 book ai didi

php - vagrant : Failed to mount folders in Linux guest, "vboxsf"文件系统不可用?

转载 作者:可可西里 更新时间:2023-11-01 12:27:40 27 4
gpt4 key购买 nike

我在 Ubuntu 14.04 64 位桌面上安装了 VirtualBox 4.3.10Vagrant 1.4.3

之前,使用 vagrant 技术,但这次是多个问题。让我描述一下我做了什么

  1. 将私有(private) git 克隆到本地系统/opt/lampp/htdocs/{project}:完成

  2. root@desktop:/opt/lampp/htdocs/{project}$ vagrant up

执行时在终端上给出消息

GuestAdditions versions on your host (4.3.10) and guest (4.2.0) do not match.

命令完成并显示以下消息

Failed to mount folders in Linux guest. This is usually beacuse the "vboxsf" file system is not available. Please verify that the guest additions are properly installed in the guest and can work properly. The command attempted was:

...

我明白这是版本差异。

  1. 检查 vagrant vbguest --status

    GuestAdditions 4.3.10 running --- OK.

  2. 打开浏览器并使用 http://192.168.0.33 运行(在私有(private) git repo 的 README.md 文件中提到)但它没有工作。

更新

  1. 按照建议安装了 vagrant-vbguest here

    $:sudo vagrant plugin install vagrant-vbguest

    Installed the plugin 'vagrant-vbguest (0.10.0)'!

通过这样做,2.中描述的GuestAdditions版本差异信息消失了

  1. 重启vagrant halt然后vagrant up

Bringing machine 'default' up with 'virtualbox' provider...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 80 => 8080 (adapter 1)
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
GuestAdditions 4.3.10 running --- OK.
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant

Failed to mount folders in Linux guest. This is usually beacuse the "vboxsf" file system is not available. Please verify that the guest additions are properly installed in the guest and can work properly. The command attempted was:

    mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` /vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` /vagrant /vagrant

我是否需要更改本地 vagrantfile 中的任何内容或更改 vagrant 版本或其他内容?

Some say it is a bug whilesome 给出了 ubuntu < 14.04

的解决方案

请提供解决方案提示以及如何解决此问题?

最佳答案

 vagrant plugin install vagrant-vbguest

对我来说效果很好(Virtual Box 5.0.22,Vagrant 1.8.4)。最初配置花费了更长的时间,因为插件在将访客添加的 .iso 链接到正确的位置之前下载了 gcc 和一堆其他工具。

关于php - vagrant : Failed to mount folders in Linux guest, "vboxsf"文件系统不可用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28494349/

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