Running Kubernetes Locally via minikube

5/9/2018

I am working on openam deployment on Google cloud platform (GCP) and the OS is RHEL7. I am facing issue while running minikube start.

[root@test ~]# minikube start 

Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Downloading Minikube ISO
 150.53 MB / 150.53 MB [============================================] 100.00% 0s
E0509 06:20:12.950109   16264 start.go:159] Error starting host: Error creating host: Error executing step: Running precreate checks.
: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory.

 Retrying.
E0509 06:20:12.951500   16264 start.go:165] Error starting host:  Error creating host: Error executing step: Running precreate checks.
: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory

I already installed virtualbox on RHEL. I want to know how to enable VT-X on GCP?

Thanks Ashish

-- Ashish Srivastava
google-cloud-platform
kubernetes
kvm
minikube

1 Answer

5/9/2018

You can use --vm-driver=none to run your minikube in cloud. This flag will run your minukube in Docker. You should have installed Docker first.

Also you can create a custom image where VMX will be enabled. Just follow the official documentation instruction. Example from the documentation on how to create a custom image with enabled VMX:

gcloud compute images create nested-vm-image --source-disk disk1 --source-disk-zone us-central1-a  --licenses "https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx"

Then, just create a new VM with the custom image.

 gcloud compute instances create example-nested-vm --zone us-central1-b   --image nested-vm-image

After all, you can install the VirtualBox or KVM and start minikube.

-- Nick Rak
Source: StackOverflow