Package: qemu-utils
Version: 1:2.1+dfsg-12+deb8u1
Severity: important

Dear Maintainer,

I was testing writing a full disk image to disk with qemu-utils within a Docker
container built from Debian Jessie with the qemu-utils package installed by
running apt-get in the Dockerfile. The disk is configured as an Intel RSTe RAID
1 (imsm metadata) device built from /dev/sda and /dev/sdb with mdadm. The RAID
volume exists at /dev/md126.

The exact command I ran was this:

qemu-img convert -t directsync -O host_device my_image /dev/md126

The image fails to write to disk with the following error:

qemu-img: error writing zeroes at sector 0: Invalid argument

I was expecting a successful write to disk. This succeeded previously when we
based the container off of a version of Ubuntu which shipped qemu-img version
2.0.0.

I found a similar bug in RHEL 7 that seems to have been fixed by upgrading
qemu-img to the latest version:

https://bugzilla.redhat.com/show_bug.cgi?id=1196688

The reporter of that bug suggested that a particular commit in qemu fixed the
issue.

The error does not occur when writing to a single disk (like /dev/sda) without
RAID configured. I believe that upgrading qemu-utils so that the commit
mentioned above is included will fix the issue.

Thank you for your time.

-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.0.7-coreos-r2 (SMP w/12 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages qemu-utils depends on:
ii  libaio1            0.3.110-1
ii  libc6              2.19-18
ii  libcurl3-gnutls    7.38.0-4+deb8u2
ii  libgcc1            1:4.9.2-10
ii  libglib2.0-0       2.42.1-1
ii  libgnutls-deb0-28  3.3.8-6+deb8u2
ii  libiscsi2          1.12.0-2
ii  librados2          0.80.7-2
ii  librbd1            0.80.7-2
ii  libssh2-1          1.4.3-4.1
ii  libuuid1           2.25.2-6
ii  zlib1g             1:1.2.8.dfsg-2+b1

Versions of packages qemu-utils recommends:
pn  sharutils  <none>

Versions of packages qemu-utils suggests:
pn  debootstrap  <none>

-- no debconf information

Reply via email to