- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
所以我一直在尝试通过 Vagrant/VirtualBox 安装 Laravel Homestead。它曾经有效,但现在根本不起作用。除了来自客户机的错误中提到的日志文件 /var/log/vboxadd-install.log
之外,我还包含了运行 vagrant up
返回的内容。下面也是我当前设置的所有版本号。
OS: Windows 8.1 (64-bit), VirtualBox: 4.3.26, Vagrant: 1.7.2
这是运行命令vagrant up
的结果
PS C:\Users\brand_000\Homestead> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 80 => 8000 (adapter 1)
default: 443 => 44300 (adapter 1)
default: 3306 => 33060 (adapter 1)
default: 5432 => 54320 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 4.3.18
VBoxService inside the vm claims: 4.3.8
Going on, assuming VBoxService is correct...
GuestAdditions versions on your host (4.3.26) and guest (4.3.8) do not match.
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 4.3.18
VBoxService inside the vm claims: 4.3.8
Going on, assuming VBoxService is correct...
Reading package lists...
Building dependency tree...
Reading state information...
linux-headers-3.16.0-23-generic is already the newest version.
dkms is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Copy iso file C:\Program Files/Oracle/VirtualBox/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
mount: /dev/loop0 is write-protected, mounting read-only
Installing Virtualbox Guest Additions 4.3.8 - guest version is 4.3.8
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.8 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.8 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
Building the main Guest Additions module ...done.
Building the shared folder support module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions ...done.
Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
An error occurred during installation of VirtualBox Guest Additions 4.3.8. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => C:/Users/brand_000/Homestead
Failed to mount folders in Linux guest. This is usually because
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
The error output from the last command was:
/sbin/mount.vboxsf: mounting failed with the error: No such device
PS C:\Users\brand_000\Homestead>
这是错误文件的内容。 PasteBin Upload of error file @ /var/log/vboxadd-install.log
我确实按照 StackOverflow 上的一些指南和答案安装了 vbguest vagrant 插件,但到目前为止没有任何效果。甚至尝试将 VirtualBox 降级到 4.3.8 和其他版本,但没有成功。我按照 installing Laravel Homestead 上的说明进行操作正确。正如我提到的,它在过去有效。有什么建议吗?
最佳答案
编辑scripts\homestead.rb
,更改:
mount_opts = folder["type"] == "nfs" ? ['actimeo=1'] : []
至
mount_opts = folder["type"] == "nfs" ? [''] : []
然后安装VBoxGuestAdditions:
C:\Homestead> vagrant plugin install vagrant-vbguest
C:\Homestead> vagrant up
C:\Homestead> vagrant ssh
$ sudo ln -s /opt/VBoxGuestAdditions-4.3.18/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
$ sudo apt-get install --yes dkms linux-headers-3.16.0-23-generic
$ sudo /etc/init.d/vboxadd setup
$ exit
C:\Homestead> vagrant halt
C:\Homestead> vagrant up
关于Laravel Homestead Vagrant - 'vboxsf' 不可用问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30175290/
我想使用 vagrant 设置环境,但在 vagrant up 后显示错误。这是我的规范 我正在使用 : - OS X 优胜美地版本 10.10.5 - VirtualBox 版本 5.2.6 - V
所以我一直在尝试通过 Vagrant/VirtualBox 安装 Laravel Homestead。它曾经有效,但现在根本不起作用。除了来自客户机的错误中提到的日志文件 /var/log/vboxa
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwa
我正在开发一个使用 Vagrant(带有 Linux 客户机)作为构建环境的项目。构建过程依赖于 mmap() 来构建特定于应用程序的二进制文件。不幸的是,vboxsf,VirtualBox 与主机共
我有以下错误: Vagrant was unable to mount VirtualBox shared folders. This is usually because the filesyste
我在 Ubuntu 14.04 64 位桌面上安装了 VirtualBox 4.3.10 和 Vagrant 1.4.3。 之前,使用 vagrant 技术,但这次是多个问题。让我描述一下我做了什么
问题 我在 Windows 10 上安装了 Vagrant,因此我可以在虚拟机中创建个人本地开发环境。我读到的关于 Vagrant 的所有内容都说我什至可以启动多个系统并使用 NAT 端口转发测试它们
我是这个论坛的新手,但我偶尔会使用 vbox。我有 Windows 7 主机和 ubuntu 9.10 guest ,它们在安装了 vboxadditions、共享文件夹和一切完美的情况下都可以正常工
我是一名优秀的程序员,十分优秀!