06 vagrant 快速创建Linux
bug1 运行vagrant up 时安装过程中出现bug
No usable default provider could be found for your system.
解决方法:参考下面的链接
原因是:下载的virtualbox是6.1版本的,需要在vagrant里面添加对6.1的支持.
bug2 解决Bug1后重新vagrant up出现的bug
这个问题我重新再运行了一次up命令,又好了,你们可以试试,也可以参考一下下面的方法
https://blog.csdn.net/qq_21127151/article/details/90549080
bug3 BIOS中没有开启VMX
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "f65bb22b-f033-4e73-9a62-26bd8db5c1ee", "--type", "headless"]
Stderr: VBoxManage.exe: error: Call to NEMR0InitVMPart2 failed: VERR_NEM_INIT_FAILED (VERR_NEM_VM_CREATE_FAILED)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole
原因::BIOS中没有开启VMX,所以我重启电脑,进入BIOS中,打开了VMX,重启后,再次vagrant up
参考链接:
https://blog.csdn.net/weixin_43876778/article/details/112966453