Skip to content

Setup PXE in Red Hat Satellite 6.2

When setting up a Satellite server you might not have enabled PXE functionality. Also, when upgrading from Satellite 6.1.10 , the functionality might break and need to be re-enabled.

 

How to setup PXE on Satellite 6.2

After the upgrade to 6.2 you will notice things have changed, not only in the interface but also on the command line. Fot isntance the tooling provided to enable things like dhcp and tftp has changed it’s name from katello-installer to satellite-installer. To get PXE up and running you will need a few things: DNS, DHCP and TFTP. Depening on need you can remove certain sections below, for instance if you already have DHCP setup or if DNS is already maintained then you can remove these sections from the script below.

 

Before you start you can verify the current setup you can run satellite-installer –help without any further options, the ‘help’ screen will contain the settings that have already been made. If you want to know what will change you can append –compare-scenarios at the end of the script below and the satellite-installer will present you with a nice overview of the current and future settings.

 

# satellite-installer –scenario satellite \
–foreman-proxy-dns true \
–foreman-proxy-dns-interface eth0 \
–foreman-proxy-dns-zone example.com \
–foreman-proxy-dns-forwarders 172.17.13.1 \
–foreman-proxy-dns-reverse 13.17.172.in-addr.arpa \
–foreman-proxy-dhcp true \
–foreman-proxy-dhcp-interface eth0 \
–foreman-proxy-dhcp-range “172.17.13.100 172.17.13.150” \
–foreman-proxy-dhcp-gateway 172.17.13.1 \
–foreman-proxy-dhcp-nameservers 172.17.13.2 \
–foreman-proxy-tftp true \
–foreman-proxy-tftp-servername $(hostname)

 

Depending on your configuration the process may take a few minutes, as you will notice the way the information is presented is also different. Before you got a full screen of all the processes and their status, now you will only get a progressbar.

After all is set, you can verify that the tftp server is running by running:

netstat -tulpen | grep 69

This should show you an xinetd running on port 69, the configuration can be found in /etc/xinetd.d/tftp