[libvirt] vm start error due to libvirt

2010-11-29 Thread
Hi guys, I met a libvirt error

 

Below is the information I got, 

 

Libvirt version:

[r...@kvm-yxnd-tjhy-8 qemu]# yum list installed |grep kvm

etherboot-roms-kvm.x86_64   5.4.4-13.el5.centos
installed

etherboot-zroms-kvm.x86_64  5.4.4-13.el5.centos
installed

kmod-kvm.x86_64 83-164.el5_5.23
installed

kvm.x86_64  83-164.el5_5.23
installed

kvm-qemu-img.x86_64 83-164.el5_5.23
installed

kvm-tools.x86_6483-164.el5_5.23
installed

[r...@kvm-yxnd-tjhy-8 qemu]# yum list installed |grep libvirt

libvirt.x86_64  0.8.3-1.el5
installed

libvirt-client.x86_64   0.8.3-1.el5
installed

libvirt-debuginfo.x86_640.8.3-1.el5
installed

libvirt-devel.x86_640.8.3-1.el5
installed

libvirt-python.x86_64   0.8.3-1.el5
installed

[r...@kvm-yxnd-tjhy-8 qemu]# yum list installed |grep qemu

kvm-qemu-img.x86_64 83-164.el5_5.23
installed

 

start vm error information , 

 

[r...@kvm-yxnd-tjhy-8 ~]# virsh list --all

 Id Name State

--

  - iotest   shut off

  - yxnd-gs-win32-qq shut off

 

[r...@kvm-yxnd-tjhy-8 ~]# virsh start iotest

error: Failed to start domain iotest

error: internal error Process exited while reading console log output:

 

[r...@kvm-yxnd-tjhy-8 ~]# cat /etc/libvirt/libvirtd.conf |grep log_level

log_level = 1

 

tail /var/log/libvirt/qemu/iotest.log

LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin HOME=/root USER=root
LOGNAME=root QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -S -M rhel5.4.0 -m
2048 -smp 4 -name iotest -uuid ec2bec5e-096b-6d41-238f-378b8cf39ad8 -monitor
unix:/var/lib/libvirt/qemu/iotest.monitor,server,nowait -localtime -boot c
-drive file=/datapool/iotest.qcow2,if=virtio,boot=on,format=qcow2,cache=none
-net nic,macaddr=00:16:36:13:96:18,vlan=0,model=virtio -net tap,fd=17,vlan=0
-net nic,macaddr=00:16:36:7d:cb:c6,vlan=1,model=virtio -net tap,fd=18,vlan=1
-serial pty -parallel none -usb -usbdevice tablet -vnc 0.0.0.0:0 -k en-us
-vga cirrus -balloon virtio

 

 

[r...@kvm-yxnd-tjhy-8 qemu]# cat /etc/libvirt/qemu/iotest.xml 

domain type='kvm'

  nameiotest/name

  uuidec2bec5e-096b-6d41-238f-378b8cf39ad8/uuid

  memory2097152/memory

  currentMemory2097152/currentMemory

  vcpu4/vcpu

  os

type arch='x86_64' machine='rhel5.4.0'hvm/type

boot dev='hd'/

  /os

  features

acpi/

apic/

pae/

  /features

  clock offset='localtime'/

  on_poweroffdestroy/on_poweroff

  on_rebootrestart/on_reboot

  on_crashrestart/on_crash

  devices

emulator/usr/libexec/qemu-kvm/emulator

disk type='file' device='disk'

  driver name='qemu' type='qcow2' cache='none'/

  source file='/datapool/iotest.qcow2'/

  target dev='vda' bus='virtio'/

/disk

interface type='bridge'

  mac address='00:16:36:13:96:18'/

  source bridge='br1'/

  model type='virtio'/

/interface

interface type='bridge'

  mac address='00:16:36:7d:cb:c6'/

  source bridge='br0'/

  model type='virtio'/

/interface

serial type='pty'

  target port='0'/

/serial

console type='pty'

  target type='serial' port='0'/

/console

input type='tablet' bus='usb'/

input type='mouse' bus='ps2'/

graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/

video

  model type='cirrus' vram='9216' heads='1'/

/video

memballoon model='virtio'/

  /devices

/domain

 

 

The error log of /var/log/message:

 

Nov 29 15:23:00 kvm-yxnd-tjhy-8 libvirtd: 15:23:00.775: info :
qemuSecurityDACSetOwnership:40 : Setting DAC user and group on
'/datapool/iotest.qcow2' to '0:0' 

Nov 29 15:23:00 kvm-yxnd-tjhy-8 libvirtd: 15:23:00.797: info :
qemudDispatchSignalEvent:401 : Received unexpected signal 17 

Nov 29 15:23:00 kvm-yxnd-tjhy-8 libvirtd: 15:23:00.798: info :
brProbeVnetHdr:449 : Enabling IFF_VNET_HDR 

Nov 29 15:23:00 kvm-yxnd-tjhy-8 kernel: device vnet0 entered promiscuous
mode

Nov 29 15:23:00 kvm-yxnd-tjhy-8 kernel: device vnet0 entered promiscuous
mode

Nov 29 15:23:00 kvm-yxnd-tjhy-8 kernel: printk: 6 messages suppressed.

Nov 29 15:23:00 kvm-yxnd-tjhy-8 kernel: printk: 6 messages suppressed.

Nov 29 15:23:00 kvm-yxnd-tjhy-8 kernel: type=1700 audit(1291015380.812:157):
dev=vnet0 prom=256 old_prom=0 auid=4294967295 ses=4294967295

Nov 29 15:23:00 kvm-yxnd-tjhy-8 kernel: type=1700 audit(1291015380.812:157):
dev=vnet0 prom=256 old_prom=0 auid=4294967295 ses=4294967295

Nov 29 15:23:00 kvm-yxnd-tjhy-8 kernel: br1: port 2(vnet0) entering learning
state

Nov 29 15:23:00 kvm-yxnd-tjhy-8 kernel: br1: port 2(vnet0) entering learning
state

Nov 29 15:23:00 kvm-yxnd-tjhy-8 libvirtd: 15:23:00.814: info :
brProbeVnetHdr:449 : Enabling IFF_VNET_HDR 

Nov 29 15:23:00 kvm-yxnd-tjhy-8 kernel: device vnet1 entered promiscuous
mode

Nov 29 15:23:00 kvm-yxnd-tjhy-8 kernel: device vnet1 

[libvirt] About the qemu networking

2010-10-12 Thread
Dear libvirt team,

 

I am testing the qemu with libvit networking, and I have a question.

 

First, I connected the switch and server via Ethernet, the link
encapsulation is 802.1q (eth1 is trunk link)

 

When I use sub-interface eth1.12 for vlan12,br12 bridged to eth1.12, and
then using tap0 ..tapN, the qemu guest networking works fine.

 

But when I use br1 bridged to eth1 without sub-interface, also use tap0…
tapn , it does not work. 

 

 

The topology as below:

 

  This works fine This doest not
work

 

Eth1 (trunk)   eth1(trunk)

|   | 

|--

-   |  

   |   |br1

   Eth1.12  eth1.13  … |

  |   |  ___

 br12 br13   |   |

  |   |  |   …   |

   |   | tap0   tapn

   -  --

   |  |   |   ... |

   |  |   ||

Tap0 …   tapn  tapn+1tapm

 

 

 

Is the second solution works ? if works? What should I do to ?

 

Thanks very much, I am look forward to hear from you. 

 

Best Regards

 

 

杨树林

技术保障中心 网络工程师

snda

上海盛大网络发展有限公司

上海浦东新区碧波路690号1号楼

邮编:201203

电话:021-50504740-896570

传真:021-50504740-895746

email:yangshu...@shandagames.com

网址:http://www.snda.com

 

image001.gif--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list