<p>I am trying to create a Kubernetes cluster on Windows with the help of Minikube and Hyperv. I tried below things:<br>
1) I have enabled HyperV after following this <a href="https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v" rel="nofollow noreferrer">blog</a> from Microsoft.I confirmed it using <code>systeminfo</code> command and it shows that <code>hypervisor is detected</code>.</p>

<p>2) I ran <code>minikube start --vm-driver=hyperv</code> in admin mode but facing below error:  </p>

<pre><code>* Suggestion: Start PowerShell as Administrator, and run: 'Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All'
* Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/hyperv/

X hyperv does not appear to be installed
</code></pre>

<p>3) I also tried creating virtual switch for hyperv and using this command <code>minikube start --vm-driver=hyperv --hyperv-virtual-switch="hypervswitch"</code>but no luck. I also tried <code>minikube start --alsologtostderr -v=7</code> and I can see from the below logs that hyperv is not installed.  </p>

<pre><code>status for hyperv: {Installed:false Healthy:false Error:C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe Get-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-All -Online failed:
</code></pre>

<p><strong>Note</strong>: I am running each and every command in admin mode. I am not sure what is the problem. </p>

<p>I referred the official github issues blog for my issue but didn't help. Can anyone help me over here? I am stuck since days..</p>

RushHour
<p>I had the same problem, adding <code>--force</code> worked for me:</p>

<pre><code>minikube start --vm-driver=hyperv --force
</code></pre>
