Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Minikube, Kubectl, and Virtualbox on Ubuntu
#Installing VirtualBox
echo "Installing VirtualBox........................"
sudo apt-get install virtualbox
#Installing kubectl https://kubernetes.io/docs/getting-started-guides/kubectl/
echo "Installing kubectl..........................."
wget https://storage.googleapis.com/kubernetes-release/release/v1.4.4/bin/linux/amd64/kubectl
chmod +x kubectl
sudo mv kubectl /usr/local/bin/kubectl
#Installing minikube https://github.com/kubernetes/minikube/releases
echo "Installing minikube.........................."
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.15.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
minikube start
kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080
kubectl expose deployment hello-minikube --type=NodePort
kubectl get pod
sleep 30
kubectl get pod
curl $(minikube service hello-minikube --url)
sleep 60
minikube stop
@bhati416

This comment has been minimized.

Copy link

commented Jul 27, 2017

Hi i am using incept-minikube.sh to install the minikube , getting below error , i am new to VM world could you please suggest way out .
Starting local Kubernetes cluster...
Downloading Minikube ISO
68.95 MB / 68.95 MB [==============================================] 100.00% 0s
E0727 12:02:03.131157 15010 start.go:96] Error starting host: Error creating host: Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory".

Retrying.
E0727 12:02:03.132892 15010 start.go:102] Error starting host: Error creating host: Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory"

Thanks in advance.

@Damianofds

This comment has been minimized.

Copy link

commented Aug 9, 2017

Hi bhati416,
Maybe I'm hitting a dead horse, anyway: you can explicitly chose the virtualization engine from your VM settings, for example if your hypervisor is vmware player, see attached screenshot.

capture_001_09082017_163721

@Fireworks643

This comment has been minimized.

Copy link

commented Mar 13, 2018

VT-x/ AMD-V should be enabled in BIOS of your physical workstation, on your bare metal, then your PC will be working with virtualization technologies like VMware/KVM/Vbox

@medarametlahimabindu

This comment has been minimized.

Copy link

commented Mar 17, 2018

iam getting error after minikube stop command

@PasinduTennage

This comment has been minimized.

Copy link

commented Jul 11, 2018

I'm getting this error after executing "minikube start"

There is a newer version of minikube available (v0.28.0). Download it here:
https://github.com/kubernetes/minikube/releases/tag/v0.28.0

To disable this notification, run the following:
minikube config set WantUpdateNotification false
Starting local Kubernetes cluster...
E0711 14:34:57.323489 14864 start.go:96] Error starting host: Error getting state for host: machine does not exist.

Retrying.
E0711 14:34:57.324131 14864 start.go:102] Error starting host: Error getting state for host: machine does not exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.