Reputation: 1723
I'm trying to run minikube with hyperv without open an Administrator powershell. Is there any way? I'm doing this:
choco install minikube
minikube.exe start --vm-driver "hyperv"
If I try to launch minikube start from a normal powershell it gives me this message:
X hyperv does not appear to be installed
Upvotes: 2
Views: 4299
Reputation: 71
To launch minikube from non-admin powershell. You need to add a non-admin user to "Hyper-V Administrators" group.
Open PowerShell with administrator right. And run below command to add current user name to "Hyper-V Administrators" group. You need to sign off and sign in to take effect.
Add-LocalGroupMember -Group "Hyper-V Administrators" -Member [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
Upvotes: 4
Reputation: 21
Minikube works only with elevated rights on Windows https://github.com/kubernetes/minikube/issues/6585#issuecomment-585269831
Upvotes: 0
Reputation: 14092
This issue occurs when you didn't install Hyper-V
or it wasn't installed properly due to Windows updates or some environment issues. You can check if Hyper-V
works properly if you will execute systeminfo
. More info in Minikube docs. There are many ways to install Hyper-V
. Easiest one is to install via Turn Windows features on or off
, it's mentioned in this article as Solution 7
. If it wouldn't help you can try others.
After proper installation of Hyper-V
you need to install Docker for windows, Minikube
and Kubectl
. I've already created mini tutorial here. You can also check this tutorial about Minikube on Windows
.
As additional information, I am not using admin rights.
Upvotes: 0