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

Re: [libvirt] Segfault in virDomainObjListSearchName when listing domains (qemu backend)



Am Freitag, 25. Juni 2010 schrieb Daniel P. Berrange:
> On Fri, Jun 25, 2010 at 05:34:56PM +0200, Guido Winkelmann wrote:
[...]
> >
> > This is with the newest version from git, pulled about 30 minutes ago.
> >
> > This happens when I try to start up one of the defined domains using
> > either libvirt or virsh and then try to list all the defined domains in
> > virsh using list --all.
> >
> > The attempt to start one of the domains already fails with the following
> > output:
> > =====================
> > virsh # start testserver-a
> > error: Failed to start domain testserver-a
> > error: internal error process exited while connecting to monitor:
> 
> Can you provide the XML config for this guest, and the associated
> /var/log/libvirt/qemu/testserver-a.log file

Sure.

This is the guest's XML config:
=====================
<domain type='kvm'>
  <name>testserver-a</name>
  <uuid>ce57ebe0-ea37-0353-bbe0-e23dbbd17708</uuid>
  <description>libvirt C-API Test</description>
  <memory>262144</memory>
  <currentMemory>262144</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc-0.13'>hvm</type>
    <boot dev='hd'/>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <source file='/data/testserver-a-system.img'/>
      <target dev='sdb' bus='scsi'/>
      <address type='drive' controller='0' bus='0' unit='1'/>
    </disk>
    <disk type='file' device='disk'>
      <source file='/data/testserver-a-data1.img'/>
      <target dev='vdb' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' 
function='0x0'/>
    </disk>
    <disk type='file' device='disk'>
      <source file='/data/testserver-a-data2.img'/>
      <target dev='vdc' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' 
function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <source file='/data/gentoo-install-amd64-minimal-20100408.iso'/>
      <target dev='hda' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    </disk>
    <disk type='file' device='floppy'>
      <source file='/data/testserver-a_configfloppy.img'/>
      <target dev='fd0' bus='fdc'/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    </disk>
    <controller type='scsi' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' 
function='0x0'/>
    </controller>
    <controller type='fdc' index='0'/>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 
function='0x1'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:84:6d:69'/>
      <source bridge='virbr1'/>
      <model type='e1000'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' 
function='0x0'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' keymap='de' 
passwd='blabla'/>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' 
function='0x0'/>
    </video>
  </devices>
</domain>
=====================

(as found in /usr/local/etc/libvirt/qemu/)

and here are the last few lines from the logfile 
(/usr/local/var/log/libvirt/qemu/testserver-a.log):

=====================
LC_ALL=C 
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin 
HOME=/root USER=root LOGNAME=root QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -S -M 
pc-0.13 -enable-kvm -m 256 -smp 1,sockets=1,cores=1,threads=1 -name 
testserver-a -uuid ce57ebe0-ea37-0353-bbe0-e23dbbd17708 -nodefaults -chardev 
socket,id=monitor,path=/usr/local/var/lib/libvirt/qemu/testserver-
a.monitor,server,nowait -mon chardev=monitor,mode=readline -rtc base=utc -no-
acpi -boot c -device lsi,id=scsi0,bus=pci.0,addr=0x7 -drive 
file=/data/testserver-a-system.img,if=none,id=drive-scsi0-0-1,boot=on -device 
scsi-disk,bus=scsi0.0,scsi-id=1,drive=drive-scsi0-0-1,id=scsi0-0-1 -drive 
file=/data/testserver-a-data1.img,if=none,id=drive-virtio-disk1 -device 
virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk1,id=virtio-disk1 -
drive file=/data/testserver-a-data2.img,if=none,id=drive-virtio-disk2 -device 
virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk2,id=virtio-disk2 -
drive file=/data/gentoo-install-amd64-
minimal-20100408.iso,if=none,media=cdrom,id=drive-ide0-0-0,readonly=on -device 
ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive 
file=/data/testserver-a_configfloppy.img,if=none,id=drive-fdc0-0-0 -global 
isa-fdc.driveA=drive-fdc0-0-0 -device 
e1000,vlan=0,id=net0,mac=52:54:00:84:6d:69,bus=pci.0,addr=0x6 -net 
tap,fd=22,vlan=0,name=hostnet0 -usb -vnc 127.0.0.1:1,password -k de -vga 
cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
17:21:14.760: debug : virCgroupNew:542 : New group /libvirt/qemu/testserver-a
17:21:14.760: debug : virCgroupDetect:232 : Detected mount/mapping 0:cpu at 
/mnt/cgroups/cpu in /sysdefault
17:21:14.760: debug : virCgroupDetect:232 : Detected mount/mapping 1:cpuacct 
at /mnt/cgroups/cpuacct in /sysdefault
17:21:14.760: debug : virCgroupDetect:232 : Detected mount/mapping 3:memory at 
/mnt/cgroups/memory in /sysdefault
17:21:14.760: debug : virCgroupDetect:232 : Detected mount/mapping 4:devices 
at /mnt/cgroups/devices in /sysdefault
17:21:14.760: debug : virCgroupMakeGroup:484 : Make group 
/libvirt/qemu/testserver-a
17:21:14.760: debug : virCgroupMakeGroup:496 : Make controller 
/mnt/cgroups/cpu/sysdefault/libvirt/qemu/testserver-a/
17:21:14.760: debug : virCgroupMakeGroup:496 : Make controller 
/mnt/cgroups/cpuacct/sysdefault/libvirt/qemu/testserver-a/
17:21:14.760: debug : virCgroupMakeGroup:496 : Make controller 
/mnt/cgroups/memory/sysdefault/libvirt/qemu/testserver-a/
17:21:14.760: debug : virCgroupMakeGroup:496 : Make controller 
/mnt/cgroups/devices/sysdefault/libvirt/qemu/testserver-a/
17:21:14.760: debug : virCgroupSetValueStr:277 : Set value 
'/mnt/cgroups/cpu/sysdefault/libvirt/qemu/testserver-a/tasks' to '1761'
17:21:14.770: debug : virCgroupSetValueStr:277 : Set value 
'/mnt/cgroups/cpuacct/sysdefault/libvirt/qemu/testserver-a/tasks' to '1761'
17:21:14.778: debug : virCgroupSetValueStr:277 : Set value 
'/mnt/cgroups/memory/sysdefault/libvirt/qemu/testserver-a/tasks' to '1761'
17:21:14.789: debug : virCgroupSetValueStr:277 : Set value 
'/mnt/cgroups/devices/sysdefault/libvirt/qemu/testserver-a/tasks' to '1761'
17:21:14.802: debug : qemudInitCpuAffinity:2227 : Setting CPU affinity
17:21:14.803: debug : qemuSecurityDACSetProcessLabel:546 : Dropping privileges 
of VM to 0:0
Supported machines are:
pc         Standard PC (alias of pc-0.12)
pc-0.12    Standard PC (default)
pc-0.11    Standard PC, qemu 0.11
pc-0.10    Standard PC, qemu 0.10
isapc      ISA-only PC
=====================

	Guido


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