To start Minikube with HyperV, follow these steps:
- Enable Hyper-V on your machine:
Open a Command Prompt as Administrator.
Execute the following command: bcdedit /set hypervisorlaunchtype auto.
Restart your computer for the changes to take effect.
- Install Minikube:
Go to the Minikube releases page on GitHub: https://github.com/kubernetes/minikube/releases
Download the latest version of Minikube for Windows with the file name minikube-windows-amd64.exe.
Rename the downloaded file to minikube.exe.
Move the minikube.exe file to a directory that is in your system's PATH.
- Open a PowerShell terminal as Administrator.
- Start Minikube using the Hyper-V driver:
Execute the command: minikube start --driver=hyperv.
Minikube will now start with the Hyper-V driver. It will create a virtual machine using Hyper-V, which will deploy a Kubernetes cluster locally on your machine.
Note: Minikube requires administrative rights to be able to create the virtual machine.