[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] dhcp problem with vif-nat


  • To: Xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Anup Patil <anup.p@xxxxxxx>
  • Date: Wed, 07 Jun 2006 15:47:02 +0100
  • Delivery-date: Thu, 08 Jun 2006 08:22:42 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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 









_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.