Stuart winchester in Openshift 5 minutes

Using Minishift

A quick article on how to get minishift up and running locally. Firstly some helpful links:

Please note this is all done on Fedora 25.

Docker Machine Driver Pre-requisites

sudo curl -L -o /usr/local/bin/docker-machine-driver-kvm
sudo chmod +x /usr/local/bin/docker-machine-driver-kvm
sudo dnf install libvirt qemu-kvm
sudo usermod -a -G libvirt <username>
newgrp libvirt

Download the CDK3 Beta from here

MiniShift install for official version:

#Download from
mv /home/<username>/Downloads/cdk-3.0.beta-minishift-linux-amd64 /home/<username>/cdk/minishift

Minishift for Origin

tar zxvf minishift-1.0.0-rc.1-linux-amd64.tgz -C ~/cdk

Bash Profile… ~/.bash_profile



My vagrant boxes will no longer work… Why…?

[swinches@localhost vagrant-nexus]$ vagrant up
Bringing machine 'nexus' up with 'virtualbox' provider...
==> nexus: Clearing any previously set forwarded ports...
==> nexus: Clearing any previously set network interfaces...
==> nexus: Preparing network interfaces based on configuration...
    nexus: Adapter 1: nat
    nexus: Adapter 2: hostonly
==> nexus: Forwarding ports...
    nexus: 22 (guest) => 2222 (host) (adapter 1)
==> nexus: Running 'pre-boot' VM customizations...
==> nexus: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "a44c643f-1a73-40bc-859b-c3e4f5c5e003", "--type", "headless"]

Stderr: VBoxManage: error: VT-x is being used by another hypervisor (VERR_VMX_IN_VMX_ROOT_MODE).
VBoxManage: error: VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

It’s because if you’re running minishift, because it is using kvm, you can’t run virtualbox at the same time… So, if you want your vagrant boxes running, then you’ll need to vagrant-mutate them to libvirt and use that.

I’ve got a nexus in libvirt format here.