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

Migration hanging due to error: virt-v2v: error: -i libvirt: expecting a libvirt guest name on the command line

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • 2.7.2
    • 2.7.1
    • None
    • None
    • False
    • None
    • False
    • Important

      Attempted migration of VMware VM with non-compliant Kubernetes name due to capital letter in VM name epassaroMigrate-2.

      In the Openshift console a warning is shown saying that the VM would be renamed:

       

      Warning
      Target VM name does not comply with DNS1123 RFC, will be automatically changed.
      To troubleshoot, view the plan details page and check the Forklift controller pod logs. 

       

       

      But after starting the migration plan, after some time it hangs since the migration pod is in Error state:

      $ oc logs -n openshift-mtv epassaro-migration-folder-vm-56858-qm2fj
      Defaulted container "virt-v2v" out of: virt-v2v, vddk-side-car (init)
      exec: /usr/bin/virt-v2v -v -x -o kubevirt -os /var/tmp/v2v -i libvirt -ic vpx://administrator%40ecosystem.content.vsphere@eco-vcenter-server.lab.eng.tlv2.redhat.com/Eco-Datacenter/host/Eco-Cluster/10.46.29.136 -ip /etc/secret/secretKey --root first -it vddk -io vddk-libdir=/opt/vmware-vix-disklib-distrib -io vddk-thumbprint=00:9E:D2:C0:ED:19:CC:C5:C8:CD:E2:F2:4E:CC:88:AB:32:77:8F:DE -- epassaroMigrate-2 -on epassaromigrate-2
      virt-v2v monitoring: Setting up prometheus endpoint :2112/metrics
      virt-v2v monitoring: Prometheus progress counter registered.
      virt-v2v: virt-v2v 2.4.0rhel=9,release=4.el9_4 (x86_64)
      libvirt version: 10.0.0
      check_host_free_space: large_tmpdir=/var/tmp free_space=35811217408
      [   0.0] Setting up the source: -i libvirt -ic vpx://administrator%40ecosystem.content.vsphere@eco-vcenter-server.lab.eng.tlv2.redhat.com/Eco-Datacenter/host/Eco-Cluster/10.46.29.136 -it vddk epassaroMigrate-2 -on epassaromigrate-2
      virt-v2v: error: -i libvirt: expecting a libvirt guest name on the command line
      rm -rf -- '/tmp/v2v.s9pzjd'
      Error executing v2v command: exit status 1
      Failed to execute virt-v2v command: exit status 1
       

        1. cold-1555-vm-43-j94rq-virt-v2v.log
          3.32 MB
          Chenli Hu
        2. image-2024-10-10-11-42-41-251.png
          63 kB
          Chenli Hu
        3. image-2024-10-11-15-00-04-123.png
          57 kB
          Chenli Hu
        4. image-2024-10-11-15-09-47-972.png
          175 kB
          Chenli Hu

              mnecas@redhat.com Martin Necas
              epassaro@redhat.com Elsa Passaro
              Chenli Hu Chenli Hu
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: