The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.
To set up the Kickstart tree for a distribution on the Spacewalk server:
If the root for all Kickstart trees (typically,
/var/distro-trees) does not already exist, create this directory and, if required, set its SELinux file type ashttpd_sys_content_tso thathttpdandtomcat6can make the files available:Create the root directory for the Kickstart tree, for example:
#
mkdir -p /var/distro-trees/ol6-x86_64-serverIf SELinux is enabled in enforcing mode on your system:
Use the semanage command to define the default file type of the Kickstart tree as
httpd_sys_content_t:#
/usr/sbin/semanage fcontext -a -t httpd_sys_content_t "/var/distro-trees(/.*)?"Use the restorecon command to apply the file type to the entire directory hierarchy.
#
/sbin/restorecon -R -v /var/distro-treesNoteThe semanage and restorecon commands are provided by the
policycoreutils-pythonandpolicycoreutilspackages.
Download the full Oracle Linux Media Pack DVD image for the Oracle Linux release and system architecture from the Oracle Software Delivery Cloud at https://edelivery.oracle.com/linux and mount it on a suitable mount point, for example:
#
mount -o loop /var/ISOs/DVDimage.iso /var/distro-trees/olNun-arch-serverThe following table lists some of the full Oracle Linux Media Pack DVD image files that are available for Oracle Linux releases:
Release
Architecture DVD Image File
Oracle Linux 5 Update 11
x86 (32-bit)
V47134-01.isoOracle Linux 5 Update 11
x86_64 (64-bit)
V47133-01.isoOracle Linux 6 Update 6
x86 (32-bit)
V52221-01.isoOracle Linux 6 Update 6
x86_64 (64-bit)
V52218-01.isoOracle Linux 7 Update 1
x86_64 (64-bit)
V74844-01.isoCreate an entry in
/etc/fstabso that the system always mounts the DVD image after a reboot, for example:/var/ISOs/V74844-01.iso /var/OSimage/OL7u1-x86_64-server iso9660 loop,ro 0 0
If SELinux is enabled in enforcing mode on your system:
Set the
public_content_tfile type on the/var/distro-treesdirectory hierarchy.#
/usr/sbin/semanage fcontext -a -t public_content_t "/var/distro-trees/.*"Use the restorecon command to apply the file type to the entire directory hierarchy.
#
/sbin/restorecon -R -v /var/distro-treesNoteThe semanage and restorecon commands are provided by the
policycoreutils-pythonandpolicycoreutilspackages.
If you want to associate a Kickstart tree with a software channel or to be able to boot iPXE clients, create a symbolic link from
/var/www/htmlto/var/distro-trees.#
ln -s /var/distro-trees /var/www/html/distro-treesThe installation images will then be available at a URL such as
https://, whereswksvr_FQDN/distro-trees/olNun-arch-server/imagesswksvr_FQDNis the FQDN of the Spacewalk server or proxy.Using a browser, you should be able to see the contents of the mounted installation image listed at the URL. If you cannot see the files:
Edit
/etc/httpd/conf/httpd.confand enable support for directory indexing and symbolic links by specifyingOptions Indexes FollowSymLinksin the<Directory "/var/www/html">section.Reload the
httpdservice.#
service httpd reload

