Skip to content

Commit 0b5de56

Browse files
authored
Merge pull request #80685 from RamLavi/dpdk_container_image_to_rhel9
[virt]: DPDK - Bump container disk images to RHEL9
2 parents baba0be + 72b467c commit 0b5de56

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

modules/virt-building-vm-containerdisk-image.adoc

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,24 @@
66
[id="virt-building-vm-containerdisk-image_{context}"]
77
= Building a container disk image for {op-system-base} virtual machines
88

9-
You can build a custom {op-system-base-full} 8 OS image in `qcow2` format and use it to create a container disk image. You can store the container disk image in a registry that is accessible from your cluster and specify the image location in the `spec.param.vmContainerDiskImage` attribute of the DPDK checkup config map.
9+
You can build a custom {op-system-base-full} 9 OS image in `qcow2` format and use it to create a container disk image. You can store the container disk image in a registry that is accessible from your cluster and specify the image location in the `spec.param.vmContainerDiskImage` attribute of the DPDK checkup config map.
1010

11-
To build a container disk image, you must create an image builder virtual machine (VM). The _image builder VM_ is a {op-system-base} 8 VM that can be used to build custom {op-system-base} images.
11+
To build a container disk image, you must create an image builder virtual machine (VM). The _image builder VM_ is a {op-system-base} 9 VM that can be used to build custom {op-system-base} images.
1212

1313
.Prerequisites
14-
* The image builder VM must run {op-system-base} 8.7 and must have a minimum of 2 CPU cores, 4 GiB RAM, and 20 GB of free space in the `/var` directory.
15-
* You have installed the image builder tool and its CLI (`composer-cli`) on the VM.
16-
14+
* The image builder VM must run {op-system-base} 9.4 and must have a minimum of 2 CPU cores, 4 GiB RAM, and 20 GB of free space in the `/var` directory.
15+
* You have installed the image builder tool and its CLI (`composer-cli`) on the VM. For more information, see "Additional resources".
1716
* You have installed the `virt-customize` tool:
1817
+
1918
[source,terminal]
2019
----
21-
# dnf install libguestfs-tools
20+
# dnf install guestfs-tools
2221
----
2322
* You have installed the Podman CLI tool (`podman`).
2423
2524
.Procedure
2625

27-
. Verify that you can build a {op-system-base} 8.7 image:
26+
. Verify that you can build a {op-system-base} 9.4 image:
2827
+
2928
[source,terminal]
3029
----
@@ -37,7 +36,7 @@ To run the `composer-cli` commands as non-root, add your user to the `weldr` or
3736
3837
[source,terminal]
3938
----
40-
# usermod -a -G weldr user
39+
# usermod -a -G weldr <user>
4140
----
4241
[source,terminal]
4342
----
@@ -53,7 +52,7 @@ $ cat << EOF > dpdk-vm.toml
5352
name = "dpdk_image"
5453
description = "Image to use with the DPDK checkup"
5554
version = "0.0.1"
56-
distro = "rhel-87"
55+
distro = "rhel-9.4"
5756

5857
[[customizations.user]]
5958
name = "root"
@@ -122,8 +121,10 @@ echo "hugetlbfs /mnt/huge hugetlbfs defaults,pagesize=1GB 0 0" >> /etc/fstab
122121
echo "options vfio enable_unsafe_noiommu_mode=1" > /etc/modprobe.d/vfio-noiommu.conf
123122

124123
# Enable guest-exec,guest-exec-status on the qemu-guest-agent configuration
125-
sed -i '/^BLACKLIST_RPC=/ { s/guest-exec-status//; s/guest-exec//g }' /etc/sysconfig/qemu-ga
126-
sed -i '/^BLACKLIST_RPC=/ { s/,\+/,/g; s/^,\|,$//g }' /etc/sysconfig/qemu-ga
124+
sed -i 's/\(--allow-rpcs=[^"]*\)/\1,guest-exec-status,guest-exec/' /etc/sysconfig/qemu-ga
125+
126+
# Disable Bracketed-paste mode
127+
echo "set enable-bracketed-paste off" >> /root/.inputrc
127128
EOF
128129
----
129130

0 commit comments

Comments
 (0)