Bug 2166618

Summary: There is virt-v2v: warning: unknown guest operating system: linux rocky 9.1 x86_64 when convert rocky guests to local libvirt
Product: Red Hat Enterprise Linux 9 Reporter: mxie <mxie>
Component: virt-v2vAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Vera <vwu>
Severity: low Docs Contact:
Priority: low    
Version: 9.2CC: chhu, hongzliu, juzhou, lersek, rjones, tyan, tzheng, vwu, xiaodwan
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-v2v-2.2.0-5.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 07:45:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
rocky9-guest-convert-to-libvirt.log none

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