-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hyperv: powershell Get-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-All -Online failed #6640
Comments
Launch your shell as an admin. Then try again. |
I did, I always use shell from admin. |
Got it. Can you provide more info? What's the output of |
@detroyejr sure, thanks for helping. |
Wouldn't know offhand why it can't find hyperv unless it's really just not installed. Can you double check that you have everything Enabled? What's the output of |
@detroyejr I did everything from the official tutorial. |
Yeah, really not sure how to help assuming you're running as admin and HyperV is setup the normal way. Just as a sanity check, make sure you're really running admin.
You could also try deleting the |
What version of minikube are you using? Latest version? Does the same problem exist in in 1.6.2? |
I have the same problem with the latest version 1.7.2 |
Yes, I used the latest version. I will try to reinstal prev version to check |
Adding --force to the command has solved the problem for me |
Can you include the output of:
docker/for-win#1631 hinted to me that -- maybe it's possible that it's related to the Containers feature being enabled? Maybe that's a red herring though. The hyperv driver mentioned comes from https://github.com/machine-drivers/machine -- so whatever fix is involved will likely have to happen there. |
I am having the same problem with v1.7.3. When I do a systemInfo I get two Hyper-V network cards: PS C:\WINDOWS\system32> systeminfo Host Name: DESKTOP-C1H04CG Could this be the problem??? |
I also notice if I run the failing command it works: PS C:\WINDOWS\system32> minikube start --vm-driver hyperv
! 'hyperv' driver reported an issue: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe Get-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-All -Online failed:
X hyperv does not appear to be installed FeatureName : Microsoft-Hyper-V-All |
This happened to me right after I installed the latest Windows update packages (KB4535996 & KB4537572 & KB4052623). Same error messages, same everything as OP on minikube v1.7.3. Before the update, everything worked fine. Current Windows build number is Microsoft Windows 10 Pro Build 18363. Using the --force flag solved the problem for me too. |
This should be fixed in the latest version of minikube, starting with 1.8. I'll go ahead and close this, feel free to reopen if it continues to be a problem. |
HiperV installed, works fine with Docker desktop, also installed GCloud with kubectl (works fine too).
I tried to start with virual-switch :
minikube start --vm-driver hyperv --hyperv-virtual-switch "minikube"
with flag --force
Result the same.
Can someone explain what I do wrong?
The text was updated successfully, but these errors were encountered: