Bug 955318

Summary: Failed to create a vm with virt-manager
Product: [openSUSE] openSUSE Distribution Reporter: Tony Yuan <tyuan>
Component: XenAssignee: Xen Virtualization <xen-bugs>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: aginies, cyliu, jfehlig, tyuan
Version: 13.2Flags: jfehlig: needinfo? (tyuan)
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Tony Yuan 2015-11-17 03:14:28 UTC
When creating a vm with virt-manager a error dialog pups up. It reads:

Unable to complete install: 'POST operation failed: xend_post: error from xen daemon: (xend.err 'Error creating domain: Block device type "qemu" is invalid.')'

Enable debug option. It outputs 

...
<devices>
    <emulator>/usr/lib/xen/bin/qemu-system-i386</emulator>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2"/>
      <source file="/var/lib/libvirt/images/sled12.qcow2"/>
      <target dev="hda" bus="ide"/>
    </disk>
...

opensuse13-2-64:~ # rpm -q xen
xen-4.4.2_06-27.2.x86_64

xen-4.4.3_02-30.1.x86_64 has the same problem too.
Comment 1 James Fehlig 2015-11-17 03:59:08 UTC
(In reply to Tony Yuan from comment #0)
> Unable to complete install: 'POST operation failed: xend_post: error from
> xen daemon: (xend.err 'Error creating domain: Block device type "qemu" is
> invalid.')'

I'm not sure how you are using xend on 13.2. Do you have the xen-xend-tools package installed? Please don't use that.

> <devices>
>     <emulator>/usr/lib/xen/bin/qemu-system-i386</emulator>
>     <disk type="file" device="disk">
>       <driver name="qemu" type="qcow2"/>

The old xend toolstack doesn't support the 'qemu' driver. Remove/disable xend, restart libvirtd, and see of the problem still exists.
Comment 2 Tony Yuan 2015-11-17 05:49:49 UTC
Removed xend. It works!
Comment 3 James Fehlig 2015-11-17 15:59:37 UTC
xend is deprecated and should not be used in anything other than SLE11. We provided a xen-xend-tools package in case there was some unfortunate soul that could not immediately move to xl/libxl. We never intended to support it, and no longer provide the package in SLE12, Leap, and Tumbleweed.
Comment 4 Antoine Ginies 2015-11-17 16:14:57 UTC
We also provide a documentation about difference between XL/XL toolstacks:

https://www.suse.com/documentation/sles-12/book_virt/data/cha_xmtoxl.html