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/
Home Products Support Community News


Re: [Xen-devel] DHCP request

To: Rune Johan Andresen <runejoha@xxxxxxxxxxx>
Subject: Re: [Xen-devel] DHCP request
From: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>
Date: Thu, 15 Jul 2004 16:23:36 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx, Rune Johan Andresen <Rune.Johan.Andresen@xxxxxxxxxxx>, Niraj Tolia <ntolia@xxxxxxxxx>, Ian.Pratt@xxxxxxxxxxxx
Delivery-date: Thu, 15 Jul 2004 16:27:54 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Thu, 15 Jul 2004 17:12:02 +0200." <53133154-D671-11D8-A13B-000A95B44940@xxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> Hi, so far so good. I can start a domain. When I try to connect to a 
> domain "xm console <nr>" it boots, but it tries to send a DHCP request 
> which times out.
> Sending DHCP requests ..... timed out!
> Can i turn this off? The network setup for domain0 works perfectly. do 
> I need some additional applications etc.?

Take a look at your /etc/xen/xmdefaults config file. You're
asking the domain to get its ip address using the in-kernel DHCP

Either configure your network's DHCP server to respond to the new
domain's MAC address, or edit xmdefaults to configure an IP
address, netmask and gateway manually.

If you want it to take the config from whatever you have in dom0
and add 1 to the IP address, use the following:

ip = add_offset_to_ip(get_current_ipaddr(),vmid)
netmask = get_current_ipmask()
gateway = get_current_ipgw()
#hostname= "myvm%d" % vmid

If you want to use DHCP, either go with the generated MAC
address, or set your own with:

vif = [ 'mac=00:06:AA:F6:BB:B3' ]


This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
Xen-devel mailing list