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

[Xen-devel] xl create don't register IP in xenstore. vif-common.sh antispoof scripts fails [SOLVED]


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Carlos <cechevarne@xxxxxxxxx>
  • Date: Fri, 18 Feb 2011 18:16:37 +0100
  • Delivery-date: Fri, 18 Feb 2011 09:17:14 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=VQNSADpmix1diKRvGu8HxHS/iq4WoqtIE3sLdQdmkShaz0CKnLNUnZPyuzpXMhyFm8 r7y0LVfj5HNRx62uNQSC9zTkJCOXXUBVzA3bOV3CNQ7MJW4nVrwN7gEqxH5+Sb9+BXD5 IlXId4imeBMTfmG0FONr0ZTWXOOAACO004mOA=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

When start a domU through xl create. The domU associated ip in the configuration file is not recorded in the xenstore. For this reason vif-common.sh antispoof scripts fails.

xl create 

/usr/bin/xenstore-ls /local/domain/0/backend/vif/5/0
frontend = "/local/domain/5/device/vif/0"
frontend-id = "5"
>state = "4"
script = "/etc/xen/scripts/vif-bridge"
mac = "00:16:3e:56:df:85"
bridge = "eth1"
handle = "0"
feature-sg = "1"
feature-gso-tcpv4 = "1"
feature-rx-copy = "1"
feature-rx-flip = "0"
feature-smart-poll = "1"
hotplug-status = "connected"

xm create

/usr/bin/xenstore-ls /local/domain/0/backend/vif/6/0
bridge = "eth1"
domain = "domU"
handle = "0"
uuid = "5ca3c748-451e-8270-50af-296bd494fca1"
script = "/etc/xen/scripts/vif-bridge"
ip = "82.98.xxx.xxx"
state = "4"
frontend = "/local/domain/6/device/vif/0"
mac = "00:16:3e:56:df:85"
>frontend-id = "6"
feature-sg = "1"
feature-gso-tcpv4 = "1"
feature-rx-copy = "1"
feature-rx-flip = "0"
feature-smart-poll = "1"
hotplug-status = "connected"

I applied the patch of  thread titled "Recent xl and network-route scripts" and it works.

xl create /etc/xen/domU.cfg
Parsing config file /etc/xen/domU.cfg
Daemon running with PID 3199


/usr/bin/xenstore-ls /local/domain/0/backend/vif/1/0
frontend = "/local/domain/1/device/vif/0"

frontend-id = "1"
>state = "2"
script = "/etc/xen/scripts/vif-bridge"
mac = "00:16:3e:56:df:85"
ip = "82.98.xxx.xxx"

bridge = "eth1"
handle = "0"
feature-sg = "1"
feature-gso-tcpv4 = "1"
feature-rx-copy = "1"
feature-rx-flip = "0"
feature-smart-poll = "1"

Thanks!!
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

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