Installing MiniKube On Windows 10 Using Hyper-V

In this following blog, we will show you the steps to install 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 a Windows 2016 environment with Nested Virtualization Enabled.
Installing MiniKube on Windows 10 using Hyper-V
  • Nested Virtualization is a feature that is available on Windows 2016 server editions.
  • Login into Windows 10 VM through the Remote desktop.
Installing MiniKube on Windows 10 using Hyper-V
  • 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 the OK button.
Installing MiniKube on Windows 10 using Hyper-V
  • It will take a 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

  • Firstly download the file on your desktop.
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, the Environment variable was set to the system32 folder. No changes are 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 is 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 a 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 the Open Network and Sharing Center options.
Installing MiniKube on Windows 10 using Hyper-V
  • Click on the Physical Ethernet which has an 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 the 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 the 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, a 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 node’s information.
Installing MiniKube on Windows 10 using Hyper-V

Video Tutorial

>”>View Post>>

>”>View Post>>