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-api

[Xen-Users] eth0 on hvm is not up on xen 4.0.1

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-Users] eth0 on hvm is not up on xen 4.0.1
From: 姜晓东 <jxd431@xxxxxxxxx>
Date: Fri, 18 Feb 2011 15:17:07 +0800
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 17 Feb 2011 23:19:51 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=JgQ4DzpNtVnqnXt8VRCm4mdQQ9pJIhaWMmJxXQ7pNbo=; b=hAQ/5pw12kgLWINb2CP3kT0t83QS5I5Av4+2Tc596x6nMvrBU6C26vk+xeYh56ZN4t CUQb+bFYoyYrgyuNUgm4+ZbI37z4zTuJykBEjbCds+044gDMMD9YOL8e5g19tSI97eJp EnNo8tGbdY/A9/A9ifAU+E0ZXo3iKzFNM/wUs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; b=LDNhf3VtLuBWfh2dYJ1d9tupmxh7Cdr3PUN5tFDFyR4DpY7Nnd1KPq5SIpr2nhPcp9 ihO4aosV6AV7GmTI0oLeUdhYOpcF8OlDISzHuOkEd/Sp0QZZtq4bG+G2ib85h24g8BIR XIkirytYgBVAfegWC9Ziw/nsGTLQQsA70C+zg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4D5E19D0.9060505@xxxxxxxxx>
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: <4D5E19D0.9060505@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.11) Gecko/20101130 Lightning/1.0b3pre Thunderbird/3.1.5
On 02/18/11 15:03, 姜晓东 wrote:

Hi,all.

I create a hvm which boot up from gentoo livecd iso file, the config file 'xen/configs/gentoo' is as follows:
------------------------------
#  -*- mode: python; -*-
import os, re
arch_libdir = 'lib'
arch = os.uname()[4]
if os.uname()[0] == 'Linux' and re.search('64', arch):
    arch_libdir = 'lib64'
kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 2048
shadow_memory = 8
name = "centos"
vcpus=1
vif = [ 'type=ioemu, mac=00:16:3e:00:00:12, bridge=xenbr0' ]
disk = [ 'phy:/dev/sda6,sda,w','file:/root/downloads/install-amd64-minimal-20110113.iso,hdc:cdrom,r' ]
cdrom = 'dev/hdc'
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
boot="dc"
sdl=0
opengl=0
vnc=1
vnclisten="0.0.0.0"
vncpasswd=''
vncconsole=1
stdvga=0
serial='pty'
usbdevice='tablet'
------------------------------

Then i create this vm using command:
xm create /xen/configs/gentoo


When i entered into the console of this vm, I cannot see eth0 using ifconfig command but only see lo interface is up

The tail of /var/log/messages on dom0 is as following:
-----------------------------------------------
Feb 18 22:50:20 server kernel: device tap1.0 entered promiscuous mode
Feb 18 22:50:20 server kernel: eth0: port 3(tap1.0) entering forwarding state
Feb 18 22:50:21 server logger: /etc/xen/scripts/block: Writing backend/vbd/1/5632/node /dev/loop0 to xenstore.
Feb 18 22:50:21 server logger: /etc/xen/scripts/block: Writing backend/vbd/1/5632/physical-device 7:0 to xenstore.
Feb 18 22:50:21 server kernel: (cdrom_add_media_watch() file=/usr/src/linux-2.6.34-xen-r4/drivers/xen/blkback/cdrom.c, line=108) nodename:backend/vbd/1/5632
Feb 18 22:50:21 server kernel: (cdrom_is_type() file=/usr/src/linux-2.6.34-xen-r4/drivers/xen/blkback/cdrom.c, line=95) type:1
Feb 18 22:50:21 server kernel: (cdrom_add_media_watch() file=/usr/src/linux-2.6.34-xen-r4/drivers/xen/blkback/cdrom.c, line=110) is a cdrom
Feb 18 22:50:21 server kernel: (cdrom_add_media_watch() file=/usr/src/linux-2.6.34-xen-r4/drivers/xen/blkback/cdrom.c, line=112) xenstore wrote OK
Feb 18 22:50:21 server kernel: (cdrom_is_type() file=/usr/src/linux-2.6.34-xen-r4/drivers/xen/blkback/cdrom.c, line=95) type:1
Feb 18 22:50:21 server logger: /etc/xen/scripts/block: Writing backend/vbd/1/5632/hotplug-status connected to xenstore.
Feb 18 22:50:36 server kernel: eth0: port 3(tap1.0) entering disabled state
Feb 18 22:50:36 server kernel: device tap1.0 left promiscuous mode
Feb 18 22:50:36 server kernel: eth0: port 3(tap1.0) entering disabled state
Feb 18 22:51:32 server kernel: blkback: ring-ref 8, event-channel 5, protocol 1 (x86_64-abi)
Feb 18 22:51:32 server logger: /etc/xen/scripts/vif-bridge: offline XENBUS_PATH=backend/vif/1/0
Feb 18 22:51:32 server kernel: eth0: port 2(vif1.0) entering disabled state
Feb 18 22:51:32 server kernel: eth0: port 2(vif1.0) entering disabled state
Feb 18 22:51:32 server logger: /etc/xen/scripts/vif-bridge: brctl delif eth0 vif1.0 failed
Feb 18 22:51:32 server logger: /etc/xen/scripts/vif-bridge: ifconfig vif1.0 down failed
Feb 18 22:51:32 server logger: /etc/xen/scripts/vif-bridge: Successful vif-bridge offline for vif1.0, bridge eth0.
-----------------------------------------------

When i booting hvm, i can see tap1.0 and vif 1.0 is up but then they disappeared while booting finished
------------------------------------------------
server log # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:25:90:08:c3:8a 
          inet addr:192.168.1.3  Bcast:192.168.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4272 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3743 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:322797 (315.2 KiB)  TX bytes:906019 (884.7 KiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

peth0     Link encap:Ethernet  HWaddr 00:25:90:08:c3:8a 
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:4278 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3747 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:382965 (373.9 KiB)  TX bytes:906161 (884.9 KiB)
          Memory:fbce0000-fbd00000

ppp0      Link encap:Point-to-Point Protocol 
          inet addr:222.129.49.152  P-t-P:222.129.48.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:3261 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2736 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:249113 (243.2 KiB)  TX bytes:815361 (796.2 KiB)

vif1.0    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff 
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
---------------------------------------------------------

While booting finished, the brctl shows as following:
-----------------------------------------------------------
server log # brctl show
bridge name    bridge id        STP enabled    interfaces
eth0        8000.00259008c38a    no        peth0
----------------------------------------------------------


I tried to change vif type to netfront, eth0 interface is up after booting from gentoo livecd. I don't understand why xen failed to load eth0 using
'type=ioemu'?

Anyone help me?
-- 
Xiaodong Jiang
jxd431@xxxxxxxxx


-- 
Xiaodong Jiang
jxd431@xxxxxxxxx
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>