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

Re: [Xen-users] vif-route script not getting domU-IP (vif-IP)

To: Maik Brauer <mailinglist@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] vif-route script not getting domU-IP (vif-IP)
From: Ray Barnes <tical.net@xxxxxxxxx>
Date: Wed, 24 Jun 2009 00:46:02 -0400
Cc: xen-users Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 23 Jun 2009 21:46:46 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=7jhfz173Bd7mhKIDkNdqNnzYC+rnk2/bGcmoMZrk5YQ=; b=muECLSIhWMti2HnvIiK46zsAmhSbkbaXwlnAb3tZP6bqqIm3MOA3bTqCx6f2DEhOvC pAxnVah7IPwl1ahxY7NBM52ZOb3/Piks3Fekm5x+lOjtY/6xhdWY6wS4i1xIuzL18yqf N7fNgLyCEP5FigtvqKP8DmYqAD7R96AdC6hpU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Nwbjg3k5HmIPlHZOG4/cpbP/Lv2azJXlVwu9iQxXSiM9VpqJ9S6vk5Fc2q6Fw1C1yw 3cdhbwYkHijRrt3XmWr4RthK8DHQYYjZBsbZmEZwtM9g4iGXdDooVb1scES2pPkoo/yE DdLTfb/lQrzYUrbHFTIiLmQMC0FmHDeGVMC64=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <96DC6C41-20E1-4B40-9911-41C6BC8FE457@xxxxxxxxxxxxxxx>
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>
References: <96DC6C41-20E1-4B40-9911-41C6BC8FE457@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I'm using individual vif-route scripts for each domU for customization reasons.  But in your case, the most likely culprit is that you have no "ip=" in the vif statement in the domU config file.
 
-Ray


 
On Tue, Jun 23, 2009 at 9:51 AM, Maik Brauer <mailinglist@xxxxxxxxxxxxxxx> wrote:
Hi,

I'm using the XEN 3.4.1-pre4 Hypervisor in Routet Mode and I'm facing some problems when I start the DomU.
In detail, it means that the DomU IP-Adress will not be implemented in the Kernel routing table after starting the domU via "xm create /<path+configfle>"
After making a "netstat -nr" it will not show the IPadress bound to the VIF<..>-interface.

A small echo in the vif-route script shows that the variable $IP is empty. So no value will be available, therefore the script can't work.

if [ "${ip}" ] ; then
   # If we've been given a list of IP addresses, then add routes from dom0 to
   # the guest using those addresses.
   for addr in ${ip} ; do
     ${cmdprefix} ip route ${ipcmd} ${addr} dev ${vif} src ${main_ip}
   done
fi

Has sombody faced the same problems ?

Cheers,
Maik

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

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