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

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



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


 


Rackspace

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