×
Blog Cloud Computing Containers

Installing MiniKube on Windows 10 using Hyper-V

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.

Installing MiniKube on Windows 10 using Hyper-V

 

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

Installing MiniKube on Windows 10 using Hyper-V

 

  • Nested Virtualization is a feature which is available on Windows 2016 server editions.

 

INSTALL HYPER-V

  • Login into windows 10 VM through the Remote desktop.

Installing MiniKube on Windows 10 using Hyper-V

 

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

Installing MiniKube on Windows 10 using Hyper-V

 

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

Installing MiniKube on Windows 10 using Hyper-V

 

  • Click on Turn Windows Features on or off option.

Installing MiniKube on Windows 10 using Hyper-V

 

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

Installing MiniKube on Windows 10 using Hyper-V

 

  • It will take few minutes to complete the installation.

Installing MiniKube on Windows 10 using Hyper-V

 

  • Select Restart now to apply the changes.

Installing MiniKube on Windows 10 using Hyper-V

 

DOWNLOAD KUBECTL

Installing MiniKube on Windows 10 using Hyper-V

 

Installing MiniKube on Windows 10 using Hyper-V

 

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

Installing MiniKube on Windows 10 using Hyper-V

 

Installing MiniKube on Windows 10 using Hyper-V

 

 

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

Installing MiniKube on Windows 10 using Hyper-V

 

DOWNLOAD MINIKUBE

Installing MiniKube on Windows 10 using Hyper-V

 

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

Installing MiniKube on Windows 10 using Hyper-V

 

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

Installing MiniKube on Windows 10 using Hyper-V

 

Installing MiniKube on Windows 10 using Hyper-V

 

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

Installing MiniKube on Windows 10 using Hyper-V

 

CREATING VIRTUAL SWITCH

  • Click the start menu and select Hyper-V snap-in.

Installing MiniKube on Windows 10 using Hyper-V

 

  • Click on the Virtual Switch Manager option.

Installing MiniKube on Windows 10 using Hyper-V

 

  • Select the virtual switch type as Internal.

Installing MiniKube on Windows 10 using Hyper-V

 

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

Installing MiniKube on Windows 10 using Hyper-V

 

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

Installing MiniKube on Windows 10 using Hyper-V

 

ENABLE INTERNET CONNECTION SHARING

  • From the desktop, right click on the Network icon and select Open Network and Sharing Center option.

Installing MiniKube on Windows 10 using Hyper-V

 

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

Installing MiniKube on Windows 10 using Hyper-V

 

  • Click on the Properties option.

Installing MiniKube on Windows 10 using Hyper-V

 

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

Installing MiniKube on Windows 10 using Hyper-V

 

INSTALLING MINIKUBE

  • Open Powershell (or) command prompt window and verify the minikube version.

Installing MiniKube on Windows 10 using Hyper-V

 

  • Type the below command to start the minikube with Hyper-V Driver.

minikube start --vm-driver=hyperv --hyperv-virtual-switch=Minikube

Installing MiniKube on Windows 10 using Hyper-V

 

  • It will start downloading the minikube ISO.

Installing MiniKube on Windows 10 using Hyper-V

 

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

Installing MiniKube on Windows 10 using Hyper-V

 

  • It will start downloading the localkube binary.

Installing MiniKube on Windows 10 using Hyper-V

 

  • After several minutes, Minikube was installed successfully.

Installing MiniKube on Windows 10 using Hyper-V

 

VERIFICATION

  • Type the below command to list the nodes.

kubectl get nodes

Installing MiniKube on Windows 10 using Hyper-V

 

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

minikube status

Installing MiniKube on Windows 10 using Hyper-V

 

  • You can also access the minikube through GUI.

minikube dashboard

Installing MiniKube on Windows 10 using Hyper-V

 

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

Installing MiniKube on Windows 10 using Hyper-V

 

VIDEO

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

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.