
Installing MiniKube on Windows 10 using Hyper-V
In this blog, we will show you the steps to installing Minikube on Windows 10 using Hyper-V service.
REQUIREMENTS
- Windows 10 Enterprise VM (or) Desktop (or) Laptop
- VT-X Enabled in BIOS
- Hyper-V Service
ENVIRONMENT OVERVIEW
- We are using the Windows 10 Enterprise VM.

- We have hosted this VM on Windows 2016 environment with Nested Virtualization Enabled.

- Nested Virtualization is a feature which is available on Windows 2016 server editions.
- Please check this URL https://blog.assistanz.com/cloud-computing/setting-up-nested-virtualization-in-windows-2016/ for more information.
INSTALL HYPER-V
- Login into windows 10 VM through the Remote desktop.

- Right click on the start menu and select Run command.

- Type appwiz.cpl and press Enter. It will open the programs and features window.

- Click on Turn Windows Features on or off option.

- Select the Hyper-V service from the list and click on Ok button.

- It will take few minutes to complete the installation.

- Select Restart now to apply the changes.

DOWNLOAD KUBECTL
- Open the web browser and access the URL https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/windows/amd64/kubectl.exe and download the file to your desktop.


- Copy the kubectl.exe to the %systemroot\system32 folder.

- You can find latest version of kubectl from this URL https://kubernetes.io/docs/tasks/tools/install-kubectl/

- By default, Environment variable was set to the system32 folder. No changes required.

DOWNLOAD MINIKUBE
- Open the web browser and access the URL https://github.com/kubernetes/minikube/releases

- Scroll down and download the latest version of minikube for windows 64-bit version.

- Once the download completed, rename the file to minikube.exe.


- Copy the minikube.exe to %systemroot%\system32 folder.

CREATING VIRTUAL SWITCH
- Click the start menu and select Hyper-V snap-in.

- Click on the Virtual Switch Manager option.

- Select the virtual switch type as Internal.

- Provide a name for the virtual switch and select the Apply button.

- After few seconds, the new switch will be available in the list.

ENABLE INTERNET CONNECTION SHARING
- From the desktop, right click on the Network icon and select Open Network and Sharing Center option.

- Click on the Physical Ethernet which has the internet connection.

- Click on the Properties option.

- Switch to Sharing Tab and select the Internet sharing option. Select OK to apply the changes.

INSTALLING MINIKUBE
- Open Powershell (or) command prompt window and verify the minikube version.

- Type the below command to start the minikube with Hyper-V Driver.
minikube start --vm-driver=hyperv --hyperv-virtual-switch=Minikube

- It will start downloading the minikube ISO.

- Once the ISO download completes, New Minikube VM will be created in Hyper-V

- It will start downloading the localkube binary.

- After several minutes, Minikube was installed successfully.

VERIFICATION
- Type the below command to list the nodes.
kubectl get nodes

- You can also verify the minikube cluster status using the command.
minikube status

- You can also access the minikube through GUI.
minikube dashboard

- Click on the Nodes option to verify the nodes information.

VIDEO
Thanks for reading this blog. We hope it was useful for you to learn about installing minikube on windows 10 machine.

Loges