-
Notifications
You must be signed in to change notification settings - Fork 115
Remove more IDs from anchors in Provisioning guide #5050
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,72 +1,72 @@ | ||
| :_mod-docs-content-type: PROCEDURE | ||
|
|
||
| [id="Completing_the_RHEL7_Image_{context}"] | ||
| [id="completing-the-rhel-7-image"] | ||
| = Completing the {RHEL} 7 image | ||
|
|
||
| [role="_abstract"] | ||
| To ensure that VMs deployed from your image are treated as clean and unique instances that can be successfully registered and managed by {Project}, prepare your pre-built {RHEL} 7 image for cloud or virtual machine deployment and subsequent management by {Project}. | ||
|
|
||
| .Procedure | ||
| . Update the system: | ||
|
Check failure on line 10 in guides/common/modules/proc_completing-the-rhel-7-image.adoc
|
||
| + | ||
| ----------- | ||
| ---- | ||
| # yum update | ||
| ----------- | ||
| ---- | ||
| . Install the `cloud-init` packages: | ||
|
Check failure on line 15 in guides/common/modules/proc_completing-the-rhel-7-image.adoc
|
||
| + | ||
| [options="nowrap" subs="+quotes,attributes"] | ||
| ----------- | ||
| ---- | ||
| # yum install cloud-utils-growpart cloud-init | ||
| ----------- | ||
| ---- | ||
| . Open the `/etc/cloud/cloud.cfg` configuration file: | ||
|
Check failure on line 21 in guides/common/modules/proc_completing-the-rhel-7-image.adoc
|
||
| + | ||
| ----------- | ||
| ---- | ||
| # vi /etc/cloud/cloud.cfg | ||
| ----------- | ||
| ---- | ||
| . Under the heading `cloud_init_modules`, add: | ||
|
Check failure on line 26 in guides/common/modules/proc_completing-the-rhel-7-image.adoc
|
||
| + | ||
| ----------- | ||
| ---- | ||
| - resolv-conf | ||
| ----------- | ||
| ---- | ||
| + | ||
| The `resolv-conf` option automatically configures the `resolv.conf` when an instance boots for the first time. | ||
| This file contains information related to the instance such as `nameservers`, `domain` and other options. | ||
| . Open the `/etc/sysconfig/network` file: | ||
|
Check failure on line 34 in guides/common/modules/proc_completing-the-rhel-7-image.adoc
|
||
| + | ||
| ----------- | ||
| ---- | ||
| # vi /etc/sysconfig/network | ||
| ----------- | ||
| ---- | ||
| . Add the following line to avoid problems accessing the EC2 metadata service: | ||
|
Check failure on line 39 in guides/common/modules/proc_completing-the-rhel-7-image.adoc
|
||
| + | ||
| ----------- | ||
| ---- | ||
| NOZEROCONF=yes | ||
| ----------- | ||
| ---- | ||
| . Un-register the virtual machine so that the resulting image does not contain the same subscription details for every instance cloned based on it: | ||
| + | ||
| ------------ | ||
| ---- | ||
| # subscription-manager repos --disable=* | ||
| # subscription-manager unregister | ||
| ------------ | ||
| ---- | ||
| . Power off the instance: | ||
| + | ||
| ----------- | ||
| ---- | ||
| # poweroff | ||
| ----------- | ||
| ---- | ||
| . On your {RHEL} Workstation, connect to the terminal as the root user and navigate to the `/var/lib/libvirt/images/` directory: | ||
| + | ||
| ----------- | ||
| ---- | ||
| # cd /var/lib/libvirt/images/ | ||
| ----------- | ||
| ---- | ||
| . Reset and clean the image using the `virt-sysprep` command so it can be used to create instances without issues: | ||
| + | ||
| ----------- | ||
| ---- | ||
| # virt-sysprep -d rhel7 | ||
| ----------- | ||
| ---- | ||
| . Reduce image size using the `virt-sparsify` command. | ||
| This command converts any free space within the disk image back to free space within the host: | ||
| + | ||
| ----------- | ||
| ---- | ||
| # virt-sparsify --compress rhel7.qcow2 rhel7-cloud.qcow2 | ||
| ----------- | ||
| ---- | ||
| + | ||
| This creates a new `rhel7-cloud.qcow2` file in the location where you enter the command. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you consider looking into this Vale error so we keep the filename-ID-heading-match checker up-to-date? Looking at it briefly, it should be just the normalization for
{client-os-context}that's missing to make the check mass.