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
- 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
- Restart the computer.
Edit dnsmasq.conf to enable DHCP
You must specify a DHCP range to enable communication with your DHCP server.
/etc/dnsmasq.confto 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 will need to # 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.
- At the bottom of the
- Write and exit the file.
- Create the file
/etc/dnsmasq.d/razorand add configuration information.
For example, for dnsmasq 2.45:
# iPXE sets option 175, mark it for network IPXEBOOT dhcp-match=IPXEBOOT,175 dhcp-boot=net:IPXEBOOT,bootstrap.ipxe dhcp-boot=undionly-20140116.kpxe # TFTP setup enable-tftp tftp-root=/var/lib/tftpboot
- Enable dnsmasq on boot:
chkconfig dnsmasq on
- Start the dnsmasq service:
service dnsmasq start