按基础教程中安装配置 Homestead,出现无法控制虚拟环境的问题?

最近刚学习Homestead,很感谢summer大大的教学贴,步骤非常清晰,给我们初学者很大的福音,今天尝试在自己的电脑上(WIN10)安装开发环境,安装各软件的时候都非常顺利,但是进行到vagrant up的时候出现了问题(反复几次重新安装软件和导入配置但仍然是出现同样的问题),个人感觉是设置的原因,vagrant up的过程中出现报错,虽然能在VM中创建虚拟环境,但是无法使用vagrant ssh 以及后续的一些操作,在虚拟机中以vagrant/vagrant 登录后,可以使用compser创建laravel项目,但是本地CODE目录下没有相关项目和代码,以下是vagrant up的启动日志:

$ cd ~/Homestead && vagrant up
Bringing machine 'homestead-7' up with 'virtualbox' provider...
==> homestead-7: Importing base box 'laravel/homestead'...
==> homestead-7: Matching MAC address for NAT networking...
==> homestead-7: Checking if box 'laravel/homestead' is up to date...
==> homestead-7: There was a problem while downloading the metadata for your box
==> homestead-7: to check for updates. This is not an error, since it is usually due
==> homestead-7: to temporary network problems. This is just a warning. The problem
==> homestead-7: encountered was:
==> homestead-7:
==> homestead-7: Couldn't open file /homestead/metadata.json
==> homestead-7:
==> homestead-7: If you want to check for box updates, verify your network connection
==> homestead-7: is valid and try again.
==> 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: 5432 (guest) => 54320 (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
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.

If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.

在学习过程中使用的都是教学包里的软件,配置路径和相关参数也严格按照教程中设置,对于log中提到的

Couldn't open file /homestead/metadata.json
已经确认相关路径中存有该文件
file

《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 1

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