[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-Users] eth0 on hvm is not up on xen 4.0.1
- To: xen-users@xxxxxxxxxxxxxxxxxxx
- 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
- 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=
- List-id: Xen user discussion <xen-users.lists.xensource.com>
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
|