'Unable to start minikube and exiting due to PROVIDER_HYPERV_NOT_FOUND

We are getting the below error while running the command "minikube start --driver=hyperv" which was initially working properly but suddenly started giving an error.

C:\Windows\system32>minikube start --driver=hyperv

  • minikube v1.22.0 on Microsoft Windows 10 Enterprise 10.0.19043 Build 19043
  • Using the hyperv driver based on user configuration
  • Exiting due to PROVIDER_HYPERV_NOT_FOUND: The 'hyperv' provider was not found: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @(Get-Wmiobject Win32_ComputerSystem).HypervisorPresent returned "False\r\n"
  • Suggestion: Enable Hyper-V: Start PowerShell as Administrator, and run: 'Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All'
  • Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/hyperv/

We tried to disabled and enabled the "hyperv" from the Windows Features tab and then restarted the machine but it didn't work.

When we hit a command "systeminfo" we got the below, saying "hyperv" is enabled.

Hyper-V Requirements: VM Monitor Mode Extensions: Yes

                  Virtualization Enabled In Firmware: Yes

                  Second Level Address Translation: Yes

                  Data Execution Prevention Available: Yes

Now we have enabled the "hyperv", restarted the machine but still we are getting the error, could anyone please help us out in this?

Thanks in advance!!!



Solution 1:[1]

Reason: missing powershell.exe path

Resolution: Add C:\Windows\System32\WindowsPowerShell\v1.0 into Environmental Variables... > System variables > Path

Solution 2:[2]

Your minikube cluster is already started thats why it is giving this error. It was the case in mine. Try running minikube status to check the same

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 gundam97
Solution 2 Acil