Minikube安装在Ubuntu vm_VT-X / AMD-v中,使VM能够在另一台虚拟机中运行

我打算在Ubuntu虚拟机(在虚拟框中)安装minikube。 我已经为vm启用了VT-X / AMD-v。 但是我得到以下错误。

# minikube start Starting local Kubernetes cluster... E0217 15:00:35.395801 3869 start.go:107] Error starting host: Error creating host: Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory". Retrying. E0217 15:00:35.396019 3869 start.go:113] Error starting host: Error creating host: Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory" ================================================================================ 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]: 

我find了一个参考 ,据此,我们不能在虚拟化内部进行虚拟化。 这是真的吗? 我怎样才能解决这个问题?

我只是想补充一点, Virtual Box在嵌套虚拟化中不支持VT-X / AMD-v 。 在virtualbox.org上查看此故障单/功能请求 。

在这里讨论这个 话题还有更多的问题和答案。

可能的解决方案:

  1. 如前所述: 使用支持VT-X / AMD-v嵌入式虚拟化的其他管理程序 (如Xen,KVM或VMware)。
  2. 在主机操作系统上安装Minikube,而不是在虚拟机上。

检查VM是否正确启用(在VM内运行):

 egrep -i '^flags.*(svm|vmx)' /proc/cpuinfo 

在VM内核中:

 dmesg | egrep 'DMAR|IOMMU' 

VirtualBox只能用于32位嵌套客人,所以也检查(它不支持嵌套的客人,但与32位):

 uname -m 

我安装了VM ware,并在虚拟机中安装了Virtualbox。 并在外部虚拟机中启用VT-X / AMD-v。 它工作正常。