大佬们帮帮忙,windows 10 安装Homestead 出现问题,已经百度和谷歌几天了,就是没有找到答案
windows 10 安装Homestead 出现问题,已经百度和谷歌几天了,就是没有找到答案,
代码如下:
francis@FRANCIS105D MINGW64 /f/homestead (master)
$ 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: 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...
There was an error while executing VBoxManage
, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "0a9bdb87-7b87-403d-bf60-c696d9f50562", "--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\francis\VirtualBox VMs\homestead-7\Logs\VBoxHardening.log'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine
21 Comments
开启GUI模式在图形界面查看报错原因
开启BIOS 中开启虚拟化
卸载 VirtualBox
卸载 vagrant
删除残留的相关目录 .VirtualBox Homestead .ssh
用这些版本安装,
https://pan.baidu.com/s/1geZ7qfT 7fsq
安装VirtualBox,安装完成,设置好环境变量
安装vagrant,安装完成,设置好环境变量
将 Homestead 导入 Homestead Box
解压lt-homestead-3-0-0-2017082400.zip
解压目录中 lt-homestead-3-0-0-2017082400 运行以下命令
命令 vagrant box add metadata.json
安装好Git,使用 Git 下载定制版的 Homestead
命令 git clone https://git.coding.net/summerblue/homestead.git Homestead
SSH 秘钥登录配置
@学院君#1055 多谢 我再找找原因
@doalxi#1061 我按照你的方式再试一下,忘了说,我是在mac 上虚拟了win10,然后在win10环境中装homstead
@Francis#1074 为什么不直接在Mac中装 Homestead?
@学院君#1075 还不是很习惯mac上搭建环境
@Francis#1076 :joy:你这相当于绕了一个大圈子 熟悉了Mac就不会再用Win了
@学院君#1077 mac上没有像wampsever环境,所以就虚拟win10 然后搭建环境
@Francis#1078 :sweat_smile:这还是windows使用后遗症 自己搭个类似wampserver的环境也不费什么事 况且mac下还有valet这样的利器
慢慢来吧 都需要一个过程
@学院君#1080 好的,多谢老大
@Francis#1081 老大,如何开启 gui呢
@Francis#1082 Homestead.yaml中添加配置 gui: true
@学院君#1083 谢啦 老大
@Francis#1084 我都想放弃了,还是没解决