<commit_before>// Module included in the following assemblies:
//
// * installing/installing_rhv/installing-rhv-user-infra.adoc
// * installing/installing-rhv-restricted-network.adoc

[id="installation-rhv-specifying-rhcos-image-settings_{context}"]
= Specifying the {op-system} image settings

Update the {op-system-first} image settings of the `inventory.yml` file. Later, when you run this file one of the playbooks, it downloads a compressed {op-system-first} image from the `image_url` URL to the `local_cmp_image_path` directory. The playbook then uncompresses the image to the `local_image_path` directory and uses it to create oVirt/{rh-virtualization} templates.

// TBD - https://issues.redhat.com/browse/OCPRHV-414
// Consider combining this topic with another one after we've resolved the issue of getting the files.

.Procedure

. Locate the {op-system} image download page for the version of {product-title} you are installing, such as link:https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.9/latest/[Index of /pub/openshift-v4/dependencies/rhcos/latest/latest].

. From that download page, copy the URL of an OpenStack `qcow2` image, such as `\https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.9/latest/rhcos-openstack.x86_64.qcow2.gz`.

. Edit the `inventory.yml` playbook you downloaded earlier. In it, paste the URL as the value for `image_url`. For example:
+
[source,yaml]
----
rhcos:
  "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.9/latest/rhcos-openstack.x86_64.qcow2.gz"
----<commit_msg>GH#34497: [OKD] RHCOS image download link instead of FCOS image link<commit_after>// Module included in the following assemblies:
//
// * installing/installing_rhv/installing-rhv-user-infra.adoc
// * installing/installing-rhv-restricted-network.adoc

[id="installation-rhv-specifying-rhcos-image-settings_{context}"]
= Specifying the {op-system} image settings

Update the {op-system-first} image settings of the `inventory.yml` file. Later, when you run this file one of the playbooks, it downloads a compressed {op-system-first} image from the `image_url` URL to the `local_cmp_image_path` directory. The playbook then uncompresses the image to the `local_image_path` directory and uses it to create oVirt/{rh-virtualization} templates.

// TBD - https://issues.redhat.com/browse/OCPRHV-414
// Consider combining this topic with another one after we've resolved the issue of getting the files.

.Procedure

ifndef::openshift-origin[]
. Locate the {op-system} image download page for the version of {product-title} you are installing, such as link:https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.9/latest/[Index of /pub/openshift-v4/dependencies/rhcos/latest/latest].

. From that download page, copy the URL of an OpenStack `qcow2` image, such as `\https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.9/latest/rhcos-openstack.x86_64.qcow2.gz`.

. Edit the `inventory.yml` playbook you downloaded earlier. In it, paste the URL as the value for `image_url`. For example:
+
[source,yaml]
----
rhcos:
  "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.9/latest/rhcos-openstack.x86_64.qcow2.gz"
----
endif::openshift-origin[]
ifdef::openshift-origin[]
. Locate the {op-system} image download page, such as link:https://getfedora.org/coreos/download?tab=cloud_operators&stream=stable[Download Fedora CoreOS].

. From that download page, copy the URL of an OpenStack `qcow2` image, such as `\https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/34.20210611.3.0/x86_64/fedora-coreos-34.20210611.3.0-openstack.x86_64.qcow2.xz`.

. Edit the `inventory.yml` playbook you downloaded earlier. In it, replace the `rhcos` stanza and paste the URL as the value for `image_url`. For example:
+
[source,yaml]
----
rhcos:
  image_url: "https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/34.20210611.3.0/x86_64/fedora-coreos-34.20210611.3.0-openstack.x86_64.qcow2.xz"
----
endif::openshift-origin[]
{'fraction_non_alphanumeric': 0.12456575682382134, 'fraction_numerical': 0.02977667493796526, 'mean_word_length': 4.56767955801105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 11, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6959429', 'n_tokens_mistral': 1448, 'n_tokens_neox': 1325, 'n_words': 348}