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_t
so thathttpd
andtomcat6
can make the files available:Create the root directory for the Kickstart tree, for example:
#
mkdir -p /var/distro-trees/ol6-x86_64-server
If 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-trees
NoteThe semanage and restorecon commands are provided by the
policycoreutils-python
andpolicycoreutils
packages.
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/olN
un
-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.iso
Oracle Linux 5 Update 11
x86_64 (64-bit)
V47133-01.iso
Oracle Linux 6 Update 6
x86 (32-bit)
V52221-01.iso
Oracle Linux 6 Update 6
x86_64 (64-bit)
V52218-01.iso
Oracle Linux 7 Update 1
x86_64 (64-bit)
V74844-01.iso
Create an entry in
/etc/fstab
so 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_t
file type on the/var/distro-trees
directory 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-trees
NoteThe semanage and restorecon commands are provided by the
policycoreutils-python
andpolicycoreutils
packages.
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/html
to/var/distro-trees
.#
ln -s /var/distro-trees /var/www/html/distro-trees
The installation images will then be available at a URL such as
https://
, whereswksvr_FQDN
/distro-trees/olN
un
-arch
-server/imagesswksvr_FQDN
is 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.conf
and enable support for directory indexing and symbolic links by specifyingOptions Indexes FollowSymLinks
in the<Directory "/var/www/html">
section.Reload the
httpd
service.#
service httpd reload