首页 > 解决方案 > 不能一下子在 laravel 宅基地上流浪

问题描述

我一直在运行 laravel 并使用 vagrant 一段时间。我最近做了一个vagrant destroy从全新安装重新加载的操作,现在我根本无法加载该框。我已经尝试从头开始卸载和重新安装 Virtualbox、vagrant 和 homestead(我正在使用 composer 来安装它以进行特定于项目的安装)。我确保在我的 Mac 上的安全设置中启用 Oracle。我完全不知所措,因为错误消息毫无用处,而且我在网上什么也没找到。

一切的版本:

运行结果vagrant up

❯ vagrant up
Bringing machine 'tools-ui' up with 'virtualbox' provider...
==> tools-ui: Importing base box 'laravel/homestead'...
==> tools-ui: Matching MAC address for NAT networking...
==> tools-ui: Checking if box 'laravel/homestead' version '9.7.2' is up to date...
==> tools-ui: Setting the name of the VM: tools-ui
==> tools-ui: Clearing any previously set network interfaces...
==> tools-ui: Preparing network interfaces based on configuration...
    tools-ui: Adapter 1: nat
    tools-ui: Adapter 2: hostonly
==> tools-ui: Forwarding ports...
    tools-ui: 80 (guest) => 8000 (host) (adapter 1)
    tools-ui: 443 (guest) => 44300 (host) (adapter 1)
    tools-ui: 3306 (guest) => 33060 (host) (adapter 1)
    tools-ui: 4040 (guest) => 4040 (host) (adapter 1)
    tools-ui: 5432 (guest) => 54320 (host) (adapter 1)
    tools-ui: 8025 (guest) => 8025 (host) (adapter 1)
    tools-ui: 9600 (guest) => 9600 (host) (adapter 1)
    tools-ui: 27017 (guest) => 27017 (host) (adapter 1)
    tools-ui: 9200 (guest) => 9200 (host) (adapter 1)
    tools-ui: 22 (guest) => 2222 (host) (adapter 1)
==> tools-ui: Running 'pre-boot' VM customizations...
==> tools-ui: Booting VM...
==> tools-ui: Waiting for machine to boot. This may take a few minutes...
    tools-ui: SSH address: 127.0.0.1:2222
    tools-ui: SSH username: vagrant
    tools-ui: SSH auth method: private key
    tools-ui: Warning: Connection reset. Retrying...
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'aborted' 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 日志,但似乎没有任何用处……如果您需要,很乐意发布这些日志。

标签: laravelvagrantvirtualboxhomestead

解决方案


原来,这是由我最近安装的 Intel Power Gadget ( https://software.intel.com/content/www/us/en/develop/articles/intel-power-gadget.html ) 引起的。卸载它并重新启动解决了问题。


推荐阅读