Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
osbuild-composer is a tool for building RHEL images on-premise for various cloud platforms. Different platforms support different image formats therefore we use qemu-img to convert a raw image into different formats. Unfortunately, qemu-img in RHEL 9 doesn't support converting into vpc (we need that for Azure), nor vmdk (we need that for VMware). This is currently a blocker for us - we need to ship this functionality to customers in RHEL 9.
We convert images into vpc and vmdk formats without any issues on RHEL 8.
Version-Release number of selected component (if applicable):
qemu-img-6.0.0-10.el9.x86_64
How reproducible:
100%
Step to Reproduce:
qemu-img convert -O vpc Fedora-Cloud-Base-34-1.2.x86_64.raw test.vhd
Actual results:
qemu-img: Could not open 'test.vhd': Driver 'vpc' can only be used for read-only devices
Expected results:
test.vhd file is created and contains the same content as the input file but in a different disk image format
Additional info:
The same reproducer applies also for vmdk.
Right now Fedora CoreOS and RHEL CoreOS use a Fedora-derived userspace to build our images in https://github.com/coreos/coreos-assembler/ but we've definitely talked about using a CS/RHEL userspace in the past, and this would definitely break us too. (Eventually perhaps we'll also unify some tooling between Image Builder and coreos-assembler).
Perhaps we can gate things behind e.g. `env QEMU_IMG_ENABLE_UNSUPPORTED_BACKENDS=1 qemu-img convert -f vmdk ...`?