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-users

[Xen-users] Unable to get IP address in guest OS through DHCP

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Unable to get IP address in guest OS through DHCP
From: Flavio <fbcyborg@xxxxxxxxx>
Date: Sun, 25 Sep 2011 14:49:11 +0200
Delivery-date: Sun, 25 Sep 2011 05:51:12 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=zGNNBgiwRoct1KR/zDqAbIJUoW5zQeVDdou+Zgy+2JQ=; b=UfXEI+OYrlfgNJX+JDxgi+g7euwN1DsS6gQ70/uwAGYfUt+kcM6m5swY9/PE8BT1wl FFiqmSxgQcP/6Q2OCjA6Vtf98vUaxAorNW8+jXXFyEG56A6gC5aIQDjHaQp8T0/HIwlK Pa0BCGk+hhyWECva+3jYOMdnyhKlhEr0sNzcQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hello,

I have a Gentoo Linux guest, which was working very well with the past
xm tool stack.
Since the migration to xen-4.1.1 and to the new xl tool stack, I have
a problem for the IP
assignation. Actually, when dhcpcd starts at boot time the IP address
is not correctly assigned.
This also happens if I perform "dhcpcd eth0" once I've accessed to the
guest shell.

I don't know what happens, but it always worked with the previous xen
tool stack. I use a bridge
for the guest OS networking and it is called xenbr0.

This is what I see when dhcpcd starts:
 * Starting eth0
 *   Bringing up eth0
 *     dhcp
 *       Running dhcpcd ...dhcpcd[2226]: version 5.2.10 starting
dhcpcd[2226]: eth0: checking for 169.254.86.217
dhcpcd[2226]: eth0: using IPv4LL address 169.254.86.217
dhcpcd[2226]: forked to background, child pid 2247

I don't know if it could be a guest kernel configuration problem (I
don't think so) or something else, but the
network is not working. It should get an IP address of the type 192.168.1.0/24.

The configuration file is:

kernel = "/mnt/dati/xen/kernel/vmlinuz-xen-3.0.4-domU"
memory = "512"
name = "gentoo-10.0-x86_64"
vif = ['bridge=xenbr0']
dhcp = "dhcp"
disk = ['file:/mnt/data/xen/vmstore/gentoo-10.0/gentoo-10.0.x86-64.img,xvda1,w',
'file:/mnt/data/xen/vmstore/gentoo-10.0/swap.img,xvda2,w']
root = "/dev/xvda1 ro"
vcpus = 2
extra   = 'console=hvc0 xencons=tty'
ip = "off"

Thanks

-- 
Flavio

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