WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] dhcp problem with vif-nat

To: Xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] dhcp problem with vif-nat
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] dhcp problem with vif-nat, Anup Patil <=