Install MiniShift on Linux

Length: 00:07:45

Lesson Summary:

MiniShift can be run on RPM-based or .deb systems so long as the Docker Machine KVM driver, named docker-machine-driver-kvm is installed.

RPM Linux (RHEL, CentOS, Fedora, etc)

Install libvirt & qemu-kvm

$ sudo dnf install libvirt qemu-kvm
  • If running as a non-root user, add $user to the libvirt (or libvirtd on Ubuntu versions older than 18.10) group
$ sudo usermod -aG libvirt <username>
  • Update your current session to apply changes:
$ newgrp libvirt
  • As root, install the Docker KVM driver under /usr/local/bin
# curl -L https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.10.0/docker-machine-driver-kvm-centos7 \
-o /usr/local/bin/docker-machine-driver-kvm
  • Verify that docker-machine-driver-kvm is executable:
# chmod +x /usr/local/bin/docker-machine-driver-kvm

.Deb Linux (Ubuntu, Debian, etc.)

  • install libvirt & qemu-kvm (note: package may be named libvirt-bin on Ubuntu versions older than 18.10)
$ sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system
  • If running as a non-root user, add $user to the libvirt (or libvirtd on Ubuntu versions older than 18.10) group
$ sudo usermod -a -G libvirt <username>
  • Update your current session to apply changes:
$ newgrp libvirt(d)
  • As root, install the Docker KVM driver under /usr/local/bin/

Ubuntu 16.04 & higher:

# 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

Ubuntu 14.04:

# curl -L https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.10.0/docker-machine-driver-kvm-ubuntu14.04 \
-o /usr/local/bin/docker-machine-driver-kvm
  • Make sure that docker-machine-driver-kvm is executable
# chmod +x /usr/local/bin/docker-machine-driver-kvm

On both:

  • Enable & start the libvirtd service
$ sudo systemctl enable --now libvirtd


This lesson is only available to Linux Academy members.

Sign Up To View This Lesson
Or Log In

Looking For Team Training?

Learn More