OpenShift 3.6 Virtualization Host Preparation: Difference between revisions
(10 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
=Procedure= | =Procedure= | ||
1. Create a | 1. Create a directory-based [[Linux_Virtualization_Concepts#Storage_Pool|storage pool]] to maintain the ISO images used in the installation, as described in [[KVM Virtualization Directory-Based Storage Pool Configuration|this procedure]]. The conventional name of the pool is "iso-images": | ||
virsh # pool-info iso-images | |||
Name: iso-images | |||
UUID: e91bb163-c4be-4c1a-9212-70903e407a1c | |||
State: running | |||
Persistent: yes | |||
Autostart: yes | |||
Capacity: 49.98 GiB | |||
Allocation: 11.63 GiB | |||
Available: 38.35 GiB | |||
2. Stage Red Hat Enterprise Linux 7.4 Binary DVD image that will be used to create the guest templates, as file, in /iso-images. | |||
{{Warn|Make sure to use the Binary DVD image, not the Boot ISO or KVM Guest images.}} | |||
cp /tmp/rhel-server-7.4-x86_64-dvd.iso /iso-images/ | |||
3. Create a partition-based [[Linux_Virtualization_Concepts#Storage_Pool|storage pool]] to maintain storage for the virtualization guests, as described in [[KVM Virtualization Partition-Based Storage Pool Configuration|this procedure]]. It is conventionally named "main-storage-pool". Make sure it has enough space available to accommodate the OpenShift environment's storage needs: | |||
virsh # pool-dumpxml main-storage-pool | |||
<pool type='fs'> | |||
<name>main-storage-pool</name> | |||
<uuid>5e3b81b6-a596-404f-a091-ef738dc21df5</uuid> | |||
<capacity unit='bytes'>938496245760</capacity> | |||
<allocation unit='bytes'>9520472064</allocation> | |||
<available unit='bytes'>928975773696</available> | |||
<source> | |||
<device path='/dev/sda7'/> | |||
<format type='auto'/> | |||
</source> | |||
<target> | |||
<path>/main-storage-pool</path> | |||
<permissions> | |||
<mode>0755</mode> | |||
<owner>0</owner> | |||
<group>0</group> | |||
<label>system_u:object_r:unlabeled_t:s0</label> | |||
</permissions> | |||
</target> | |||
</pool> |
Latest revision as of 23:29, 7 November 2017
Internal
Overview
This procedure describes preparatory operations required by the installation of an OpenShift environment on a KVM virtualization host. None of these operations are OpenShift-specific, but they are necessary if OpenShift and support nodes are to be deployed in a KVM virtualization environment.
Procedure
1. Create a directory-based storage pool to maintain the ISO images used in the installation, as described in this procedure. The conventional name of the pool is "iso-images":
virsh # pool-info iso-images Name: iso-images UUID: e91bb163-c4be-4c1a-9212-70903e407a1c State: running Persistent: yes Autostart: yes Capacity: 49.98 GiB Allocation: 11.63 GiB Available: 38.35 GiB
2. Stage Red Hat Enterprise Linux 7.4 Binary DVD image that will be used to create the guest templates, as file, in /iso-images.
Make sure to use the Binary DVD image, not the Boot ISO or KVM Guest images.
cp /tmp/rhel-server-7.4-x86_64-dvd.iso /iso-images/
3. Create a partition-based storage pool to maintain storage for the virtualization guests, as described in this procedure. It is conventionally named "main-storage-pool". Make sure it has enough space available to accommodate the OpenShift environment's storage needs:
virsh # pool-dumpxml main-storage-pool <pool type='fs'> <name>main-storage-pool</name> <uuid>5e3b81b6-a596-404f-a091-ef738dc21df5</uuid> <capacity unit='bytes'>938496245760</capacity> <allocation unit='bytes'>9520472064</allocation> <available unit='bytes'>928975773696</available> <source> <device path='/dev/sda7'/> <format type='auto'/> </source> <target> <path>/main-storage-pool</path> <permissions> <mode>0755</mode> <owner>0</owner> <group>0</group> <label>system_u:object_r:unlabeled_t:s0</label> </permissions> </target> </pool>