[SOLVED] failed start of dhcpd

Issues related to configuring your network
chrisnor
Posts: 6
Joined: 2012/03/20 16:19:05
Contact:

Re: failed start of dhcpd

Post by chrisnor » 2012/03/24 17:22:12

Ok here are some more informations:

I want to test PXE.

I set up a VirtualBox Guest with CentOS running on a Win7 Host system.

eth0 is the bridged interface to easy have ssh via putty from win to centos and internet connection for centos.

eth1 should be my "internal" network where i want to connect my pxe hosts to. (set to "internal network" in vbox)

After configurating the pxe(centos) server i want to add more vbox guests where i want to install via pxe.

For PXE to work i read that i need to have a running dhcp and tftp server...

and the dhcp server failed.... =(

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: failed start of dhcpd

Post by pschaff » 2012/03/24 18:02:55

VirtualBox provides its own DHCP server for NAT and Host Only networks. I'm not sure about the details of Host-Only networks as I have not used them, but I suspect that is the source of your problems. Seems liker you are trying to re-invent the wheel.

[url=http://www.virtualbox.org/manual/ch06.html]VB Manual - Chapter 6. Virtual networking[/url]

chrisnor
Posts: 6
Joined: 2012/03/20 16:19:05
Contact:

Re: failed start of dhcpd

Post by chrisnor » 2012/03/24 18:24:57

http://www.virtualbox.org/manual/ch08.html#vboxmanage-dhcpserver

Says that i have to manualy enable the DHCP server for internal networks. So if i have not done so, there is no DHCP server in my internal network.
Thats good because i want my vbox guest centos to be the dhcp server for my internal network...

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: failed start of dhcpd

Post by pschaff » 2012/03/24 22:59:39

I will be interested to hear if you can make that work.

chrisnor
Posts: 6
Joined: 2012/03/20 16:19:05
Contact:

Re: failed start of dhcpd

Post by chrisnor » 2012/03/26 08:32:18

Ok there is always a simple solution to the biggest problems...

With two other guys looking over my system we finaly found the error...

I reffered my work with the centos 5 docs (because centos 6 has no docs yet), but in centos 6 dhcpd.conf is in a different location if you install dhcp via yum.

So the error was simple:
its NOT /etc/dhcpd.conf
it IS /etc/dhcp/dhcpd.conf

We figured this out by debugging the service srcipt.

Thanks guys for your help anyway! I think this wouldn't be the last time i'm in need for help ;)

greetings

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: [SOLVED] failed start of dhcpd

Post by pschaff » 2012/03/26 10:49:41

[quote]
chrisnor wrote:
...
I reffered my work with the centos 5 docs (because centos 6 has no docs yet), ...[/quote]
That's why I linked the upstream docs in post #9.

Thanks for reporting back. Marking this thread [SOLVED] for posterity.

pavankulka
Posts: 2
Joined: 2014/08/18 10:50:23

Re: [SOLVED] failed start of dhcpd

Post by pavankulka » 2015/09/21 12:23:45

I solved this problem by disabling selinux.

Steps to disable SELInux
1) vi /etc/sysconfig/selinux
2) change the SELINUX line to SELINUX=disabled
3) restart your machine
4) check the status of SELINUX by giving command : getenforce.
5) Getenforce command should give result as Disabled
6) Now restart the dhcpd service.

Hope it helps

Pavan

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: [SOLVED] failed start of dhcpd

Post by TrevorH » 2015/09/21 13:34:04

Please don't:

a) resurrect old and dead threads from 3 years ago
b) recommend people disable selinux
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Locked