windowskuberneteshyper-vminikubehypervisor

Unable to start minikube with Hyper-V on windows 10


When I run this command:

minikube start --vm-driver=hyperv

minikube cannot start and displays the following error:

minikube v1.7.2 on Microsoft Windows 10 Enterprise

Using the hyperv driver based on user configuration

! 'hyperv' driver reported an issue: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe Get-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-All -Online failed:

Suggestion: Start PowerShell as Administrator, and run: 'Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All'

X hyperv does not appear to be installed

so I followed the message displayed and I launched the command:

Get-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-All -Online

and it shows me the following result:

FeatureName : Microsoft-Hyper-V-All DisplayName : Hyper-V Description : Provides management services and tools for creating and running virtual machines and their resources virtuels et de leurs ressources. RestartRequired : Possible State : Enabled CustomProperties :

Also, I have verified that Hyper-v is installed correctly. I have minikube 1.7.2 installed. Any idea how to solve this issues ?

Thanks for your help.


Solution

  • finally, i was able to launch minikube with --force flag, there is an issue with minikube 1.7.2 described here #6579