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

Virsh can't guest xml from VMware if guest's second disk is in sub-folder

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • rhel-10.2
    • libvirt
    • None
    • None
    • None
    • 1
    • rhel-virt-core-libvirt-1
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Libvirt Bugs already in Sprint
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

      Description of problem:
      Virsh can't guest xml from VMware if guest's second disk is in sub-folder

      Version-Release number of selected component (if applicable):
      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 subfolder on VMware, in additional, the guest can boot into OS successfully

      # 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 virsh to dump the guest libvirtxml from VMware

      # virsh -c vpx://non-admin%40vsphere.local@10.73.213.134/data/cluster/10.73.212.36/?no_verify=1  dumpxml esx8.0-win11-with-second-disk-in-subfolder
      Enter non-admin@vsphere.local's password for 10.73.213.134: 
      error: internal error: Could not handle file name 'subfolder/esx8.0-win11-with-second-disk-in-subfolder_1.vmdk'
       
      

      Actual result:
      As above description

      Expect result:
      Fix the bug

              mprivozn@redhat.com Michal Privoznik
              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: