Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-747

V2V should can generate genid in guest libvirtxml after vmx conversion if VMware guest only has vm.genidX in vmx file

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • rhel-9.0.0
    • virt-v2v
    • None
    • Moderate
    • rhel-virt-tools
    • ssg_virtualization
    • 5
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      V2V should can generate genid in guest libvirtxml after vmx conversion if VMware guest only has vm.genidX in vmx file

      Version-Release number of selected component (if applicable):
      virt-v2v-1.45.3-3.el9.x86_64
      libguestfs-1.46.0-1.el9.x86_64
      guestfs-tools-1.46.1-4.el9.1.x86_64
      libvirt-libs-7.8.0-1.el9.x86_64
      qemu-img-6.1.0-5.el9.x86_64
      nbdkit-1.28.0-1.el9.x86_64

      How reproducible:
      100%

      Steps to Reproduce:
      1.Create win11 x64 guests on VMware hosts, check the genid info in vmx file of some guests, found only vm.genidX is existing in vmx file, which is definitely created by VMware.

      1. cat esx7.0-win11-x86_64/esx7.0-win11-x86_64.vmx |grep genid
        vm.genidX = "4860768397905562413"

      OR

      1. cat esx6.7-win11-x86_64/esx6.7-win11-x86_64.vmx |grep genid
        vm.genidX = "4860768397905562413"

      2.Prepare a windows guest which have both vm.genid and vm.genidX in vmx file, then clone the windows guest on vsphere web client, but found only vm.genidX is existing in vmx file after cloning, which is definitely created by VMware.

      1. cat esx7.0-win2022-x86_64/esx7.0-win2022-x86_64.vmx |grep genid
        vm.genid = "5935990624368300836"
        vm.genidX = "-81757490672842304"

      After cloning the windows guest:

      1. cat datastore1/esx7.0-win2022-clone/esx7.0-win2022-clone.vmx |grep genid
        vm.genidX = "-81757490672842304"

      3.Convert above guests, v2v can't generate genid in guest libvirtxml after conversion
      3.1 # virt-v2v -i vmx -it ssh ssh://root@10.73.199.217/vmfs/volumes/esx7.0-matrix/esx7.0-win11-x86_64/esx7.0-win11-x86_64.vmx -o local -os /home
      3.2 # cat /home/esx7.0-win11-x86_64.xml |grep genid
      nothing

      3.3# virt-v2v -i vmx -it ssh ssh://root@10.73.199.217/vmfs/volumes/datastore1/esx7.0-win2022-clone/esx7.0-win2022-clone.vmx -o local -os /home
      3.4 # cat /home/esx7.0-win2022-clone.xml |grep genid
      nothing

      Actual results:
      V2V can't generate genid in guest libvirtxml after vmx conversion if VMware guest only has vm.genidX in vmx file

      Expected results:
      As above description

      Additional info:
      As bug1598348 got fixed, virt-v2v can generate genid in guest xml after vpx conversion if only vm.genidX in guest vmx

              virt-maint virt-maint
              mxie@redhat.com Ming Xie
              virt-maint virt-maint
              virt-bugs virt-bugs
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: