简体   繁体   中英

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.

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

try

minikube start --vm-driver=hyperv --force

Once minikube is installed, run the following command in powershell( as Administrator)

  1. minikube config set driver hyperv
  2. minikube delete
  3. minikube start --vm-driver=Hyper-V

Had to start the command prompt as Administrator and could start minikube with Hyperv.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM