Uploaded image for project: 'Migration Toolkit for Virtualization'
  1. Migration Toolkit for Virtualization
  2. MTV-2677

Missing important warning for Preserve Static IPs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.9.1
    • 2.8.5, 2.9.0
    • Guest
    • Important

      Description of problem:

      Create a cold migration plan to migrate a shutoff VM with "Preserve Static IPs" on, the plan page is without warning message below, which will cause user migrate a shutoff VM, and the VM will not have static ip settings on the target cluster, especially for win2008 r2/sp2 VMs which need to install additional drivers.

      "Guest information on vNICs is missing, cannot preserve static IPs. Make sure VMware tools are installed and the VM is running."

      Version-Release number of selected component (if applicable):

      MTV 2.8.5 with CNV 4.18.6,
      MTV 2.9.0(forklift-fbc-prod-v418:on-pr-16546d253dda4fc8d8b838f0703040f30a985cf0) with CNV 4.18.7

      How reproducible:

      Always

      Steps to Reproduce:

      1) Try to create a migration plan to migrate a shutoff VM: mtv-func-win2008r2-test or mtv-func-WIN2019-test from vCenter7, VM Network, Mgmt Network are mapping to NAD bridge networks, set the "Preserve Static IPs": on

      2) The plan for VM: mtv-runc-win2018r2-test is without warning

      3) The plan for VM: mtv-func-WIN2019-test is with warning for VM name, but without the warning for static ip:

      "Guest information on vNICs is missing, cannot preserve static IPs. Make sure VMware tools are installed and the VM is running."

      4) Check the conversion pod log for migrating VM: mtv-func-win2019-test, the virt-v2v command line without ip address/ gateway/ dns settings, which will cause the target VM without static IPs, more details in attached file: cold-2019-staticip-vm-1034-ftl88-virt-v2v.log

       Check the plan is executed successfully, login to VM check the static ip settings are not existed

      Building command:virt-v2v[-v -x -o kubevirt -os /var/tmp/v2v -on mtv-func-win2019-test -i libvirt -ic vpx://administrator%40vsphere.local@10.**/data/host/10.**?no_verify=1 -ip /etc/secret/secretKey --root first -it vddk -io vddk-libdir=/opt/vmware-vix-disklib-distrib -io vddk-thumbprint=9B:33:C8:10:11:0B:DA:66:9B:9B:E7:0D:CB:E9:8D:A5:A6:DB:E5:93 -- mtv-func-WIN2019-test]Building command:/usr/local/bin/virt-v2v-monitor[]virt-v2v monitoring: Setting up prometheus endpoint :2112/metrics

      5) On newer version, check the conversion pod for migrating VM: mtv-runc-win2018r2-test is with ip address/gateway/ dns settings, but the driver is not correct, more details in pod log:[ cold-2008r2-test-vm-1350-t2pk4-virt-v2v.log|cold-2008r2-test-vm-1350-t2pk4-virt-v2v.log] , login to VM on target cluster, check the driver is not correct, no network adapter is detected, thus no static ip settings

      Actual results:

      Step2: The plan is without the warning for static ip, user start the plan without power on VM
      Step5: The target VM is without static IP settings

      Expected results:

      Step2: The plan is with the warning for static ip, which need the VM is running, reminder the user to power on the VM on source provider
      Step5: The target VM is with correct driver and with static IP settings

        1. 1.png
          50 kB
          Ameen Barakat
        2. 2.png
          31 kB
          Ameen Barakat
        3. 3.png
          85 kB
          Ameen Barakat
        4. cold-2008r2-test-vm-1350-t2pk4-virt-v2v.log
          6.05 MB
          Chenli Hu
        5. cold-2019-staticip-vm-1034-ftl88-virt-v2v.log
          6.36 MB
          Chenli Hu
        6. image-2025-06-06-16-49-34-005.png
          42 kB
          Chenli Hu
        7. image-2025-06-06-16-50-06-520.png
          41 kB
          Chenli Hu
        8. image-2025-06-11-16-17-30-340.png
          29 kB
          Chenli Hu
        9. image-2025-06-11-16-17-55-034.png
          32 kB
          Chenli Hu
        10. image-2025-06-11-17-59-59-832.png
          49 kB
          Chenli Hu
        11. image-2025-06-11-18-10-47-596.png
          12 kB
          Chenli Hu
        12. image-2025-06-11-18-13-09-056.png
          73 kB
          Chenli Hu

              rh-ee-ehazan Elad Hazan
              chhu@redhat.com Chenli Hu
              Ameen Barakat Ameen Barakat
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: