On Sat, Oct 6, 2012 at 2:39 PM, Zack Perry <[email protected]> wrote:
> I am in need of using the the same set of IP addresses to support a group of 
> KVM guests running different Linux distros on the same machine: Scientific 
> Linux 6.3, 64 bit. cobbler 2.2.3.
>
> With cobbler, to enable such the support of duplicated IPs is simple: vi 
> /etc/cobbler/settings and done.
>
> But to my disappointment, the $insert_cobbler_system_definitions in  
> /etc/cobbler/dnsmasq.template writes out a line for each known Mac address. 
> The result: upon a cobbler sync, dnsmasq issues the following and refuses to 
> restart:
>
> dnsmasq: duplicate IP address 192.168.123.101 in dhcp-config directive.
>
> It's been known at least since 2009 that if one uses a syntax like the 
> following:
>
> dhcp-host=<wlan MAC>,<lan MAC>,<IP address>
>
> then dnsmasq would handle the situation gracefully.  How can I make cobbler 
> to use such a syntax?
>
> Yes. I can use the same set of Mac addresses for these KVM guests and "get 
> around" the issue for now. But we do have plan to migrate this single host 
> KVM based POC setup to a set of physical test server for more capacity.  So, 
> using different Mac Addresses is just more realistic and forward looking.

I don't think there's any workaround for this right now, as the code
to generate those lines is in the python module and not in the
template. Go ahead and open a github ticket for this, and I'll get it
added in.

Is there any limit to the number of MACs on a given line? For example,
could you have:

dhcp-host=mac1,mac2,mac3,...,macN,ip-address

I ask, because the way I see this working is to keep track of
duplicate IP's and combining them into the dhcp-host directive above.
If a user were to have more than 2 systems with dupe IP's I don't want
this causing a different problem. I haven't been able to find
documentation on the max number of entries per line.
_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/cobbler

Reply via email to