Create an IBM Cloud Pak System image from Red Hat Enterprise Linux CoreOS 4.4.0 OVA
Steps to create a IBM Cloud Pak® System image from Red Hat Enterprise Linux CoreOS OVA.
Procedure
-
Download an OVA from Red Hat.
Example:
For OpenShift Container Platform V4.4.0, see https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.4/latest/rhcos-4.4.17-x86_64-vmware.x86_64.ova . -
Optional: If you want the Operating system to have a value in the IBM Cloud Pak System Virtual Image page, do the following steps:
-
From the OVA downloaded in step 1, use the following command to extract the files:
tar -xvf rhcos-4.4.0-x86_64-vmware.ova
-
Edit the
coreos.ovf
file and find the following XML element:<OperatingSystemSection ovf:id="80" ovf:version="6" vmw:osType="rhel7_64Guest">
-
Within the OperatingSystemSection element, add a Description element, such as the
osType
text. This text appears in the Operating system field of the IBM Cloud Pak System Virtual Image page.<OperatingSystemSection ovf:id="80" ovf:version="6" vmw:osType="rhel7_64Guest"> <Info>The kind of installed guest operating system</Info> <Description>rhel7_64Guest</Description> </OperatingSystemSection>
-
Combine the new set of files into an updated OVA.
For example,
tar -cvf /tmp/rhcos-4.4.0-x86_64-vmware.ova *
-
-
On the IBM Cloud Pak System user interface, go to Patterns > Virtual Appliances and click + to import a new virtual appliance.
-
Select SCP to access the OVA.
-
After the image is imported, configure and deploy it to its smallest footprint. Make sure to select an IP address from drop down list for Attach IP address. The resulting virtual machine is stopped and you do not have to start it.
-
After the virtual machine is deployed, go to Catalog > Virtual Images.
-
Click Create New.
-
On the Create virtual image section, select Create by capturing an existing virtual machine.
-
Enter the following details for the newly created virtual machine:
- Virtual machine - Select the virtual machine from the drop down list.
- Virtual image name ="IBM OS Image for Red Hat Enterprise Linux CoreOS - Small 16GB"
- Virtual image version= "4.4.0"
- Virtual image description = "CoreOS 4.4"
-
In the Metadata OVA file location, enter the location of
MAESTRO_LINUX_OS_IMG_METADATA_CPS.ova
. Download ova file here.
Notes:
- Make sure that the ova file is publicly accessible.
- Provide the complete link along with the file name.
- For CoreOS 4.4, the final image has a 16 GB disk. To create a larger disk size, clone the image and specify a larger disk size in the hardware section.