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.
Bug 2162444 - Enable '--oo compressed' for -o kubevirt
Summary: Enable '--oo compressed' for -o kubevirt
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: virt-v2v
Version: 9.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Xiaodai Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-19 15:27 UTC by Xiaodai Wang
Modified: 2023-05-09 09:00 UTC (History)
6 users (show)

Fixed In Version: virt-v2v-2.2.0-5.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-09 07:45:48 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-145833 0 None None None 2023-03-10 05:56:11 UTC
Red Hat Issue Tracker RHELPLAN-145834 0 None None None 2023-03-10 05:56:08 UTC
Red Hat Product Errata RHBA-2023:2313 0 None None None 2023-05-09 07:45:53 UTC

Description Xiaodai Wang 2023-01-19 15:27:34 UTC
Description of problem:
Enable '--oo compressed' for -o kubevirt

Version-Release number of selected component (if applicable):
virt-v2v-2.2.0-1.el9.x86_64

How reproducible:
100%

Steps to Reproduce:
# virt-v2v -i disk /var/lib/libvirt/images/server.qcow2 -o kubevirt -of qcow2 -os /var/tmp/ -oo compressed
[   1.1] Setting up the source: -i disk /var/lib/libvirt/images/server.qcow2
virt-v2v: error: no -oo (output options) are allowed here


Actual results:
as above steps.

Expected results:
'-oo compressed' is a meaningful option, it could be enabled.

Additional info:

Comment 2 Xiaodai Wang 2023-01-28 09:56:35 UTC
Verified with virt-v2v-2.2.0-2.el9.x86_64, the '-oo compressed' works well.

# virt-v2v -i disk /var/lib/libvirt/images/server.qcow2 -o kubevirt -of qcow2 -os /var/tmp/ -oo compressed                                       
[   0.5] Setting up the source: -i disk /var/lib/libvirt/images/server.qcow2            
[   1.6] Opening the source                                                                    
[  15.4] Inspecting the source                                                                                                                                                                 
[  18.0] Checking for sufficient free disk space in the guest
[  18.0] Converting Red Hat Enterprise Linux 8.4 (Ootpa) to run on KVM
virt-v2v: The QEMU Guest Agent will be installed for this guest at first 
boot.
virt-v2v: warning: /files/boot/grub2/device.map/hd0 references unknown 
device "vda".  You may have to fix this entry manually after conversion.
virt-v2v: This guest has virtio drivers installed.
[  65.2] Mapping filesystem data to avoid copying unused and blank areas
[  66.0] Closing the overlay
[  66.3] Assigning disks to buses
[  66.3] Checking if the guest needs BIOS or UEFI to boot
[  66.3] Setting up the destination: -o kubevirt -os /var/tmp/
[  67.4] Copying disk 1/1
█ 100% [****************************************]

# virt-v2v -o kubevirt -oo ?
Output options that can be used with -o kubevirt:

  -oo compressed      Compress the output file (used only with -of qcow2)

Comment 5 tingting zheng 2023-02-01 10:49:47 UTC
Test the bug with:
virt-v2v-2.2.0-3.el9.x86_64

# virt-v2v -i disk /var/lib/libvirt/images/rhel9.qcow2 -o kubevirt -of qcow2 -os /var/tmp/ -oo compressed
[   0.0] Setting up the source: -i disk /var/lib/libvirt/images/rhel9.qcow2
[   1.2] Opening the source
[   7.8] Inspecting the source
[  12.3] Checking for sufficient free disk space in the guest
[  12.3] Converting Red Hat Enterprise Linux 9.1 Beta (Plow) to run on KVM
virt-v2v: The QEMU Guest Agent will be installed for this guest at first 
boot.
[  70.6] Mapping filesystem data to avoid copying unused and blank areas
[  72.0] Closing the overlay
[  72.3] Assigning disks to buses
[  72.3] Checking if the guest needs BIOS or UEFI to boot
[  72.3] Setting up the destination: -o kubevirt -os /var/tmp/
[  73.3] Copying disk 1/1
█ 100% [****************************************]
[  96.7] Creating output metadata
[  96.7] Finishing off

# virt-v2v -o kubevirt -oo ?
Output options that can be used with -o kubevirt:

  -oo compressed      Compress the output file (used only with -of qcow2)

The option '-oo compressed' works well, so move the bug to VERIFIED.

Comment 7 errata-xmlrpc 2023-05-09 07:45:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (virt-v2v bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2313


Note You need to log in before you can comment on or make changes to this bug.