Skip to main content

Using Minikube with VirtualBox

·300 words·2 mins
Thorsten Lenzen
Author
Thorsten Lenzen
Coding, Devops and Homelab maniac…

Minikube with VirtualBox Installation Guide
#

Overview
#

This guide provides step-by-step instructions for installing and configuring Minikube with VirtualBox on Windows using winget package manager.

Prerequisites
#

  • Windows 10/11
  • Administrator access
  • Virtualization enabled in BIOS
  • winget package manager (pre-installed on Windows 11, available on Windows 10)

Installation Steps
#

1. Install VirtualBox
#

Download Virtual box from https://www.virtualbox.org/wiki/Downloads and install the package.

Beware: The Winget package does not seem to work!

2. Install kubectl
#

winget install Kubernetes.kubectl

3. Install Minikube
#

winget install Kubernetes.minikube

4. Restart your terminal
#

Close and reopen your terminal (or PowerShell) to ensure the PATH is updated.

5. Start Minikube with VirtualBox driver
#

minikube start --driver=virtualbox

Configuration
#

Set VirtualBox as Default Driver (Optional)
#

minikube config set driver virtualbox

Now you can just use minikube start without specifying the driver each time.

Verification
#

Verify Installation
#

minikube status
kubectl get nodes

Expected output for minikube status:

minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured

Common Commands
#

# Stop minikube
minikube stop

# Delete the cluster
minikube delete

# Access Kubernetes dashboard
minikube dashboard

# SSH into the minikube VM
minikube ssh

# Check minikube version
minikube version

# View minikube logs
minikube logs

Troubleshooting
#

Issue: Virtualization not enabled
#

Solution:

Ensure virtualization (VT-x/AMD-V) is enabled in your BIOS settings.

Issue: VirtualBox not working
#

Solution:

  • Check VirtualBox is working by opening VirtualBox GUI
  • Ensure no other hypervisor (like Hyper-V) is conflicting

Issue: Insufficient resources
#

Solution:

Try starting with more resources:

minikube start --driver=virtualbox --cpus=2 --memory=4096

Issue: Path not recognized after installation
#

Solution: Restart your terminal or computer to refresh environment variables.

Summary
#

That’s it! You should now have Minikube running on VirtualBox and be ready to start deploying Kubernetes applications locally.