Image Builder compose fails with error subprocess.CalledProcessError: Command qemu-img convert returned non-zero exit status 1

Solution Verified - Updated -


  • Composing an image for output in .vhd format fails and displays the following error in the compose logs.

    # composer-cli compose logs 8af2084e-54b5-432e-a641-8c313366c856
    8af2084e-54b5-432e-a641-8c313366c856.tar: 43.50 kB
    # tail -n 20 logs/osbuild.log
    Stage: vpc:0-org.osbuild.qemu
    [/usr/lib/tmpfiles.d/journal-nocow.conf:26] Failed to resolve specifier: uninitialized /etc detected, skipping
    All rules containing unresolvable specifiers will be skipped.
    Failed to create file /sys/fs/selinux/checkreqprot: Read-only file system
    qemu-img: error while writing sector 7166984: No space left on device
    Traceback (most recent call last):
      File "/run/osbuild/bin/org.osbuild.qemu", line 187, in <module>
        r = main(args["inputs"], args["tree"], args["options"])
      File "/run/osbuild/bin/org.osbuild.qemu", line 179, in main
        cmd, check=True
      File "/usr/lib64/python3.6/", line 438, in run
        output=stdout, stderr=stderr)
    subprocess.CalledProcessError: Command '['qemu-img', 'convert', '-O', 'vpc', '-o', 'subformat=fixed,force_size', '/run/osbuild/inputs/image/disk.img', '/run/osbuild/tree/disk.vhd']' returned non-zero exit status 1.


  • Red Hat Enterprise Linux (RHEL) 8
  • Image Builder
    • osbuild-35-3.el8.noarch
    • osbuild-composer-33.2-1.el8.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content