WIN10 在开发环境搭建过程中无法启动 Homestead。
根据Laravel教程-Web开发实战入门(Laravel 5.5)进行第二章开发环境布置2.5开发环境搭建-Windows时,其他一切都正常,只是在执行到启动Homestead时发现无法启动VM。> cd ~/Homestead && vagrant up
执行后
报如下错误
$ cd ~/Homestead && vagrant up
Bringing machine 'homestead-7' up with 'virtualbox' provider...
==> homestead-7: You assigned a static IP ending in ".1" to this machine.
==> homestead-7: This is very often used by the router and can cause the
==> homestead-7: network to not work properly. If the network doesn't work
==> homestead-7: properly, try changing this IP.
==> homestead-7: Importing base box 'laravel/homestead'...
==> homestead-7: Matching MAC address for NAT networking...
==> homestead-7: You assigned a static IP ending in ".1" to this machine.
==> homestead-7: This is very often used by the router and can cause the
==> homestead-7: network to not work properly. If the network doesn't work
==> homestead-7: properly, try changing this IP.
==> homestead-7: Checking if box 'laravel/homestead' 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: 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...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "7df12598-fe73-4e17-ac22-26a67912dbf8", "--type", "headless"]
Stderr: VBoxManage.exe: error: The virtual machine 'homestead-7' has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in 'C:\Users\Administrator\VirtualBox VMs\homestead-7\Logs\VBoxHardening.log'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine
采用的是WIN10系统,试了很多方法依旧不能启动VM。请问如何解决?
推荐文章: