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

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


  • To: Maik Brauer <mailinglist@xxxxxxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

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