Hi Guys,
Thanks for all the feedback. Let me provide a little more context in case
that's helpful. I'm starting the DHCP server manually (Not during boot with
chkconfig dhcpd on). That was working fine before, so I assume that's OK?
Currently I do the following:
disable selinux
service iptables stop
service httpd start
service cobblerd start
service dhcpd start
cobbler sync
This was working fine in the very beginning, however there was a hickup with
cobbler sync not restarting the dhcp server (It was generating /etc/dhcpd.conf
though), so we turned omapi_enabled to 0. Now it restarts the dhcp server.
However, it also stopped regenerating /etc/dhpcd.conf. So I'm editing
/etc/dhcpd.conf manually and then running cobbler sync, which AFAIK just
restarts dhcpd for me. If I try setting omapi_enabled to 1 again, and running
cobbler sync, I get this:
[EMAIL PROTECTED] ole]# cobbler sync
dhcpctl_connect: connection refused
dhcpctl_connect: connection refused
I'm going to give it another try listing my exact steps:
cobbler profile add --name=bb.example.com.fedora10 --distro=fedora10-i386
--kickstart=/etc/cobbler/fedora10_i386_bb_template.ks
cobbler system add --name=bb.example.com --hostname=bb.example.com
--profile=bb.example.com.fedora10 --mac=00:16:ec:cc:d1:f6 --ip=192.168.1.7
Cobbler Check
-----------------------------------------------
[EMAIL PROTECTED] ole]# cobbler check
The following potential problems were detected:
#0: since iptables may be running, ensure 69, 80, 25150, and 25151 are unblocked
#1: One or more kickstart templates references default password 'cobbler' and
should be changed for security reasons: /etc/cobbler/sample.ks,
/etc/cobbler/legacy.ks, /etc/cobbler/sample_end.ks
IPTables Off
-----------------------------------------------
[EMAIL PROTECTED] ole]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
Cobbler Sync
-----------------------------------------------
[EMAIL PROTECTED] ole]# cobbler sync
Shutting down dhcpd: [ OK ]
Starting dhcpd: [ OK ]
/etc/dhcpd.conf looks like this prior to the cobbler sync:
# ******************************************************************
# Cobbler managed dhcpd.conf file
# generated from cobbler dhcp.conf template (Thu Dec 4 20:25:14 2008)
# ******************************************************************
ddns-update-style interim;
allow booting;
allow bootp;
ignore client-updates;
set vendorclass = option vendor-class-identifier;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.1.2 192.168.1.254;
filename "/pxelinux.0";
default-lease-time 21600;
max-lease-time 43200;
next-server 192.168.1.6;
}
host bb.mydemandchain.com
{
hardware ethernet 00:16:ec:cc:d1:f6;
fixed-address 192.168.1.7;
option host-name "bb.example.com";
}
Now everything should be ready to go, so I'm going to reboot the target machine
that wants to pxe install. I also made sure that I turned off dhcp on the
router prior to doing this.
The result is:
PXE-E51: No DHCP or dhcpPROXY lease offered.
I tried examining the log which looks like this:
[EMAIL PROTECTED] ole]# tail /var/log/messages
Dec 5 10:12:38 ole dhcpd: Copyright 2004-2007 Internet Systems Consortium.
Dec 5 10:12:38 ole dhcpd: All rights reserved.
Dec 5 10:12:38 ole dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Dec 5 10:12:38 ole dhcpd: Not searching LDAP since ldap-server, ldap-port and
ldap-base-dn were not specified in the config file
Dec 5 10:12:38 ole dhcpd: Wrote 0 deleted host decls to leases file.
Dec 5 10:12:38 ole dhcpd: Wrote 0 new dynamic host decls to leases file.
Dec 5 10:12:38 ole dhcpd: Wrote 1 leases to leases file.
Dec 5 10:12:38 ole dhcpd: Listening on
LPF/eth0/00:0e:a6:65:57:99/192.168.1.0/24
Dec 5 10:12:38 ole dhcpd: Sending on
LPF/eth0/00:0e:a6:65:57:99/192.168.1.0/24
Dec 5 10:12:38 ole dhcpd: Sending on Socket/fallback/fallback-net
Does anything look off?
Thanks again,
- Ole
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler