OpenShift 3.6 Generic Guest Template: Difference between revisions
Jump to navigation
Jump to search
Line 49: | Line 49: | ||
subscription-manager attach --pool=''<pool-id>'' | subscription-manager attach --pool=''<pool-id>'' | ||
Once attached to the pool, all repositories must be first disabled, and then only select repositories are re-enabled: | |||
subscription-manager repos --disable="*" | |||
subscription-manager repos --list-enabled | |||
yum repolist | |||
If there are any enabled repositories, disable them with: | |||
yum-config-manager --disable ''<repo_id>'' | |||
Enable only the repositories required by OpenShift Container Platform 3.6: | |||
subscription-manager repos --enable="rhel-7-server-rpms" --enable="rhel-7-server-extras-rpms" --enable="rhel-7-server-ose-3.6-rpms" --enable="rhel-7-fast-datapath-rpms" | |||
subscription-manager repos --list-enabled | |||
yum repolist | |||
subscription-manager repos --enable="rhel-7-server-rpms" --enable="rhel-7-server-extras-rpms" --enable="rhel-7-server-ose-3. | |||
subscription-manager repos --list-enabled | |||
yum repolist | |||
* Install base packages (https://docs.openshift.com/container-platform/3.5/install_config/install/host_preparation.html#installing-base-packages): | * Install base packages (https://docs.openshift.com/container-platform/3.5/install_config/install/host_preparation.html#installing-base-packages): |
Revision as of 04:07, 8 November 2017
Internal
Clone the Basic Template
Use the basic template as a base image, and clone it, as described here:
The particular sequence follows:
virsh shutdown ocp36.basic-template
virsh dumpxml ocp36.basic-template > /root/environments/ocp36/ocp36.basic-template.xml cp ocp36.basic-template.xml ocp36.generic-template.xml
Adjust the configuration as described here.
Clone the virtual machine image and create the new disk volumes, as described in Cloning a Guest.
virsh define /root/environments/ocp36/ocp36.generic-template.xml
virsh start --console ocp36.generic-template
Then reconfigure Linux VM Guest Image.
Install OpenShift Binaries
Attach the Node to the OpenShift Subscription
More details about subscription management:
The node, being based on the basic template, should have been already registered with the subscription manager:
subscription-manager status
subscription-manager identity
subscription-manager list --available --matches '*OpenShift*'
Identify the OpenShift pool ID:
subscription-manager attach --pool=<pool-id>
Once attached to the pool, all repositories must be first disabled, and then only select repositories are re-enabled:
subscription-manager repos --disable="*"
subscription-manager repos --list-enabled yum repolist
If there are any enabled repositories, disable them with:
yum-config-manager --disable <repo_id>
Enable only the repositories required by OpenShift Container Platform 3.6:
subscription-manager repos --enable="rhel-7-server-rpms" --enable="rhel-7-server-extras-rpms" --enable="rhel-7-server-ose-3.6-rpms" --enable="rhel-7-fast-datapath-rpms"
subscription-manager repos --list-enabled yum repolist
- Install base packages (https://docs.openshift.com/container-platform/3.5/install_config/install/host_preparation.html#installing-base-packages):
yum update -y yum install atomic-openshift-utils