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

Virt-v2v can't convert guest via vmx+ssh if guest name contains space

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-9.4
    • rhel-9.3.0
    • virt-v2v
    • virt-v2v-2.4.0-2.el9
    • None
    • Moderate
    • rhel-sst-virtualization
    • ssg_virtualization
    • 11
    • 16
    • 5
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?
      Virt-v2v can't convert guest via vmx+ssh if guest name contains space

      Please provide the package NVR for which bug is seen:
      virt-v2v-2.3.4-5.el9.x86_64
      libguestfs-1.50.1-6.el9.x86_64
      guestfs-tools-1.50.1-3.el9.x86_64
      libguestfs-winsupport-9.3-1.el9_3.x86_64
      libvirt-libs-9.5.0-7.el9_3.x86_64
      qemu-img-8.0.0-16.el9_3.x86_64
      nbdkit-server-1.34.2-1.el9.x86_64
      libnbd-1.16.0-1.el9.x86_64

      How reproducible:
      100%

      Steps to reproduce:
      1. Prepare a guest with spaces in its name on VMware

      1. ls Auto-esx7.0-rhel9.2\ space-name-
        local-storage/
        Auto-esx7.0-rhel9.2 space-name-local-storage-2c88af47.hlog
        Auto-esx7.0-rhel9.2 space-name-local-storage-flat.vmdk
        Auto-esx7.0-rhel9.2 space-name-local-storage.nvram
        Auto-esx7.0-rhel9.2 space-name-local-storage.vmdk
        Auto-esx7.0-rhel9.2 space-name-local-storage.vmsd
        Auto-esx7.0-rhel9.2 space-name-local-storage.vmx

      2. Convert the guest from VMware via vmx+ssh by v2v

      1. virt-v2v -i vmx -it ssh ssh://root@10.73.212.38//vmfs/volumes/6465bf39-726b1a19-4875-ec2a720a7394/Auto-esx7.0-rhel9.2%20space-name-local-storage/Auto-esx7.0-rhel9.2%20space-name-local-storage.vmx -ip /home/esxpwd
        [ 0.0] Setting up the source: -i vmx ssh://root@10.73.212.38//vmfs/volumes/6465bf39-726b1a19-4875-ec2a720a7394/Auto-esx7.0-rhel9.2%20space-name-local-storage/Auto-esx7.0-rhel9.2%20space-name-local-storage.vmx
        (root@10.73.212.38) Password:
        (root@10.73.212.38) Password:
        sh: space-name-local-storage/Auto-esx7.0-rhel9.2: unknown operand
        virt-v2v: error: This transport does not support guests with snapshots.
        Either collapse the snapshots for this guest and try the conversion again,
        or use one of the alternate conversion methods described in
        virt-v2v-input-vmware(1) section "NOTES".

      If reporting bugs, run virt-v2v with debugging enabled and include the
      complete output:

      virt-v2v -v -x [...]

      Expected results
      Virt-v2v can convert guest via vmx+ssh if guest name contains space

      Actual results
      As above description

              mrezanin Miroslav Rezanina
              mxie@redhat.com Ming Xie
              virt-maint virt-maint
              Ming Xie Ming Xie
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: