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

[Xen-users] çå: çå: xen bug in ubuntu 12.04 ï


  • To: "'Lukas Laukamp'" <lukas@xxxxxxxxxx>
  • From: "lyflyd" <lyflyd@xxxxxxxxx>
  • Date: Sun, 12 Aug 2012 11:58:59 +0800
  • Cc: xen-users@xxxxxxxxxxxxx
  • Delivery-date: Sun, 12 Aug 2012 04:00:29 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>
  • Thread-index: Ac135+EFrEsmm2+tQOCgybUOQteoEgAVGGOg

According to your way , I set up the bridge.And restart the domU system .

 

XM LIST:

root@dom0-228:/etc/xen# xm list

NameÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂIDÂÂ Mem VCPUsÂÂÂÂÂ StateÂÂ Time(s)

10.10.10.220_10.04ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 13Â 1048ÂÂÂÂ 1ÂÂÂÂ -b----ÂÂÂÂÂ 1.2

10.10.10.221ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 12Â 1048ÂÂÂÂ 1ÂÂÂÂ -b----ÂÂÂÂÂ 1.2

Domain-0ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 0 13043ÂÂÂ 16ÂÂÂÂ r-----ÂÂ 1281.7

root@dom0-228:/etc/xen#

 

 

NETWORK INFOïonly one vif interfaces vif12.0 to guest id 10.10.10.221

peth1 Link encap:Ethernet HWaddr 00:25:90:80:ee:95Â

ÂÂÂÂÂÂÂÂÂÂUP BROADCAST RUNNING PROMISC MULTICASTÂ MTU:1500Â Metric:1

ÂÂÂÂÂÂÂÂÂ RX packets:199137 errors:0 dropped:4 overruns:0 frame:0

ÂÂÂÂÂÂÂÂÂ TX packets:3497 errors:0 dropped:0 overruns:0 carrier:0

ÂÂÂÂÂÂÂÂÂ collisions:0 txqueuelen:1000

ÂÂÂÂÂÂÂÂÂÂRX bytes:15072098 (15.0 MB)Â TX bytes:231364 (231.3 KB)

ÂÂÂÂÂÂÂÂÂ Memory:faf60000-faf80000

 

vif12.0 Link encap:Ethernet HWaddr fe:ff:ff:ff:ff:ffÂ

ÂÂÂÂÂÂÂÂÂÂinet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link

ÂÂÂÂÂÂÂÂÂ UP BROADCAST RUNNING PROMISC MULTICASTÂ MTU:1500Â Metric:1

ÂÂÂÂÂÂÂÂÂ RX packets:17 errors:0 dropped:0 overruns:0 frame:0

ÂÂÂÂÂÂÂÂÂ TX packets:113 errors:0 dropped:0 overruns:0 carrier:0

ÂÂÂÂÂÂÂÂÂ collisions:0 txqueuelen:32

ÂÂÂÂÂÂÂÂÂÂRX bytes:1068 (1.0 KB)Â TX bytes:7958 (7.9 KB)

 

xenbr1 Link encap:Ethernet HWaddr 00:25:90:80:ee:95Â

ÂÂÂÂÂÂÂÂÂÂinet addr:10.10.10.206Â Bcast:10.10.10.255Â Mask:255.255.255.0

ÂÂÂÂÂÂÂÂÂ inet6 addr: fe80::225:90ff:fe80:ee95/64 Scope:Link

ÂÂÂÂÂÂÂÂÂ UP BROADCAST RUNNING MULTICASTÂ MTU:1500Â Metric:1

ÂÂÂÂÂÂÂÂÂ RX packets:1812 errors:0 dropped:0 overruns:0 frame:0

ÂÂÂÂÂÂÂÂÂ TX packets:48 errors:0 dropped:0 overruns:0 carrier:0

ÂÂÂÂÂÂÂÂÂ collisions:0 txqueuelen:0

ÂÂÂÂÂÂÂÂÂÂRX bytes:107020 (107.0 KB)Â TX bytes:4128 (4.1 KB)

 

BRIDGE INFO

root@dom0-228:/etc/xen# brctl show

bridge nameÂÂÂÂ bridge idÂÂÂÂÂÂÂÂÂÂÂÂÂÂ STP enabledÂÂÂÂ interfaces

xenbr1ÂÂÂÂÂÂÂÂÂ 8000.00259080ee95ÂÂÂÂÂÂ noÂÂÂÂÂÂÂÂÂÂÂÂÂ peth1

ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ vif12.0

 

 

Guest ID : 10.10.10.220_10.04 system is Âcopy from guest ID 10.10.10.221 system .But Guest ID : 10.10.10.220_10.04 havenât vif interfaceã

The vif12.0 is guest id 10.10.10.221ã

 

Dmesg info

[214733.207060] xenbr1: port 2(vif12.0) entering forwarding state

[214733.207065] xenbr1: port 2(vif12.0) entering forwarding state

 

 

[214754.307598] xenbr1: port 3(vif13.0) entering disabled state

[214754.307857] xenbr1: port 3(vif13.0) entering disabled state

ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ

Vif13.0 interfaces belong to ÂGuest ID : 10.10.10.220_10.04Â but disabled.

Normnal state is entering forwarding state .

 

Why ?

Whether through a copy guest system ,must be set some configuration file?

 

 

The same, I'm running on ubuntu 8.04 xen dom0, but no such the problem.

åää: Lukas Laukamp [mailto:lukas@xxxxxxxxxx]
åéæé: 2012å8æ12æ 1:36
æää: lyflyd
æé: xen-users@xxxxxxxxxxxxx
äé: Re: çå: [Xen-users] xen bug in ubuntu 12.04 ï

 

Am 11.08.2012 19:14, schrieb lyflyd:

Tksï

I run pv guest ï When I create pv guest by xen-create-image command,the vif can up success.

But when I create guest system through the following the script of the way to create.( In fact is to copy a guest system)

#!/bin/bash

 

# $1 is  ipaddr

if [ -z $1 ];then

        echo "Usage:$0 ip_addr"

        exit 0

fi

# get random string

MATRIX="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"

LENGTH="2"

while [ "${n:=1}" -le "$LENGTH" ]

do

        PASS="$PASS${MATRIX:$(($RANDOM%${#MATRIX})):1}"

        let n+=1

done

echo "$PASS"

cp templates.cfg $1.cfg

# set mac

sed -i "s/TEMP/$PASS/g" $1.cfg

# set hostname

sed -i "s/HOSTNAME/$1/g" $1.cfg

# set ipaddr

sed -i "s/IPADDR/$1/g" $1.cfg

 

#

## create disk iso and swap file

#

 

mkdir -p /data/xen/domains/$1

dd if=/dev/zero of=/data/xen/domains/$1/disk.img bs=1 count=1 seek=20G

dd if=/dev/zero of=/data/xen/domains/$1/swap.img bs=1M count=1024

mkfs.ext4 /data/xen/domains/$1/disk.img

sleep 2

cd /data/xen/domains/$1

mount -o loop disk.img /mnt

tar -zxSf /data/xen/domains/templates_10.04/ubuntu_10.04.tgz -C /mnt/

sleep 2

sed -i "s/10.10.10.231/$1/g" /mnt/etc/network/interfaces

sleep 2

umount /mnt

 

#

## start vps $1

#

xm create -c $1.cfg

ubuntu_10.04.tgz  is a os  iso file.

 

My configuration file :

#

# Configuration file for the Xen instance 10.04, created

# by xen-tools 4.3.1 on Sat Jul 28 03:10:44 2012.

#

 

#

#  Kernel + memory size

#

 

 

bootloader = '/usr/bin/pygrub'

 

vcpus       = '1'

