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

nbdkit vddk plugin export parameter should allow loose wildcards without FNM_PATHNAME

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: Generate New Ti...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.2
    • rhel-10.2
    • nbdkit
    • None
    • nbdkit-1.45.11-1.el10
    • None
    • Low
    • 1
    • rhel-virt-tools
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • Virt-tools Bugs in Sprint
    • Requested
    • None
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

      For a long discussion of this bug, see https://gitlab.com/nbdkit/nbdkit/-/merge_requests/113

      The description below is copied from the virt-v2v bug.


      Description of problem:
      Virt-v2v can't convert the guest from VMware if guest's second disk is in sub-folder

      Version-Release number of selected component (if applicable):
      virt-v2v-2.9.9-1.el10.x86_64
      libguestfs-1.57.5-1.el10.x86_64
      guestfs-tools-1.54.0-6.el10.x86_64
      nbdkit-1.45.7-1.el10.x86_64
      libnbd-1.23.7-1.el10.x86_64
      libvirt-11.8.0-1.el10.x86_64
      qemu-kvm-10.1.0-2.el10.x86_64

      How reproducible:
      100%

      Steps:
      1. Prepare a guest with two disks, the second disk is in sub-folder on VMware,

      # ls esx8.0-win11-with-second-disk-in-subfolder
      esx8.0-win11-with-second-disk-in-subfolder-1b240d0d.hlog  esx8.0-win11-x86_64-latest-1.scoreboard
      esx8.0-win11-with-second-disk-in-subfolder-flat.vmdk      esx8.0-win11-x86_64-latest.scoreboard
      esx8.0-win11-with-second-disk-in-subfolder.nvram          subfolder
      esx8.0-win11-with-second-disk-in-subfolder.vmdk           vmware-1.log
      esx8.0-win11-with-second-disk-in-subfolder.vmsd           vmware.log
      esx8.0-win11-with-second-disk-in-subfolder.vmx
      # ls esx8.0-win11-with-second-disk-in-subfolder/subfolder/
      esx8.0-win11-with-second-disk-in-subfolder_1-flat.vmdk  esx8.0-win11-with-second-disk-in-subfolder_1.vmdk
      
      #cat esx8.0-win11-with-second-disk-in-subfolder.vmx |grep subfolder_1.vmdk
      scsi0:1.fileName = "subfolder/esx8.0-win11-with-second-disk-in-subfolder_1.vmdk"
      

       

      2. Use virt-v2v to convert the guest from VMware

      #  virt-v2v -ic vpx://non-admin%40vsphere.local@10.73.213.134/data/cluster/10.73.212.36/?no_verify=1  -it vddk -io vddk-libdir=/home/vddk8.0.3  -io vddk-thumbprint=C3:83:1D:C0:6D:4C:47:83:5A:B9:6E:0E:FA:5A:15:22:B4:75:D5:7E -ip /home/passwd esx8.0-win11-with-second-disk-in-subfolder -o local -os /home
      [   0.0] Setting up the source: -i libvirt -ic vpx://non-admin%40vsphere.local@10.73.213.134/data/cluster/10.73.212.36/?no_verify=1 -it vddk esx8.0-win11-with-second-disk-in-subfolder
      virt-v2v: error: exception: libvirt: VIR_ERR_INTERNAL_ERROR: VIR_FROM_ESX: 
      internal error: Could not handle file name 
      'subfolder/esx8.0-win11-with-second-disk-in-subfolder_1.vmdk'
      If reporting bugs, run virt-v2v with debugging enabled and include the 
      complete output:
        virt-v2v -v -x [...]
      

       

      Actual result:
      As above description

      Expect result:
      Fix the bug

      Additional info

       

       

              rhn-eng-rjones Richard Jones
              mxie@redhat.com Ming Xie
              virt-maint virt-maint
              Ming Xie Ming Xie
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated: