Step 4 of Building NUC Cluster
Provisioning NUC node with OS, PXE booting
Five Main Steps
Building a NUC cluster has the following five steps:
- Step 1. Connecting Macbook, switch and NUC
- Step 2. Configuring NUC gateway
- Step 3. Installing and configuring Cobbler on the NUC gateway
- Step 4. Provisioning NUC-worker hosts
- Step 5. Postconfigure – hiding switch behind the firewall
In order to be able to install OS via network, the node’s network interface card (NIC) must support PXE booting. This is so for the most modern NICs.
The only setting might be necessary to enable – is the network booting in the BIOS settings.
Lets attach empty NUC to port 2, which belongs to vlan2
and press the start button.
Most likely one will face a screen similar to:
Check systmemctl status dnsmasq
. If the status is alive
– check the firewall:
[root@c2gw xadmin]# firewall-cmd --list-all
Observe the services
line. If that does not contain dhcp
, it means that firewall in blocking port 67/53.
[root@c2gw xadmin]# firewall-cmd --add-service dhcp
Reboot the worker NUC. Now one should see that DHCP works, and the worker was assigned the local IP e.g. 10.200.1.103
. The trouble, however, is with the TFTP
:
That is correct, the TFTP service on port 69 is not enabled on the firewall.
[root@c2gw xadmin]# firewall-cmd --add-service tftp dns http
Let’s add dns
and http
as well. Reboot the worker NUC. The screen should display Cobbler greeting menu with a set of offers. Choose one to fire-up the PXE-install!
##Result
The setup up to the this moment allows usto establish a cluster by attaching new nodes to the switch and automatically provision them with the OS. Our final mark could be to hide switch behind the NUC GW firewall.