Minikube error: VT-X/AMD-v is enabled but still its showing “This computer doesn’t have VT-X/AMD-v enable”

Problem


* [knative] minikube v1.28.0 on Microsoft Windows 10 Enterprise 10.0.19044 Build 19044
* Automatically selected the hyperv driver. Other choices: virtualbox, ssh
* Starting control plane node knative in cluster knative
* Creating hyperv VM (CPUs=3, Memory=3078MB, Disk=20000MB) ...
! StartHost failed, but will try again: creating host: create: precreate: Hyper-V PowerShell Module is not available
* Creating hyperv VM (CPUs=3, Memory=3078MB, Disk=20000MB) ...
* Failed to start hyperv VM. Running "minikube delete -p knative" may fix it: creating host: create: precreate: Hyper-V PowerShell Module is not available
! Startup with hyperv driver failed, trying with alternate driver virtualbox: Failed to start host: creating host: create: precreate: Hyper-V PowerShell Module is not available
! Failed to delete cluster knative, proceeding with retry anyway.
* Starting control plane node knative in cluster knative
* Creating virtualbox VM (CPUs=3, Memory=3078MB, Disk=20000MB) ...
! StartHost failed, but will try again: creating host: create: precreate: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory
* Creating virtualbox VM (CPUs=3, Memory=3078MB, Disk=20000MB) ...
* Failed to start virtualbox VM. Running "minikube delete -p knative" may fix it: creating host: create: precreate: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory

X Exiting due to PR_HYPERV_MODULE_NOT_INSTALLED: Failed to start host: creating host: create: precreate: Hyper-V PowerShell Module is not available
* Suggestion: Run: 'Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Tools-All -All'
* Documentation: https://www.altaro.com/hyper-v/install-hyper-v-powershell-module/
* Related issue: https://github.com/kubernetes/minikube/issues/9040

Error: creating cluster: existing cluster: new cluster: minikube create: piping output: exit status 65
Usage:
  kn-quickstart minikube [flags]

Solution

If you have already enabled the feature in the BIOS, make sure you did not enable the Windows Hyper-V feature as well. Otherwise VirtualBox will not run.

How to disable Hyper-V in command line?

In an elevated Command Prompt write this :

To disable:

$ bcdedit /set hypervisorlaunchtype off

To enable:

$ bcdedit /set hypervisorlaunchtype auto 
(From comments - restart to take effect)

Powershell command

Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x