Skip to content

Instantly share code, notes, and snippets.

@mehdihasan
Last active June 17, 2023 12:04
Show Gist options
  • Save mehdihasan/22247029cca159480abda65089929b10 to your computer and use it in GitHub Desktop.
Save mehdihasan/22247029cca159480abda65089929b10 to your computer and use it in GitHub Desktop.
minishft installationin ubuntu

Install minishift in Ubuntu

OS: Ubuntu 19.10

Install libvirt and qemu-kvm on the system

sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system

Add current user to the libvirt(d) group

sudo usermod -a -G libvirt $USER

Update current session to apply the group change

newgrp libvirt

As root, install the KVM driver binary

curl -L https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.10.0/docker-machine-driver-kvm-ubuntu16.04 -o /usr/local/bin/docker-machine-driver-kvm

then make it executable

chmod +x /usr/local/bin/docker-machine-driver-kvm

Download the latest version of minishift cdk from this link

Copy the downloaded file in to /usr/local/bin folder

sudo cp ~/Downloads/cdk-3.12.0-1-minishift-linux-amd64 /usr/local/bin

make the file executable

cd /usr/local/bin
sudo chmod +x cdk-3.12.0-1-minishift-linux-amd64

Initialize the installation

cdk-3.12.0-1-minishift-linux-amd64 setup-cdk

After setup finishes, start minishift

in the starting process, it will going to ask the redhat userid and password. So keep those ready.

cdk-3.12.0-1-minishift-linux-amd64 start

After minishift started,(my machine got almost hanged because of RAM and processing power) you may want to switch it off

cdk-3.12.0-1-minishift-linux-amd64 stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment