This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ minishift start | |
-- Starting profile 'minishift' | |
-- Check if deprecated options are used ... OK | |
-- Checking if https://mirror.openshift.com is reachable ... OK | |
-- Checking if requested OpenShift version 'v3.9.31' is valid ... OK | |
-- Checking if requested OpenShift version 'v3.9.31' is supported ... OK | |
-- Checking if requested hypervisor 'kvm' is supported on this platform ... OK | |
-- Checking if KVM driver is installed ... | |
Driver is available at /usr/local/bin/docker-machine-driver-kvm ... | |
Checking driver binary is executable ... OK | |
-- Checking if Libvirt is installed ... OK | |
-- Checking if Libvirt default network is present ... OK | |
-- Checking if Libvirt default network is active ... OK | |
-- Checking the ISO URL ... OK | |
-- Checking if provided oc flags are supported ... OK | |
-- Starting local OpenShift cluster using 'kvm' hypervisor ... | |
-- Minishift VM will be configured with ... | |
Memory: 4 GB | |
vCPUs : 2 | |
Disk size: 20 GB | |
-- Starting Minishift VM ................... OK | |
-- Registering machine using subscription-manager | |
Registration in progress ........ OK [16s] | |
-- Checking for IP address ... OK | |
-- Checking for nameservers ... OK | |
-- Checking if external host is reachable from the Minishift VM ... | |
Pinging 8.8.8.8 ... OK | |
-- Checking HTTP connectivity from the VM ... | |
Retrieving http://minishift.io/index.html ... OK | |
-- Checking if persistent storage volume is mounted ... OK | |
-- Checking available disk space ... 1% used OK | |
Importing 'registry.access.redhat.com/openshift3/ose:v3.9.31' CACHE MISS | |
Importing 'registry.access.redhat.com/openshift3/ose-docker-registry:v3.9.31' CACHE MISS | |
Importing 'registry.access.redhat.com/openshift3/ose-haproxy-router:v3.9.31' CACHE MISS | |
-- OpenShift cluster will be configured with ... | |
Version: v3.9.31 | |
-- Copying oc binary from the OpenShift container image to VM ................ OK | |
-- Starting OpenShift cluster .................. | |
Using nsenter mounter for OpenShift volumes | |
Using public hostname IP 192.168.42.109 as the host IP | |
Using 192.168.42.109 as the server IP | |
Starting OpenShift using registry.access.redhat.com/openshift3/ose:v3.9.31 ... | |
OpenShift server started. | |
The server is accessible via web console at: | |
https://192.168.42.109:8443 | |
You are logged in as: | |
User: developer | |
Password: <any value> | |
To login as administrator: | |
oc login -u system:admin | |
-- Applying addon 'anyuid':. | |
Add-on 'anyuid' changed the default security context constraints to allow pods to run as any user. | |
Per default OpenShift runs containers using an arbitrarily assigned user ID. | |
Refer to https://docs.openshift.org/latest/architecture/additional_concepts/authorization.html#security-context-constraints and | |
https://docs.openshift.org/latest/creating_images/guidelines.html#openshift-origin-specific-guidelines for more information. | |
-- Applying addon 'xpaas':......................................................................................................................... | |
XPaaS OpenShift imagestream and templates installed | |
See https://github.com/openshift/openshift-ansible/tree/release-3.9/roles/openshift_examples/files/examples/v3.9 | |
-- Applying addon 'admin-user':.. | |
Error determining Docker settings for image import: dial tcp: missing address |
You get a failure when trying to connect to Docker on the VM. The problem is that, if you strictly follow the instructions, your user is not a member of the 'libvirt' group. This is easy to rectify, though. All you need to do is:
1) Remove the existing minishift VM:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ minishift delete | |
You are deleting the Minishift VM: 'minishift'. Do you want to continue [y/N]?: y | |
Deleting the Minishift VM... | |
Minishift VM deleted. | |
$ rm -rf ~/.minishift |
2) Add yourself to the requisite group:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo usermod -a -G libvirt `whoami` | |
$ newgrp libvirt | |
$ groups | |
libvirt wheel ajacocks |
3) And relaunch minishift:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ minishift setup-cdk | |
Setting up CDK 3 on host using '/home/ajacocks/.minishift' as Minishift's home directory | |
Copying minishift-rhel7.iso to '/home/ajacocks/.minishift/cache/iso/minishift-rhel7.iso' | |
Copying oc to '/home/ajacocks/.minishift/cache/oc/v3.9.31/linux/oc' | |
Creating configuration file '/home/ajacocks/.minishift/config/config.json' | |
Creating marker file '/home/ajacocks/.minishift/cdk' | |
Default add-ons anyuid, admin-user, xpaas, registry-route, che, eap-cd installed | |
Default add-ons anyuid, admin-user, xpaas enabled | |
CDK 3 setup complete. | |
$ minishift start | |
-- Starting profile 'minishift' | |
-- Check if deprecated options are used ... OK | |
-- Checking if https://mirror.openshift.com is reachable ... OK | |
-- Checking if requested OpenShift version 'v3.9.31' is valid ... OK | |
-- Checking if requested OpenShift version 'v3.9.31' is supported ... OK | |
-- Checking if requested hypervisor 'kvm' is supported on this platform ... OK | |
-- Checking if KVM driver is installed ... | |
Driver is available at /usr/local/bin/docker-machine-driver-kvm ... | |
Checking driver binary is executable ... OK | |
-- Checking if Libvirt is installed ... OK | |
-- Checking if Libvirt default network is present ... OK | |
-- Checking if Libvirt default network is active ... OK | |
-- Checking the ISO URL ... OK | |
-- Checking if provided oc flags are supported ... OK | |
-- Starting local OpenShift cluster using 'kvm' hypervisor ... | |
-- Minishift VM will be configured with ... | |
Memory: 4 GB | |
vCPUs : 2 | |
Disk size: 20 GB | |
-- Starting Minishift VM ................. OK | |
-- Registering machine using subscription-manager | |
Registration in progress ........ OK [16s] | |
-- Checking for IP address ... OK | |
-- Checking for nameservers ... OK | |
-- Checking if external host is reachable from the Minishift VM ... | |
Pinging 8.8.8.8 ... OK | |
-- Checking HTTP connectivity from the VM ... | |
Retrieving http://minishift.io/index.html ... OK | |
-- Checking if persistent storage volume is mounted ... OK | |
-- Checking available disk space ... 1% used OK | |
Importing 'registry.access.redhat.com/openshift3/ose:v3.9.31' CACHE MISS | |
Importing 'registry.access.redhat.com/openshift3/ose-docker-registry:v3.9.31' CACHE MISS | |
Importing 'registry.access.redhat.com/openshift3/ose-haproxy-router:v3.9.31' CACHE MISS | |
-- OpenShift cluster will be configured with ... | |
Version: v3.9.31 | |
-- Copying oc binary from the OpenShift container image to VM ............... OK | |
-- Starting OpenShift cluster .................... | |
Using nsenter mounter for OpenShift volumes | |
Using public hostname IP 192.168.42.36 as the host IP | |
Using 192.168.42.36 as the server IP | |
Starting OpenShift using registry.access.redhat.com/openshift3/ose:v3.9.31 ... | |
OpenShift server started. | |
The server is accessible via web console at: | |
https://192.168.42.36:8443 | |
You are logged in as: | |
User: developer | |
Password: <any value> | |
To login as administrator: | |
oc login -u system:admin | |
-- Applying addon 'xpaas':......................................................................................................................... | |
XPaaS OpenShift imagestream and templates installed | |
See https://github.com/openshift/openshift-ansible/tree/release-3.9/roles/openshift_examples/files/examples/v3.9 | |
-- Applying addon 'admin-user':.. | |
-- Applying addon 'anyuid':. | |
Add-on 'anyuid' changed the default security context constraints to allow pods to run as any user. | |
Per default OpenShift runs containers using an arbitrarily assigned user ID. | |
Refer to https://docs.openshift.org/latest/architecture/additional_concepts/authorization.html#security-context-constraints and | |
https://docs.openshift.org/latest/creating_images/guidelines.html#openshift-origin-specific-guidelines for more information. | |
-- Exporting of OpenShift images is occuring in background process with pid 3944. |
Hopefully I can get the docs updated, so this isn't necessary, in the near future.