Appendix C. Importing Kickstart Repositories
Kickstart repositories are not provided by the Content ISO image. To use Kickstart repositories in your disconnected Satellite, you must download a binary DVD ISO file for the version of Red Hat Enterprise Linux that you want to use and copy the Kickstart files to Satellite.
Procedure
- Navigate to the Red Hat Customer Portal at https://access.redhat.com/ and log in.
- In the upper left of the window, click Downloads.
- Locate and click the version of Red Hat Enterprise Linux that you want to use, for example Red Hat Enterprise Linux 8.
- In the Download Red Hat Enterprise Linux window, locate the binary DVD version of the ISO image, for example, Red Hat Enterprise Linux 8.1 Binary DVD, and click Download Now.
- When the download completes, copy the ISO image to Satellite Server.
On Satellite Server, create a mount point and temporarily mount the ISO image at that location:
mkdir /mnt/iso mount -o loop rhel-8.1-x86_64-dvd.iso /mnt/iso
# mkdir /mnt/iso # mount -o loop rhel-8.1-x86_64-dvd.iso /mnt/isoCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create Kickstart directories for AppStream and BaseOS:
mkdir /var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/appstream/kickstart mkdir /var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/baseos/kickstart
# mkdir /var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/appstream/kickstart # mkdir /var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/baseos/kickstartCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note that if you use Red Hat Enterprise Linux 7, you must create and complete all the following steps in only one directory
/var/www/html/pub/sat-import/content/dist/rhel/server/7/7.7/x86_64/kickstart/.To the listing files
/var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/appstream/listingand/var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/baseos/listing, appendkickstartwith a new line:kickstart
kickstartCopy to Clipboard Copied! Toggle word wrap Toggle overflow To the listing file
/var/www/html/pub/sat-import/content/dist/rhel8/listing, append the version number of the operating system ISO that you use with a new line. For example, for the RHEL 8.1 binary ISO, add8.1with a new line:8.1
8.1Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy the
kickstartfiles from the ISO image:cp -a /mnt/iso/AppStream/* \ /var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/appstream/kickstart cp -a /mnt/iso/BaseOS/* /mnt/iso/images/ \ /var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/baseos/kickstart
# cp -a /mnt/iso/AppStream/* \ /var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/appstream/kickstart # cp -a /mnt/iso/BaseOS/* /mnt/iso/images/ \ /var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/baseos/kickstartCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note that for BaseOS, you must also copy the contents of the
/mnt/iso/images/directory.Copy the
.treeinfofiles from the ISO image:cp /mnt/iso/.treeinfo \ /var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/appstream/kickstart/treeinfo cp /mnt/iso/.treeinfo \ /var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/baseos/kickstart/treeinfo
# cp /mnt/iso/.treeinfo \ /var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/appstream/kickstart/treeinfo # cp /mnt/iso/.treeinfo \ /var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/baseos/kickstart/treeinfoCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Open the
/var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/baseos/kickstart/treeinfofile for editing. In the
[general]section, make the following changes:-
Change
packagedir = AppStream/Packagestopackagedir = Packages -
Change
repository = AppStreamtorepository = . -
Change
variant = AppStreamtovariant = BaseOS -
Change
variants = AppStream,BaseOStovariants = BaseOS
-
Change
-
In the
[tree]section, changevariants = AppStream,BaseOStovariants = BaseOS. In the
[variant-BaseOS]section, make the following changes:-
Change
packages = BaseOS/Packagestopackages = Packages -
Change
repository = BaseOStorepository = .
-
Change
-
Delete the
[media]and[variant-AppStream]sections. - Save and close the file.
Verify that the
/var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/baseos/kickstart/treeinfofile has the following format:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Open the
/var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/appstream/kickstart/treeinfofile for editing. In the
[general]section, make the following changes:-
Change
packagedir = AppStream/Packagestopackagedir = Packages -
Change
repository = AppStreamtorepository = . -
Change
variants = AppStream,BaseOStovariants = AppStream
-
Change
-
In the
[tree]section, changevariants = AppStream,BaseOStovariants = AppStream. In the
[variant-AppStream]section, make the following changes:-
Change
packages = AppStream/Packagestopackages = Packages -
Change
repository = AppStreamtorepository = .
-
Change
-
Delete the following sections from the file:
[checksums],[images-x86_64],[images-xen],[media],[stage2],[variant-BaseOS]. - Save and close the file.
Verify that the
/var/www/html/pub/sat-import/content/dist/rhel8/8.1/x86_64/appstream/kickstart/treeinfofile has the following format:Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you do not plan to use the mounted binary DVD ISO image, unmount and remove the directory:
umount /mnt/iso rmdir /mnt/iso
# umount /mnt/iso # rmdir /mnt/isoCopy to Clipboard Copied! Toggle word wrap Toggle overflow - In the Satellite web UI, enable the Kickstart repositories.