memory      = '1048'

 

#

#  Disk device(s).

#

root        = '/dev/xvda2 ro'

disk        = [

                  'file:/data/xen/domains/10.10.10.220/disk.img,xvda2,w',

                  'file:/data/xen/domains/10.10.10.220/swap.img,xvda1,w',

              ]

 

 

#

#  Physical volumes

#

 

 

#

#  Hostname

#

name        = '10.10.10.220_10.04'

 

#

#  Networking

#

vif         = [ 'ip=10.10.10.220 ,mac=00:16:3E:22:5K:2F' ]

 

#

#  Behaviour

#

on_reboot   = 'restart'

on_crash    = 'restart'

 

 

åää: Lukas Laukamp [mailto:lukas@xxxxxxxxxx]
å éæé: 2012å8æ12æ 0:53
æää: lyflyd
æé: xen-users@xxxxxxxxxxxxx
äé: Re: [Xen-users] xen bug in ubuntu 12.04 ï

 

Am 11.08.2012 18:27, schrieb lyflyd:

Hiï

 

in the ubuntu 12.04 ,i installed the xen dom0 success.

In the startup xen guest, the guest system can be the normal starting, but guest system vif interface does not exist.

View dmesg log shows:

[2062.382385] device vif9.0 entered promiscuous mode

[2062.387698] ADDRCONF (NETDEV_UP) : vif9.0: link is not ready

[2072.221544] vif8.0: no IPv6 routers present

[2076.808353] xen-blkback: ring-ref 8, event-channel 9, protocol 1 (x86_64-abi)

[2076.847384] xen-blkback: ring-ref 9, event-channel 10, protocol 1 (x86_64-abi)

[2076.856078] eth1: port 4 (vif9.0) entering disabled state

[2076.856268] eth1: port 4 (vif9.0) entering disabled state

 

this  vif interfaces that the line is disabled.

 

And the normal vif startup information  is:

[2035.861524] ADDRCONF (NETDEV_UP) : vif7.0: link is not ready

[2048.585999] xen-blkback: ring-ref 8, event-channel 9, protocol 1 (x86_64-abi)

[2048.629885] xen-blkback: ring-ref 9, event-channel 10, protocol 1 (x86_64-abi)

[2048.648746] ADDRCONF (NETDEV_CHANGE) : vif7.0: link becomes ready

[2048.648801] eth1: port 2 (vif7.0) entering forwarding state

[2048.648806] eth1: port 2 (vif7.0) entering forwarding state

 

why the vif interfaces disabled?

 

what's wrong ?

how can I do ?

 

 





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


Hello,

it would be useful to know if you run a HVM or PV guest and how your configuration look like. I don't have issues with Xen on Ubuntu 12.04 and Debian. The only case where I had problems was when the vif option in the configuration file of a HVM has the option type=ioemu. There it happened that the vif interface couldn't be setup correct or stopped after a while.

Best Regards


Hello,

xen-create-image should generate a DomU configuration file in the specified output dir. Could you show us the configuration file of the DomU and the configuration of you bridge in /etc/network/interfaces. If you have created the bridge with the script network-bridge try to create the manually and try to start the guest with this bridge. So a possible bridge configuration could look like this:

auto xenbr0
iface xenbr0 inet static
    address IP-ADDRESS of Dom0
    netmask NETMASK-FOR-THE-NETWORK
    gateway GATEWAY-OF-THE-NETWORK
    bridge_ports eth0
    bridge_stp off (Spanning tree protocol is disabled in this case)
    bridge_fd 0 (sets the default forward delay)

The configuration for eth0 then must look like this:

auto eth0
iface eth0 inet manual

The configuration line for vif in the DomU configuration should look like this:

vif    [ 'bridge=xenbr0,ip=IP-OF-DOMU,mac=WANTED-MAC-ADDRESS' ]

Best Regards

_______________________________________________
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®.