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

[Xen-users] vif interfaces are not added to the bridge


  • To: xen-users@xxxxxxxxxxxxx
  • From: Aleksey Cheusov <vle@xxxxxxx>
  • Date: Sun, 07 Oct 2012 15:06:49 +0300
  • Delivery-date: Sun, 07 Oct 2012 12:09:10 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>

Hi. I've installed XCP 6.1.0-61002c and am trying to install NetBSD in domU.

/etc/xen/netbsd-i386.cfg:
  kernel = "/srv/xen/netbsd-INSTALL_XEN3PAE_DOMU"
  memory = 256
  name = "netbsd-i386"
  builder="generic"
  vcpus = 1
  nics = 1
  vif = [ "mac=aa:00:00:50:02:f0,bridge=xenbr0" ]
  disk = [ 
"phy:/dev/VG_XenStorage-8314fff6-1ede-7bfd-2899-bb64f82d7825/netbsd-i386-1,0x1,w"
 ]
  root = "xbd0"

/etc/xen/xl.conf:
  autoballoon = 0

/etc/xensource/network.conf:
  openvswitch

The following packages are installed 
  xen-tools-4.1.3-1.6.06.491.23545
  kernel-xen-2.6.32.43-0.4.1.xs1.6.06.734.170748
  openvswitch-modules-xen-2.6.32.43-0.4.1.xs1.6.06.734.170748-1.4.2-135.9877
  xapi-xenopsd-0.2-5178
  xen-device-model-1.6.06-53.7533
  xapi-xenops-0.2-5178

Installation goes fine until NetBSD tries to configure the network which
doesn't work. "brctl xenbr says" that only eth0 is in the bridge, that
is vifN.M is absent. ovs-vsctl shows the same. When I insert the
following

  set -x
  exec 2>/tmp/vif.log

to /etc/xensource/scripts/vif and run

  xl create /etc/xen/netbsd-i386.cfg -c

I see the following in /tmp/vif.log file.
As you can see 

  xenstore-read /xapi/10/private/vif/0/MTU

fails.

  [root@chexcp ~]# xenstore-list /xapi/10
  hotplug
  [root@chexcp ~]#

There is no /xapi/10/private directory.

I'm completely new xen. Any clue?

======================================================================
vif script log file:

+ echo add vif
+ BRCTL=/usr/sbin/brctl
+ IP=/sbin/ip
+ vsctl=/usr/bin/ovs-vsctl
+ setup_vif_rules=/opt/xensource/libexec/setup-vif-rules
++ cat /etc/xensource/network.conf
+ NETWORK_MODE=openvswitch
+ ACTION=add
+ [[ 2 -lt 2 ]]
+ TYPE=vif
+ case $NETWORK_MODE in
+ case ${TYPE} in
+ '[' -z backend/vif/10/0 ']'
++ echo backend/vif/10/0
++ cut -f 3 -d /
+ DOMID=10
++ echo backend/vif/10/0
++ cut -f 4 -d /
+ DEVID=0
+ dev=vif10.0
+ XAPI=/xapi/10/hotplug/vif/0
+ HOTPLUG=/xapi/10/hotplug/vif/0
+ PRIVATE=/xapi/10/private/vif/0
+ HOTPLUG_STATUS=backend/vif/10/0/hotplug-status
+ HOTPLUG_ERROR=backend/vif/10/0/hotplug-error
+ logger -t scripts-vif 'Called as "add vif" domid:10 devid:0 mode:openvswitch'
+ case "${ACTION}" in
+ '[' vif = tap ']'
+ echo online vif
+ BRCTL=/usr/sbin/brctl
+ IP=/sbin/ip
+ vsctl=/usr/bin/ovs-vsctl
+ setup_vif_rules=/opt/xensource/libexec/setup-vif-rules
++ cat /etc/xensource/network.conf
+ NETWORK_MODE=openvswitch
+ ACTION=online
+ [[ 2 -lt 2 ]]
+ TYPE=vif
+ case $NETWORK_MODE in
+ case ${TYPE} in
+ '[' -z backend/vif/10/0 ']'
++ echo backend/vif/10/0
++ cut -f 3 -d /
+ DOMID=10
++ echo backend/vif/10/0
++ cut -f 4 -d /
+ DEVID=0
+ dev=vif10.0
+ XAPI=/xapi/10/hotplug/vif/0
+ HOTPLUG=/xapi/10/hotplug/vif/0
+ PRIVATE=/xapi/10/private/vif/0
+ HOTPLUG_STATUS=backend/vif/10/0/hotplug-status
+ HOTPLUG_ERROR=backend/vif/10/0/hotplug-error
+ logger -t scripts-vif 'Called as "online vif" domid:10 devid:0 
mode:openvswitch'
+ case "${ACTION}" in
+ '[' vif = vif ']'
+ handle_ethtool rx
+ local opt=rx
++ xenstore-read /xapi/10/private/vif/0/other-config/ethtool-rx
+ local arg=
+ '[' 0 -eq 0 -a -n '' ']'
+ handle_ethtool tx
+ local opt=tx
++ xenstore-read /xapi/10/private/vif/0/other-config/ethtool-tx
+ local arg=
+ '[' 0 -eq 0 -a -n '' ']'
+ handle_ethtool sg
+ local opt=sg
++ xenstore-read /xapi/10/private/vif/0/other-config/ethtool-sg
+ local arg=
+ '[' 0 -eq 0 -a -n '' ']'
+ handle_ethtool tso
+ local opt=tso
++ xenstore-read /xapi/10/private/vif/0/other-config/ethtool-tso
+ local arg=
+ '[' 0 -eq 0 -a -n '' ']'
+ handle_ethtool ufo
+ local opt=ufo
++ xenstore-read /xapi/10/private/vif/0/other-config/ethtool-ufo
+ local arg=
+ '[' 0 -eq 0 -a -n '' ']'
+ handle_ethtool gso
+ local opt=gso
++ xenstore-read /xapi/10/private/vif/0/other-config/ethtool-gso
+ local arg=
+ '[' 0 -eq 0 -a -n '' ']'
+ handle_mtu
++ xenstore-read /xapi/10/private/vif/0/MTU
+ local mtu=
+ '[' 0 -eq 0 -a -n '' ']'
+ logger -t scripts-vif 'Failed to read /xapi/10/private/vif/0/MTU'
+ xenstore-write backend/vif/10/0/hotplug-error 'Failed to read 
/xapi/10/private/vif/0/MTU'
+ exit 1

-- 
Best regards, Aleksey Cheusov.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

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