Offloading DHCP server from warewulf

28 views
Skip to first unread message

Jose Bautista Barato

unread,
Jan 18, 2023, 1:06:34 PM1/18/23
to Warewulf
Hi folks.
How can I configure dchp-offloaded ww?
I have a DHCP server already in the LAN(not mgmt. network) and want to use that for node provisioning.
Kind Regards.
joseb

John Hanks

unread,
Jan 18, 2023, 1:39:01 PM1/18/23
to ware...@lbl.gov
Hi Jose,

In your warewulf.conf, 

dhcp:
  enabled: false

will disable warewulf control of DHCP. As long as your existing DHCP supplies the same info for WW hosts, it'll work fine. 

griznog

--
You received this message because you are subscribed to the Google Groups "Warewulf" group.
To unsubscribe from this group and stop receiving emails from it, send an email to warewulf+u...@lbl.gov.
To view this discussion on the web visit https://groups.google.com/a/lbl.gov/d/msgid/warewulf/8664ffa5-57df-4e15-94d0-423465f644a0n%40lbl.gov.

Jose Bautista Barato

unread,
Jan 18, 2023, 1:49:54 PM1/18/23
to Warewulf, gri...@gmail.com
Hi griznog.

Thanks for your response.
What does `the same info for ww hosts` mean?

John Hanks

unread,
Jan 18, 2023, 2:17:44 PM1/18/23
to Jose Bautista Barato, Warewulf
Warewulf adds to the dhpcd config sections to handle PXE booting, bootstrapping to iPXE, arm/x86/x86_64 stanzas for handling different architectures and then node entries for each node. As long as that info makes it to your existing DHCP server then things will work. If you can't add that info to your central DHPC server, then you'll have to at least get them to ignore your nodes and then run your own DHCP which only answers your nodes and provides the right settings for booting them. There's no technical issue with running multiple DHPC servers on the same network, they just need to agree on what answers they'll give or who they'll ignore.

See /etc/warewulf/dhcp/ for the templates to get an idea of what is being added to the dhcp config, or go ahead and run dhcp and look at the config warewulf builds. 

griznog

John Hanks

unread,
Jan 18, 2023, 2:34:51 PM1/18/23
to Jose Bautista Barato, Warewulf
One other point, it's arguably a "best practice" to provision over a completely private network that is internal to the cluster and not routed, except possibly via a NAT gateway. So the ideal solution would be to run your own DHCP server on the private cluster network. This is not always possible, but can definitely make it easier to manage the cluster.
Reply all
Reply to author
Forward
0 new messages