[Pkg-libvirt-maintainers] Bug#773058: virt-clone fails to recognise existing file (--preserve-data) as qcow2

martin f krafft madduck at debian.org
Sat Dec 13 20:05:15 UTC 2014


Package: virtinst
Version: 1:1.0.1-4
Severity: normal
File: /usr/bin/virt-clone

I have a qcow imae file with a backing file:

  fishbowl:~/.tmp/cdt.latest% sudo qemu-img info /var/lib/libvirt/images/thin_images/green.virt
  image: /var/lib/libvirt/images/thin_images/green.virt
  file format: qcow2
  virtual size: 4.0G (4294967296 bytes)
  disk size: 196K
  cluster_size: 65536
  backing file: /dev/fishbowl/virt-BASE.virt
  Format specific information:
      compat: 1.1
      lazy refcounts: false

And I am trying to clone a host and configure this qcow2 image as
storage, but virt-clone configures it "raw":

  fishbowl:~/.tmp/cdt.latest% virt-clone -o BASE.virt -n virt.green --file=/var/lib/libvirt/images/thin_images/green.virt --preserve-data --print-xml | grep -A5 'disk type'
      <disk type="file" device="disk">
        <driver name="qemu" type="raw" cache="none" io="native"/>
        <target dev="vda" bus="virtio"/>
        <address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x0"/>
        <source file="/var/lib/libvirt/images/thin_images/green.virt"/>
      </disk>

Hence, the new clone fails to boot.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.17-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages virtinst depends on:
ii  python-libvirt     1.2.9-1
ii  python-libxml2     2.9.2+dfsg1-1
ii  python-urlgrabber  3.9.1-4
pn  python2.7:any      <none>
pn  python:any         <none>

Versions of packages virtinst recommends:
pn  qemu         <none>
ii  virt-viewer  1.0-1

virtinst suggests no packages.

-- debconf-show failed


-- 
 .''`.   martin f. krafft <madduck at d.o> @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: digital_signature_gpg.asc
Type: application/pgp-signature
Size: 1107 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20141213/1bf770f8/attachment.sig>


More information about the Pkg-libvirt-maintainers mailing list