Troubleshooting Minikube Installation on Windows(also for WSL/WSL2 users)

Getting VT-x/AMD-v disabled error while installing Minikube on your Windows machines? Here are some of the reasons why it is not working and the troubleshooting methodologies :

  • Your PC does not have Virtualization enabled. To solve this, all you need to do is to enable Virtualization in the BIOS menu. All you need to do is to restart your PC and press the BIOS menu key (F2 for Asus) with respect to your PC/Laptop vendor. Now go to Advanced menu in BIOS and enable the Virtualization. Press F10 and Enter to save it and reboot.
  • Even after enabling Virtualization, if you’re not able to fix this error, you might need to disable Hyper-V in your system. This especially happens nowadays on Windows 10 with WSL installed in it. Since WSL works on Hyper-V, it is generally difficult to run other virtualization software like Virtual Box, though now a days, Virtual Machine supports Hyper-V which means we can run WSL2 and Virtual Box simultaneously. So in order to set up minikube server on Virtual Box, you need to disable Hyper-V. For this, open command prompt (cmd) using administrator mode and type the following command:
bcdedit /set hypervisorlaunchtype off

Now restart your device to make changes take effect. Now you’ll be able to set up your minikube server using Virtual Box as a driver. But while Hyper-V is turned off, you won’t be able to use WSL2 on your system.

But if you’re using newer version of Virtual Box supporting Hyper-V, you only need to disable Hyper-V while installing/setting up minikube server. Once it is set up and running, you can again enable Hyper-V. Now both WSL2 and minikube server will run successfully. To enable Hyper-V, type the following command in command prompt in administrator mode:

bcdedit /set hypervisorlaunchtype auto

Now restart your PC and start working!!

--

--

--

Final Year Undergrad from Indian Institute of Information Technology Ranchi interested in learning the ins and outs of Technology

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Learning to code as a (previously) non-technical founder

TIP: Manage Cross-Program Schedule Changes with Stickies

The Main Indicators of a Cartoon TV Series Production

What is AWS S3?

Containers and Virtual Machines

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Akshansh Singh

Akshansh Singh

Final Year Undergrad from Indian Institute of Information Technology Ranchi interested in learning the ins and outs of Technology

More from Medium

Automation of domain expiration checking with prometheus-stack in Kubernetes

JSON Web Token Authentication on Kubernetes using Nginx Ingress Controllers

Enable SSL/TLS securing on a running application on Kubernetes

Understand Autoscaling Applications In Kubernetes Before Next Peak Hours