---
# System prepended metadata

title: How to Install Minikube on Ubuntu 18.04
tags: [' NFVI', Kubernetes]

---

---
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
```
![](https://i.imgur.com/z0VJBfZ.png)
![](https://i.imgur.com/VkciXRV.png)

## 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
```
![](https://i.imgur.com/X9dFTB0.png)

## 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
```
![](https://i.imgur.com/Ly7jl69.png)

```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"

![](https://i.imgur.com/Xh3kCyB.png)

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

![](https://i.imgur.com/sLtJh8u.png)

set the usermod with docker driver

![](https://i.imgur.com/hHjERa6.png)

start with the user we have created and check the ID

![](https://i.imgur.com/xQqlba2.png)


## Step 7: Start Minikube
```javascript=
# minikube start
```
![](https://i.imgur.com/vJvW00R.png)

check the nodes

![](https://i.imgur.com/ECb3UUw.png)


```javascript=
# kubectl config view
```
![](https://i.imgur.com/To09LHD.png)



```javascript=
# kubectl cluster-info
# minikube status
```
![](https://i.imgur.com/EPGE6o6.png)


```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