在搭建环境时导入 Homestead 虚拟机盒子时的异常,及启动 Homestead 异常情况

有这么两个情况,请教各位,不知道是哪里的问题。

一、按照《 Laravel 开发环境部署》书中 -> 开发环境搭建 - Windows 出现和教程中不一致情形

严格按照书中步骤执行到这一节中如下位置,
在解压目录中 lc-homestead-8.2.1-2019112300 运行以下命令导入 Box:

> vagrant box add metadata.json

执行后如下:

PS C:\lc-homestead-8.2.1-2019112300> vagrant box list
There are no installed boxes! Use `vagrant box add` to add some.
PS C:\lc-homestead-8.2.1-2019112300> vagrant box add metadata.json
==> box: Loading metadata for box 'metadata.json'
    box: URL: file://C:/lc-homestead-8.2.1-2019112300/metadata.json
==> box: Adding box 'lc/homestead' (v8.2.1) for provider: virtualbox
    box: Downloading: virtualbox.box
    box:
==> box: Successfully added box 'lc/homestead' (v8.2.1) for 'virtualbox'!
PS C:\lc-homestead-8.2.1-2019112300> vagrant box list
lc/homestead (virtualbox, 8.2.1)
PS C:\lc-homestead-8.2.1-2019112300>

教程中结果:

我执行的结果:

这里不同,不知道为什么

二、按教程,执行到启动 Homestead 时,卡在 homestead-7: SSH auth method: private key 不动的异常情形

开始启动 Homestead 后,命令行窗口如下:

PS C:\Users\Administrator\Homestead> vagrant up
Bringing machine 'homestead-7' up with 'virtualbox' provider...
==> homestead-7: Importing base box 'lc/homestead'...
==> homestead-7: Matching MAC address for NAT networking...
==> homestead-7: Checking if box 'lc/homestead' version '8.2.1' is up to date...
==> homestead-7: Setting the name of the VM: homestead-7
==> homestead-7: Clearing any previously set network interfaces...
==> homestead-7: Preparing network interfaces based on configuration...
    homestead-7: Adapter 1: nat
    homestead-7: Adapter 2: hostonly
==> homestead-7: Forwarding ports...
    homestead-7: 80 (guest) => 8000 (host) (adapter 1)
    homestead-7: 443 (guest) => 44300 (host) (adapter 1)
    homestead-7: 3306 (guest) => 33060 (host) (adapter 1)
    homestead-7: 4040 (guest) => 4040 (host) (adapter 1)
    homestead-7: 5432 (guest) => 54320 (host) (adapter 1)
    homestead-7: 8025 (guest) => 8025 (host) (adapter 1)
    homestead-7: 27017 (guest) => 27017 (host) (adapter 1)
    homestead-7: 22 (guest) => 2222 (host) (adapter 1)
==> homestead-7: Running 'pre-boot' VM customizations...
==> homestead-7: Booting VM...
==> homestead-7: Waiting for machine to boot. This may take a few minutes...
    homestead-7: SSH address: 127.0.0.1:2222
    homestead-7: SSH username: vagrant
    homestead-7: SSH auth method: private key

一直就这样卡着,
检查 .ssh 文件夹中如下:

Homestead.yaml 中文件内容如下:

不知道哪里出的问题,
查看教程下方的 FAQ ,

按上图中解决方案,来来回回折腾几次,软件也重新安装几次,问题还是依旧,不知道是什么原因,

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

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