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.
One thing to note is that none of our vmware test data captured from real vmware instances seem to contain the <driver type=''> attribute for disks at all:
E.g. in tests/vmx2xmldata/esx-in-the-wild-8.xml
<disk type='file' device='disk'>
<source file='[datastore] directory/RHEL7_6.vmdk'/>
<target dev='sda' bus='scsi'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<disk type='file' device='disk'>
<source file='[datastore] directory/RHEL7_6_1.vmdk'/>
<target dev='sdb' bus='scsi'/>
<transient/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
<disk type='file' device='disk'>
<source file='[5669422e-699d77db-c144-00e0815e303e] block4/block4.vmdk'/>
<target dev='sdc' bus='scsi'/>
<address type='drive' controller='0' bus='0' target='0' unit='2'/>
</disk>
<disk type='file' device='cdrom'>
<source file='[692eb778-2d4937fe] CentOS-4.7.ServerCD-x86_64.iso'/>
<target dev='sda' bus='sata'/>
<readonly/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
There is one instance in 'tests/vmx2xmldata/esx-in-the-wild-2.xml' having <driver cache='writethrough'/> but that's it.
Comment 5Richard W.M. Jones
2021-11-24 10:02:54 UTC
Since QEMU requires the attribute, if libvirt can provide it, then
other applications using libvirt will not have to handle it by themselves.
I'm not sure about it.
Comment 7Richard W.M. Jones
2021-11-24 10:26:02 UTC
That's an argument in favour of providing it. The next issue is whether
libvirt can determine the format. In Peter's example (comment 4) there are
VMDK files (type="vmdk"), and an ISO (probably type="raw"). However the
underlying VMX file doesn't expose the format. It may be possible to guess
based on file extension or the .deviceType field.
Note that virt-v2v will always want to replace this with "raw" because
we actually use either the -flat.vmdk file (really a raw file) or VDDK
(exposes raw blocks), so having libvirt provide the true type doesn't really
help us.