一、Vargant是什么?
这里我就不赘述了,附上知乎大佬的详细解答:
超详细的 Vagrant 上手指南:
https://zhuanlan.zhihu.com/p/259833884
题主所使用的环境是:Window10专业版+ Vagrant 2.2.5 + VirtualBox 6.1
二、问题描述
1.在我成功安装好Vagrant和VirtualBox,下载好镜像文件在Vagrant up的时候发现需要开启Hyper-V
在Windos10上开启Hyper-V:
https://docs.microsoft.com/zh-cn/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
装好只后成功且可以Vagrant ssh 但是VirtualBox却不显示我安装的虚拟机为此我重装Vagrant和VirtualBox很多次没有完全解决。
查阅读资料后发现Hyper-V和VirtualBox都是Vagrant的供应商看来是我选择错误导致的
之后我卸载了Hyper-V,这时Vagrant up 和上次一样报错了提示要我重新安装Hyper-V;
PS E:\Program Files (x86)\.vagrant.d> vagrant up
Bringing machine 'default' up with 'hyperv' provider...
==> default: Verifying Hyper-V is enabled...
The Hyper-V cmdlets for PowerShell are not available! Vagrant
requires these to control Hyper-V. Pleas