M1安装homestead环境报错,该怎么处理?

1. 相关系统软件版本

mini系统版本:macOS Ventura 13.2.1
parallels desktop版本:18.1.1
Vagrant 版本:2.3.2

2. 现在虚拟机镜像已经导入进去:

sudo vagrant box add metadata.json 执行成果

3. 运行虚拟机

sudo vagrant up

4. 错误信息如下

M1安装homestead环境报错

5. 执行启动虚拟机命令后错误文本内容如下

Bringing machine ‘homestead’ up with ‘parallels’ provider…
==> homestead: Checking if box ‘laravel/homestead’ version ‘12.2.0’ is up to date…
==> homestead: Clearing any previously set forwarded ports…
==> homestead: Preparing network interfaces based on configuration…
homestead: Adapter 0: shared
homestead: Adapter 1: hostonly
==> homestead: Clearing any previously set network interfaces…
==> homestead: Forwarding ports…
homestead: 80 => 8000
homestead: 443 => 44300
==> homestead: Running ‘pre-boot’ VM customizations…
==> homestead: Booting VM…
There was an error while command execution. The command and stderr is shown below.

Command: [“/usr/local/bin/prlctl”, “start”, “d6ca70b3-5ed7-4b97-bdcd-248eaa5740f4”]

Stderr: Failed to start the VM: Unable to start “homestead” because your Mac is equipped with the Apple M series chip that does not support Intel-based operating systems. To create a compatible virtual machine, use an ISO or VHDX image file with an ARM-based operating system.

6. 安装的文档参考以下链接M1安装homestead

《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 4

为啥不用valet呢。。。。。

2年前 评论

如果一定要用虚拟机的话,Multipass 也是一个不错的选择,只是需要自己编译 PHP 等,当然也可以直接运行 docker 的 vm。在 Apple Silicon 上无需配置,直接运行,支持 Homebrew 安装!

multipass.run

2年前 评论
nff93

报错信息应该是让你使用 arm 的镜像吧?

2年前 评论

请按照官方文档安装

Homestead 虚拟机

注意:如果你使用的是 Apple Silicon,你应该将 box: laravel/homestead-arm 添加到你的 Homestead.yaml 文件中。 Apple Silicon 下需要使用 Parallels 提供虚拟机服务。

2年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!