Minikube: Do not auto-select Hyper-V driver if session has no privilege

Created on 6 Oct 2020  Â·  4Comments  Â·  Source: kubernetes/minikube

We need to copy the logic from this check into the hyper-v driver health check, so that Hyper-V isn't accidentally selected when the user does not actually have the privilege to use it:

X Exiting due to PR_HYPERV_AS_ADMIN: Failed to start host: creating host: create: precreate: Hyper-v commands have to be run as an Administrator
* Suggestion: Right-click the PowerShell icon and select Run as Administrator to open PowerShell in elevated mode.

I suggest an error message like: "Hyper-V requires elevated privileges: Right-click the PowerShell icon and select Run as Administrator to use minikube with the Hyper-V driver`

kinbug prioritimportant-soon uembedded

Most helpful comment

Picking this up.

/assign

All 4 comments

/cc @medyagh @sharifelgamal

Picking this up.

/assign

@blueelvis are you still working on this ? we will need to implement this feature please let me know if you don't have time for it so I can re-assign

Hey medya,

Yes, I will have a PR out for this till Friday this week.

Thanks,
Pranav

On Tue, Oct 27, 2020 at 11:06 PM Medya Ghazizadeh notifications@github.com
wrote:

@blueelvis https://github.com/blueelvis are you still working on this ?
we will need to implement this feature please let me know if you don't have
time for it so I can re-assign

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes/minikube/issues/9396#issuecomment-717407961,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABVJQI6ZZO645NFYHIXVQ7TSM4ALBANCNFSM4SFIGFKA
.

Was this page helpful?
0 / 5 - 0 ratings