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 2166618 - There is virt-v2v: warning: unknown guest operating system: linux rocky 9.1 x86_64 when convert rocky guests to local libvirt
Summary: There is virt-v2v: warning: unknown guest operating system: linux rocky 9.1 x...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: virt-v2v
Version: 9.2
Hardware: x86_64
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Vera
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-02 11:02 UTC by mxie@redhat.com
Modified: 2023-05-09 09:00 UTC (History)
9 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)
rocky9-guest-convert-to-libvirt.log (2.77 MB, text/plain)
2023-02-02 11:02 UTC, mxie@redhat.com
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-147434 0 None None None 2023-02-08 09:58:44 UTC
Red Hat Issue Tracker RHELPLAN-147435 0 None None None 2023-02-02 11:04:11 UTC
Red Hat Product Errata RHBA-2023:2313 0 None None None 2023-05-09 07:45:53 UTC

Description mxie@redhat.com 2023-02-02 11:02:33 UTC
Created attachment 1941767 [details]
rocky9-guest-convert-to-libvirt.log

Description of problem:
There is virt-v2v: warning: unknown guest operating system: linux rocky 9.1 x86_64 when convert rocky guests to local libvirt 
 
Version-Release number of selected component (if applicable):
virt-v2v-2.2.0-3.el9.x86_64
libosinfo-1.10.0-1.el9.x86_64
osinfo-db-20221130-1.el9.noarch
nbdkit-server-1.32.5-3.el9.x86_64
libvirt-libs-9.0.0-2.el9.x86_64
qemu-img-7.2.0-5.el9.x86_64
libguestfs-1.48.4-4.el9.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Convert Rocky guests from VMware to local libvirt by v2v
# virt-v2v -ic esx://root.212.36/?no_verify=1  -it vddk -io vddk-libdir=/home/vddk8.0.0 -io vddk-thumbprint=11:97:52:B3:B6:5D:C4:DD:05:D9:D0:43:31:0E:98:CB:73:6E:D6:45  -ip /home/esxpwd rocky9
[   0.2] Setting up the source: -i libvirt -ic esx://root.212.36/?no_verify=1 -it vddk rocky9
[   1.6] Opening the source
[   6.9] Inspecting the source
[  13.6] Checking for sufficient free disk space in the guest
[  13.6] Converting Rocky Linux 9.1 (Blue Onyx) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 129.0] Mapping filesystem data to avoid copying unused and blank areas
[ 130.0] Closing the overlay
[ 130.3] Assigning disks to buses
[ 130.3] Checking if the guest needs BIOS or UEFI to boot
virt-v2v: This guest requires UEFI on the target to boot.
[ 130.3] Setting up the destination: -o libvirt
[ 139.3] Copying disk 1/1
█ 100% [****************************************]
[ 267.8] Creating output metadata
virt-v2v: warning: unknown guest operating system: linux rocky 9.1 x86_64 
(Rocky Linux 9.1 (Blue Onyx))
[ 267.9] Finishing off

# virt-v2v -ic esx://root.212.36/?no_verify=1  -it vddk -io vddk-libdir=/home/vddk8.0.0 -io vddk-thumbprint=11:97:52:B3:B6:5D:C4:DD:05:D9:D0:43:31:0E:98:CB:73:6E:D6:45  -ip /home/esxpwd Rocky8
[   0.0] Setting up the source: -i libvirt -ic esx://root.212.36/?no_verify=1 -it vddk Rocky8
[   1.3] Opening the source
[   6.4] Inspecting the source
[  24.9] Checking for sufficient free disk space in the guest
[  24.9] Converting Rocky Linux 8.7 (Green Obsidian) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 176.1] Mapping filesystem data to avoid copying unused and blank areas
[ 177.2] Closing the overlay
[ 177.5] Assigning disks to buses
[ 177.5] Checking if the guest needs BIOS or UEFI to boot
virt-v2v: This guest requires UEFI on the target to boot.
[ 177.5] Setting up the destination: -o libvirt
[ 179.0] Copying disk 1/1
█ 100% [****************************************]
[ 376.2] Creating output metadata
virt-v2v: warning: unknown guest operating system: linux rocky 8.7 x86_64 
(Rocky Linux 8.7 (Green Obsidian))
[ 376.3] Finishing off

Actual results:
As above description

Expected results:
Hide virt-v2v warning: unknown guest operating system: linux rocky 9.1 x86_64 when convert rocky guests to local libvirt 

Additional info:

Comment 1 mxie@redhat.com 2023-02-02 11:03:57 UTC
By the way, there is no virt-v2v warning: unknown guest operating system: linux rocky 9.1 x86_64 when convert rocky guests to rhv by v2v
# virt-v2v -ic esx://root.212.36/?no_verify=1  -it vddk -io vddk-libdir=/home/vddk8.0.0 -io vddk-thumbprint=11:97:52:B3:B6:5D:C4:DD:05:D9:D0:43:31:0E:98:CB:73:6E:D6:45  -ip /home/esxpwd rocky9  -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api  -op /home/rhvpasswd -os nfs_data
 
[   0.1] Setting up the source: -i libvirt -ic esx://root.212.36/?no_verify=1 -it vddk rocky9
[   1.3] Opening the source
[   6.7] Inspecting the source
[  13.4] Checking for sufficient free disk space in the guest
[  13.4] Converting Rocky Linux 9.1 (Blue Onyx) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 123.4] Mapping filesystem data to avoid copying unused and blank areas
[ 124.4] Closing the overlay
[ 124.7] Assigning disks to buses
[ 124.7] Checking if the guest needs BIOS or UEFI to boot
virt-v2v: This guest requires UEFI on the target to boot.
[ 124.7] Setting up the destination: -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -os nfs_data
[ 147.1] Copying disk 1/1
█ 100% [****************************************]
[ 345.5] Creating output metadata
[ 367.3] Finishing off

Comment 3 Vera 2023-02-08 09:57:07 UTC
Tried with the versions:
libguestfs-1.48.4-4.el9.x86_64
osinfo-db-20221130-1.el9.noarch
libosinfo-1.10.0-1.el9.x86_64
libvirt-libs-9.0.0-3.el9.x86_64
nbdkit-server-1.32.5-4.el9.x86_64
qemu-img-7.2.0-7.el9.x86_64
virt-v2v-2.2.0-5.el9.x86_64

Steps:
1. Convert Rocky guests from VMware to local libvirt by v2v

# virt-v2v -ic esx://root.212.36/?no_verify=1  -it vddk -io vddk-libdir=/home/vddk8.0.0 -io vddk-thumbprint=11:97:52:B3:B6:5D:C4:DD:05:D9:D0:43:31:0E:98:CB:73:6E:D6:45  -ip /v2v-ops/esx_data_pwd rocky9
[   0.2] Setting up the source: -i libvirt -ic esx://root.212.36/?no_verify=1 -it vddk rocky9
[   1.5] Opening the source
[  10.6] Inspecting the source
[  19.2] Checking for sufficient free disk space in the guest
[  19.2] Converting Rocky Linux 9.1 (Blue Onyx) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 171.9] Mapping filesystem data to avoid copying unused and blank areas
[ 172.9] Closing the overlay
[ 173.2] Assigning disks to buses
[ 173.2] Checking if the guest needs BIOS or UEFI to boot
virt-v2v: This guest requires UEFI on the target to boot.
[ 173.2] Setting up the destination: -o libvirt
[ 174.7] Copying disk 1/1
█ 100% [****************************************]
[ 303.2] Creating output metadata
[ 303.3] Finishing off

# virt-v2v -ic esx://root.212.36/?no_verify=1  -it vddk -io vddk-libdir=/home/vddk8.0.0 -io vddk-thumbprint=11:97:52:B3:B6:5D:C4:DD:05:D9:D0:43:31:0E:98:CB:73:6E:D6:45  -ip /v2v-ops/esx_data_pwd Rocky8
[   0.0] Setting up the source: -i libvirt -ic esx://root.212.36/?no_verify=1 -it vddk Rocky8
[   1.3] Opening the source
[   7.0] Inspecting the source
[  25.6] Checking for sufficient free disk space in the guest
[  25.6] Converting Rocky Linux 8.7 (Green Obsidian) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 177.4] Mapping filesystem data to avoid copying unused and blank areas
[ 178.5] Closing the overlay
[ 179.6] Assigning disks to buses
[ 179.6] Checking if the guest needs BIOS or UEFI to boot
virt-v2v: This guest requires UEFI on the target to boot.
[ 179.6] Setting up the destination: -o libvirt
[ 181.1] Copying disk 1/1
█ 100% [****************************************]
[ 333.0] Creating output metadata
[ 333.1] Finishing off

2. Start the guests and check

The rocky9/Rocky8 guests can be running and start into OS successfully.

Marking as Verified:Tested.

Comment 6 Vera 2023-02-15 07:27:37 UTC
Marking as Verified.

Comment 8 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.