This repo provides a script to automate the customization and build process of a custom RHV-H ISO. The work is based on the Blog Article - Building a Custom Boot ISO for Red Hat Virtualization Hypervisor by Marc Skinner
The script has a builtin usage function, which shows the basic usage of that script. Note the script should be executed with super-user privileges.
$ ./build-iso.sh -h
This script must be run with super-user privileges.
Usage: build-iso.sh [-bh] [-p rhv.iso]
-b build RHV-H custom ISO
-h display help
-p rhv.iso prepare the environment to customize ISO
before building
Please make sure, you have pre-installed the following packages on your build-system.
syslinux
- Simple kernel loader which boots from a FAT filesystemisomd5sum
- Utilities for working with md5sum implanted in ISO imagesgenisoimage
- Creates an image of an ISO9660 file-system
The images can be downloaded from access.redhat.com
- configure the
build-iso.rc
file to setup necessary variables
# Path to working directory
ISO_BASEDIR="/tmp/RHVH-custom"
# filename of created RHV-H custom image
ISO_OUT="RHVH-4.4-custom.x86_64.iso"
This process will Copy the content from RHV image into a working directory, which will be used for modifications and build.
$ sudo ./build-iso.sh -p ~/Downloads/RHVH-4.4-20201117.0-RHVH-x86_64-dvd1.iso
All file in modification
directory will be included into the image.
To customize the ks.cfg
it needs to be copied to modifications
-directory.
$ cp ks.cfg /tmp/RHVH-custom/modifications
To start the build process, execute the following command.
# sudo ./build-iso.sh BUILD
This will create the ISO in the directory ISO_BASEDIR
you've configured in build-iso.rc
There is no warranty on success by using these scripts. You will use these scripts on your own risk.