Skip to contentSkip to conversation

dhcp problem with vif-nat

DISCUSSION Anup Patil 1 participant 1 message Jun 7, 2006

lore
Share & tools
lore

Anup Patil

author
#0 lore raw

I am using nat for guest domU with dhcp running on dom0.

on creating the domU xend-debug.log reports:
Can't open /etc/dhcp3/dhcpd.conf: Permission denied and dhcp fails.

The vif0.X is created and the dhcp.conf is modified according to the randomly generated mac address and the address of vifx.0.
I think the problem lies in the vif-nat script in synchronization during dhcpd.conf modification. Restart(start) of the dhcp server fails and the failure is ignored.

With the following change the creation of domain rightly fails. But does not solve my problem.

--- /work/unstable/xen-unstable.hg/dist/install/etc/xen/scripts/vif-nat

2006-06-06 18:12:11.000000000 +0100

+++ vif-nat 2006-06-07 11:53:15.000000000 +0100
@@ -110,7 +110,7 @@
echo >>"$dhcpd_conf_file" \
"host $hostname { hardware ethernet $mac; fixed-address $vif_ip; option routers $router_ip; option host-name \"$hostname\"; }"
release_lock "vif-nat-dhcp"

-  "$dhcpd_init_file" restart || true
+  "$dhcpd_init_file" restart  && true

Any ideas to debug this ?

Anup