首页 > 安装vagrant、laravel/homestead提示错误,求解?

安装vagrant、laravel/homestead提示错误,求解?

我的操作流程如下
1、vagrant官网,下载最新vagrant,安装成功,可以执行vagrant box list
2、virtualbox官网,下载最新virtualbox,安装成功,机器确认开启vt模式
3、执行vagrant box add laravel/homestead,提示成功
4、新建一个目录,cd进入,在该目录下执行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: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'poweroff' state. Please verify everything is configured
properly and try again.

If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the
VirtualBox GUI is open.

The primary issue for this error is that the provider you're using
is not properly configured. This is very rarely a Vagrant issue.

在virtualbox下手动启动虚拟机出现如下提示


应该是你用过 Universal Theme Patcher 之类的 Windows 主题破解工具修改过 themeservice.dll themeui.dll uxtheme.dll 这三个系统文件,改变了签名,导致与较新的 VBox 不兼容。

目前解决方法有三种:
1、将这三个文件改回 Windows 原本的版本,如果没有备份可以从网上或找一台没修改过的电脑拷过来,缺点是不再能使用第三方 Windows 主题;
2、使用 4.3.12 或更早的 VBox,当时还是兼容的;
3、还原文件后用 UxTheme Multi-Patcher 代替,这个软件不会修改那三个系统文件,但是有后台进程。

【热门文章】
【热门文章】