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

Allow user to change guest names in a migration plan

XMLWordPrintable

    • Incidents & Support
    • False
    • Hide

      None

      Show
      None
    • True
    • Migration Toolkit for Virtualization

      Description of problem:

      Allow user to change guest names in a migration plan

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

      MTV 2.7.9

      How reproducible:

      100%
      

      Steps to Reproduce:

      1.Migrate a guest from OVA file on MTV but the migration plan is failed because the guest name contains special character

      exec: /usr/bin/virt-v2v -v -x -o kubevirt -os /var/tmp/v2v -i ova /ova
      2virt-v2v monitoring: Setting up prometheus endpoint :2112/metrics
      3virt-v2v monitoring: Prometheus progress counter registered.
      4info: virt-v2v: virt-v2v 2.5.6rhel=9,release=7.el9_5 (x86_64)
      5info: libvirt version: 10.5.0
      6check_host_free_space: large_tmpdir=/var/tmp free_space=434422837248
      7[ 0.0] Setting up the source: -i ova /ova
      8ova: orig_ova = /ova, top_dir = /ova, ova_type = Directory
      9ova: processing manifest file /ova/esx8.0-win2022-x86_64-efi.mf
      10sha256sum '/ova/esx8.0-win2022-x86_64-efi-2.nvram'
      11sha256sum '/ova/esx8.0-win2022-x86_64-efi-1.vmdk'
      12sha256sum '/ova/esx8.0-win2022-x86_64-efi.ovf'
      13running qemu-nbd:
      14 'qemu-nbd' '-t' '--shared=0' '--discard=unmap' '--pid-file' '/tmp/v2vqemunbd.kfoekn/qemunbd1.pid' '--socket' '/tmp/v2v.Ak0kDo/in0' '-s' '/ova/esx8.0-win2022-x86_64-efi-1.vmdk'
      15virt-v2v: error: -o kubevirt: the guest name must contain only lowercase alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character. Rerun virt-v2v with the '-on name' option to rename it.
      16rm -rf -- '/tmp/v2vqemunbd.kfoekn'
      17Unix.Unix_error(Unix.ENOENT, "unlink", "/tmp/v2v.Ak0kDo/in0")
      18rm -rf -- '/tmp/v2v.Ak0kDo'
      19Error executing v2v command: exit status 1
      20Failed to execute virt-v2v command: exit status 1
      

      Actual results:

      Can't change guest name in a migration plan

      Expected results:

      Allow for user to change guest names in a migration plan

              yzamir@redhat.com Yaacov Zamir
              mxie@redhat.com Ming Xie
              Chenli Hu Chenli Hu
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: