[SOLVED] failed start of dhcpd
Re: failed start of dhcpd
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.... =(
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.... =(
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: failed start of dhcpd
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]
[url=http://www.virtualbox.org/manual/ch06.html]VB Manual - Chapter 6. Virtual networking[/url]
Re: failed start of dhcpd
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...
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...
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: failed start of dhcpd
I will be interested to hear if you can make that work.
Re: failed start of dhcpd
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
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
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: [SOLVED] failed start of dhcpd
[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.
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.
-
- Posts: 2
- Joined: 2014/08/18 10:50:23
Re: [SOLVED] failed start of dhcpd
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
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
Re: [SOLVED] failed start of dhcpd
Please don't:
a) resurrect old and dead threads from 3 years ago
b) recommend people disable selinux
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
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