在 Windows 服务器 2016 上使用 hyperv 驱动程序时 Minikube 启动错误 (Kubernetes)
Minikube Start Error (Kubernetes) When Using hyperv Driver on Windows server 2016
我正在尝试在 windows 服务器 2016 上安装 Kubernetes。
我尝试安装 minikube,但遇到了一些错误。
这是我遵循的教程:
https://www.assistanz.com/installing-minikube-on-windows-2016-server/
这是我得到的命令 + 错误:
PS C:\Windows\system32> minikube start –vm-driver=hyperv –hyperv-virtual-switch=Minikube
Starting local Kubernetes v1.10.0 cluster...
Starting VM... Downloading Minikube ISO
170.78 MB / 170.78 MB [============================================] 100.00% 0s
E1106 19:29:10.616564 11852 start.go:168] Error starting host: Error creating host: Error executing step: Running precreate checks.
: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path.
Retrying.
E1106 19:29:10.689675 11852 start.go:174] Error starting host: Error creating host: Error executing step: Running precreate checks.
: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path
================================================================================
An error has occurred. Would you like to opt in to sending anonymized crash
information to minikube to help prevent future errors?
To opt out of these messages, run the command:
minikube config set WantReportErrorPrompt false
================================================================================
Please enter your response [Y/n]:
有人知道怎么解决吗?
我用谷歌搜索了一下,但没有成功。
谢谢!
很可能,Hyper-V is not configured correctly on your Windows 2016 Server and minikube is resorting to using VirtualBox 您似乎没有安装在您的服务器上。
这是 Hyper-V or you can install Virtualbox 的另一个指南。
查看您提供的文档,我注意到屏幕截图与他们引用的略有不同。
我还在 kubernetes here 的另一篇文档中找到了这个命令,显示了与屏幕截图相同的命令。
我建议您尝试以下命令;
minikube start --vm-driver=hyperv --hyperv-virtual-switch=Minikube
OP确实粘贴了错误的命令,因为有-
而不是--
。我试图将这个参数传递给 minikube,但你得到的只是一个即时错误。所以问题一定出在别的地方。我记得有过类似的问题,在删除 .kube 和 .minikube 文件夹并再次尝试 运行 后问题得到解决。
仔细阅读本教程后,本教程将用于在 Windows Server 2016 虚拟机中安装 minikube,因此您必须拥有支持嵌套虚拟化的硬件:
Prerequisites The Hyper-V host and guest must both be Windows Server
2016/Windows 10 Anniversary Update or later. VM configuration version
8.0 or greater. An Intel processor with VT-x and EPT technology -- nesting is currently Intel-only. There are some differences with
virtual networking for second-level virtual machines. See "Nested
Virtual Machine Networking".
所以主要问题是,在您的场景中是这样吗?您是否尝试在具有嵌套虚拟化功能的 Windows 服务器 Hyper-V 虚拟机上执行您的步骤?
如果你确认我有技术上的可能性在那种情况下检查它。
否则我建议在 Windows 中使用 运行ning minikube 的 "traditional way",例如根据这个 tutorial.
我一直无法获得与 minikube start
一起使用的配置参数。
我能够使用 PowerShell 中的 minikube config
commands 解决这个错误(也应该在命令提示符下工作):
minikube config set vm-driver hyperv
minikube config set hyperv-virtual-switch ExternalSwitch
minikube config view
minikube delete
minikube start
有关命令 运行 的更多信息:minikube config -h
我正在尝试在 windows 服务器 2016 上安装 Kubernetes。 我尝试安装 minikube,但遇到了一些错误。
这是我遵循的教程:
https://www.assistanz.com/installing-minikube-on-windows-2016-server/
这是我得到的命令 + 错误:
PS C:\Windows\system32> minikube start –vm-driver=hyperv –hyperv-virtual-switch=Minikube
Starting local Kubernetes v1.10.0 cluster...
Starting VM... Downloading Minikube ISO
170.78 MB / 170.78 MB [============================================] 100.00% 0s
E1106 19:29:10.616564 11852 start.go:168] Error starting host: Error creating host: Error executing step: Running precreate checks.
: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path.
Retrying.
E1106 19:29:10.689675 11852 start.go:174] Error starting host: Error creating host: Error executing step: Running precreate checks.
: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path
================================================================================
An error has occurred. Would you like to opt in to sending anonymized crash
information to minikube to help prevent future errors?
To opt out of these messages, run the command:
minikube config set WantReportErrorPrompt false
================================================================================
Please enter your response [Y/n]:
有人知道怎么解决吗? 我用谷歌搜索了一下,但没有成功。
谢谢!
很可能,Hyper-V is not configured correctly on your Windows 2016 Server and minikube is resorting to using VirtualBox 您似乎没有安装在您的服务器上。
这是 Hyper-V or you can install Virtualbox 的另一个指南。
查看您提供的文档,我注意到屏幕截图与他们引用的略有不同。
我还在 kubernetes here 的另一篇文档中找到了这个命令,显示了与屏幕截图相同的命令。
我建议您尝试以下命令;
minikube start --vm-driver=hyperv --hyperv-virtual-switch=Minikube
OP确实粘贴了错误的命令,因为有-
而不是--
。我试图将这个参数传递给 minikube,但你得到的只是一个即时错误。所以问题一定出在别的地方。我记得有过类似的问题,在删除 .kube 和 .minikube 文件夹并再次尝试 运行 后问题得到解决。
仔细阅读本教程后,本教程将用于在 Windows Server 2016 虚拟机中安装 minikube,因此您必须拥有支持嵌套虚拟化的硬件:
Prerequisites The Hyper-V host and guest must both be Windows Server 2016/Windows 10 Anniversary Update or later. VM configuration version 8.0 or greater. An Intel processor with VT-x and EPT technology -- nesting is currently Intel-only. There are some differences with virtual networking for second-level virtual machines. See "Nested Virtual Machine Networking".
所以主要问题是,在您的场景中是这样吗?您是否尝试在具有嵌套虚拟化功能的 Windows 服务器 Hyper-V 虚拟机上执行您的步骤?
如果你确认我有技术上的可能性在那种情况下检查它。 否则我建议在 Windows 中使用 运行ning minikube 的 "traditional way",例如根据这个 tutorial.
我一直无法获得与 minikube start
一起使用的配置参数。
我能够使用 PowerShell 中的 minikube config
commands 解决这个错误(也应该在命令提示符下工作):
minikube config set vm-driver hyperv
minikube config set hyperv-virtual-switch ExternalSwitch
minikube config view
minikube delete
minikube start
有关命令 运行 的更多信息:minikube config -h