On 02/13/2014 01:40 PM, Xu (Simon) Chen wrote: > I recently ran into the problem of not being able to create VMs. > Basically nova-compute is able to generate the XML file, but not able to > call virDomainCreateWithFlags(), which raises libvirtError saying > "libvirtError: An error occurred, but the cause is unknown" -- how > fantastic.. > > I am running debian wheezy, libvirt 1.1.4, qemu-kvm 1.6.0. > > This started to happen after I perform a code upgrade of openstack. The > old VMs are fine, and can be hard rebooted. But new VMs always get the > libvirt error. I compared the XML of old and new VMs, and can't really > see any difference. > > I attached an example of the XML having problems below. if you run virsh define to that xml, does it work?
> > -Simon > > <domain type='kvm'>____ > > <name>instance-00001ac7</name>____ > > <uuid>878c4ee5-15fd-4572-964a-8887a7a1d16f</uuid>____ > > <memory unit='KiB'>8388608</memory>____ > > <currentMemory unit='KiB'>8388608</currentMemory>____ > > <vcpu placement='static'>4</vcpu>____ > > <os>____ > > <type arch='x86_64' machine='pc-i440fx-1.6'>hvm</type>____ > > <boot dev='hd'/>____ > > </os>____ > > <features>____ > > <acpi/>____ > > <apic/>____ > > </features>____ > > <cpu mode='host-model'>____ > > <model fallback='allow'/>____ > > </cpu>____ > > <clock offset='utc'>____ > > <timer name='pit' tickpolicy='delay'/>____ > > <timer name='rtc' tickpolicy='catchup'/>____ > > </clock>____ > > <on_poweroff>destroy</on_poweroff>____ > > <on_reboot>restart</on_reboot>____ > > <on_crash>destroy</on_crash>____ > > <devices>____ > > <emulator>/usr/bin/kvm</emulator>____ > > <disk type='network' device='disk'>____ > > <driver name='qemu' type='raw' cache='none'/>____ > > <auth username='volumes'>____ > > <secret type='ceph' > uuid='ac65b065-1655-46ed-b780-5e37582cb025'/>____ > > </auth>____ > > <source protocol='rbd' > name='volumes/volume-d12c624a-c06a-4c83-a9ac-28665555bb41'>____ > > <host name='10.20.130.1' port='6789'/>____ > > <host name='10.20.130.8' port='6789'/>____ > > <host name='10.20.131.7' port='6789'/>____ > > </source>____ > > <target dev='vda' bus='virtio'/>____ > > <serial>d12c624a-c06a-4c83-a9ac-28665555bb41</serial>____ > > <address type='pci' domain='0x0000' bus='0x00' slot='0x05' > function='0x0'/>____ > > </disk>____ > > <controller type='usb' index='0'>____ > > <address type='pci' domain='0x0000' bus='0x00' slot='0x01' > function='0x2'/>____ > > </controller>____ > > <controller type='pci' index='0' model='pci-root'/>____ > > <controller type='virtio-serial' index='0'>____ > > <address type='pci' domain='0x0000' bus='0x00' slot='0x04' > function='0x0'/>____ > > </controller>____ > > <interface type='bridge'>____ > > <mac address='fa:16:3e:18:7b:92'/>____ > > <source bridge='qbr250a2f47-f5'/>____ > > <target dev='tap250a2f47-f5'/>____ > > <model type='virtio'/>____ > > <filterref filter='nova-instance-instance-00001ac7-fa163e187b92'/>____ > > <address type='pci' domain='0x0000' bus='0x00' slot='0x03' > function='0x0'/>____ > > </interface>____ > > <serial type='file'>____ > > <source > path='/opt/stack/data/nova/instances/878c4ee5-15fd-4572-964a-8887a7a1d16f/console.log'/>____ > > <target port='0'/>____ > > </serial>____ > > <serial type='pty'>____ > > <target port='1'/>____ > > </serial>____ > > <console type='file'>____ > > <source > path='/opt/stack/data/nova/instances/878c4ee5-15fd-4572-964a-8887a7a1d16f/console.log'/>____ > > <target type='serial' port='0'/>____ > > </console>____ > > <channel type='pty'>____ > > <target type='virtio' name='com.redhat.spice.0'/>____ > > <address type='virtio-serial' controller='0' bus='0' port='1'/>____ > > </channel>____ > > <input type='mouse' bus='ps2'/>____ > > <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' > keymap='en-us'>____ > > <listen type='address' address='0.0.0.0'/>____ > > </graphics>____ > > <graphics type='spice' autoport='yes' listen='0.0.0.0' > keymap='en-us'>____ > > <listen type='address' address='0.0.0.0'/>____ > > </graphics>____ > > <video>____ > > <model type='qxl' ram='65536' vram='65536' heads='1'/>____ > > <address type='pci' domain='0x0000' bus='0x00' slot='0x02' > function='0x0'/>____ > > </video>____ > > <memballoon model='virtio'>____ > > <address type='pci' domain='0x0000' bus='0x00' slot='0x06' > function='0x0'/>____ > > </memballoon>____ > > </devices>____ > > </domain> > > > > _______________________________________________ > Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > Post to : [email protected] > Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > -- 1AE0 322E B8F7 4717 BDEA BF1D 44BB 1BA7 9F6C 6333 _______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : [email protected] Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
