Setting up a Razor environment
Razor relies on a PXE environment to boot the Razor microkernel. You must set up your PXE environment before you can successfully provision with Razor.
-
(Recommended) Integrate Razor with the DHCP solution of the system being provisioned.
-
Rely on UEFI to directly load the .ipxe file that’s required to boot the Razor microkernel.
Because it’s difficult to guarantee that all of your hardware is UEFI-enabled, configuring DHCP is the preferred method for setting up a Razor environment.
Set up a Razor environment
Set up a PXE environment using the DHCP and TFTP service of your choice.
Install and configure dnsmasq DHCP-TFTP service
Install dnsmasq to manage communication between nodes and the Razor server. When a node boots, dnsmasq forwards the booted node to the Razor service.
-
Use YUM to install dnsmasq:
yum install dnsmasq
-
If it doesn't already exist, create the directory
/var/lib/tftpboot
. -
Change the permissions for the TFTP boot
directory:
chmod 655 /var/lib/tftpboot
.
Temporarily disable SELinux
You must temporarily disable SELinux in order to enable PXE boot. Alternatively, you could craft an enforcement rule for SELinux that enables PXE boot but doesn't completely disable SELinux.
-
In the file
/etc/sysconfig/selinux
, setSELINUX=disabled
. - Restart the computer.
Edit dnsmasq.conf to enable DHCP
You must specify a DHCP range to enable communication with your DHCP server.
dhcp-range=range1,10.0.1.50,10.0.1.120,24h
dhcp-range=range2,10.0.1.121,10.0.1.222,48h
./etc/dnsmasq.conf
to specify a DHCP range.
# Uncomment this to enable the integrated DHCP server, you need
# to supply the range of addresses available for lease and optionally
# a lease time. If you have more than one network, you must
# repeat this for each network on which you want to supply DHCP
# service.
dhcp-range=10.0.1.50,10.0.1.120,24h
Edit the dnsmasq configuration file to enable PXE boot
Use dnsmasq to enable PXE booting on nodes.