---
tags: Kubernetes, NFVI
---
# How to Install Minikube on Ubuntu 18.04
## Step 1: Update System and Install Required Packages
```javascript=
# sudo apt-get update -y
# sudo apt-get upgrade -y
# sudo apt-get install curl
# sudo apt-get install apt-transport-https
```
## Step 2: Install VirtualBox Hypervisor
```javascript=
# sudo apt install virtualbox virtualbox-ext-pack
```


## Step 3: Install Minikube
```javascript=
# wget https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
# sudo cp minikube-linux-amd64 /usr/local/bin/minikube
# sudo chmod 755 /usr/local/bin/minikube
```
## Step 4: Check the Minikube Version
```javascript=
# minikube version
```

## Step 5: Install Kubectl
```javascript=
# curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
```

```javascript=
# chmod +x ./kubectl
# sudo mv ./kubectl /usr/local/bin/kubectl
# kubectl version -o json
```
## Step 6: add the user to start minikube
create a user "I will create the same as my system minikube"

create a user password "I will create the same as my system minikube
password"

set the usermod with docker driver

start with the user we have created and check the ID

## Step 7: Start Minikube
```javascript=
# minikube start
```

check the nodes

```javascript=
# kubectl config view
```

```javascript=
# kubectl cluster-info
# minikube status
```

```javascript=
# minikube addons list
# minikube dashboard
# minikube dashboard --url
```
## Possible Error
> Exiting due to DRV_AS_ROOT: The "docker" driver should not be used with root privileges.
## How to import VDI
https://www.youtube.com/watch?v=VDh9Re_s6c8
## Solution of the Error to Create USER
https://www.ithands-on.com/2020/12/minikube-101-error-exiting-due-to.html