So I'm running into some issues and I'm sure it's a minor brain fart
on my part. But the documentation has not squared me away.
I have a cobbler server running DHCP for 3 networks, my cobbler
server has 3 interfaces and I have 3 dhcp stanzas (whatever).
I can set a different next server, which is the interface IP on that
subnet/vlan. No issue. I can build a system from the 10.13.4 network
just fine. But if I try to build from the 10.13.200 net, I can get a
dhcp address, load the kernel, but the issue is the Distro has the IP
address from the 10.13.4.x network in it so the pxelinux.cfg/default
has the wrong subnet/vlan hardcoded; and thus tries to load the
kickstart
LABEL CentOS7-x86_64_Standard
kernel /images/CentOS7-x86_64/vmlinuz
MENU LABEL CentOS7-x86_64_Standard
append initrd=/images/CentOS7-x86_64/initrd.img ksdevice lang=
kssendmac text
ks=http://10.13.4.101/cblr/svc/op/ks/profile/CentOS7-x86_64_Standard
ipappend 2
So obviously if a host is on the 10.13.200 net, receives a 10.13.200.x
address, and starts booting, cobbler is sending it that kickstart line
and it should not be going to 10.13.4.101 when the local network is
ready to receive at 10.13.200.101.
The metadata tree has the 10.13.4.101 address, and I thought about
setting it to $next_server, but it seems if I do it in the profile via
cobbler_web, it over writes the default file with 10.13.4.101 (the
cobbler host server IP)
I've removed $next-server from the cobbler settings file
#next_server: 10.13.4.101
But server is still configured.
server: 10.13.4.101
So the issue is really the server configuration inside settings. it
mentions --server-override, but I don't want to have a handful of
profiles for the same image.. I would like to just boot up a server
and say use Profile-CentOS-standard and ignore which network it's
coming from., want wildcards or other to figure things out.
Any ideas? really i've been searching and "nothing" I've found has
made me understand where I'm falling short. -dhcp-tags,
--server-override
Thanks
tory
################## DHCP ############
ddns-update-style interim;
allow booting;
allow bootp;
ignore client-updates;
set vendorclass = option vendor-class-identifier;
subnet 10.13.4.0 netmask 255.255.255.0 {
option routers 10.13.4.6;
option domain-name-servers 10.13.4.220, 10.13.7.101, 10.13.7.102;
option domain-name "eng.domain.net";
option subnet-mask 255.255.255.0;
range dynamic-bootp 10.13.4.75 10.13.4.99;
filename "/pxelinux.0";
default-lease-time 21600;
max-lease-time 43200;
next-server 10.13.4.101;
}
subnet 10.13.5.0 netmask 255.255.255.0 {
option routers 10.13.5.6;
option domain-name-servers 10.13.4.220, 10.13.7.101, 10.13.7.102;
option domain-name "eng.domain.net";
option subnet-mask 255.255.255.0;
range dynamic-bootp 10.13.5.220 10.13.5.239;
filename "/pxelinux.0";
default-lease-time 21600;
max-lease-time 43200;
next-server 10.13.5.100;
}
subnet 10.13.200.0 netmask 255.255.255.0 {
option routers 10.13.200.6;
option domain-name-servers 216.249.24.15, 10.13.6.56;
option domain-name "gc.sv.domain.net";
option subnet-mask 255.255.255.0;
range dynamic-bootp 10.13.200.75 10.13.200.85;
filename "/pxelinux.0";
default-lease-time 21600;
max-lease-time 43200;
next-server 10.13.200.101;
}
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/cobbler@lists.fedorahosted.org