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

virsh can't dump empty SATA cdrom device from VMaware guest

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.6
    • rhel-9.4
    • libvirt
    • None
    • libvirt-10.8.0-1.el9
    • None
    • Moderate
    • rhel-sst-virtualization
    • ssg_virtualization
    • 11
    • 5
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • 10.1.0
    • None

      Description of problem:
      virsh can't dump empty SATA cdrom device from VMaware guest

      Version-Release number of selected component (if applicable):
      libvirt-libs-9.9.0-1.el9.x86_64

      How reproducible:
      100%

      Steps to Reproduce:
      1.Prepare a guest which has empty cdrom and cdrom device type is SATA
      #cat Auto-esx8.0-rhell9.3-efi-with-empty-cdrom/Aut
      o-esx8.0-rhell9.3-efi-with-empty-cdrom.vmx |grep 'sata0:0'
      sata0:0.startConnected = "FALSE"
      sata0:0.deviceType = "cdrom-image"
      sata0:0.fileName = ""
      sata0:0.present = "TRUE"

      2.Use virsh to dump the guest libvirtxml from VMware

      1. virsh -c vpx://root@10.73.212.129/data/10.73.212.36/?no_verify=1 dumpxml Auto-esx8.0-rhell9.3-efi-with-empty-cdrom
        Enter root's password for 10.73.212.129: 
        error: internal error: Invalid or not yet handled value '' for VMX entry 'sata0:0.fileName' for device type 'cdrom-image'

      Actual results:
      As above description

      Expected result:
      virsh can dump empty SATA cdrom device from VMaware guest successfully

      Additional info:
      virsh can dump the empty IDE cdrom device from VMaware guest

      1. virsh -c vpx://administrator%40vsphere.local@10.73.213.182/data/10.73.212.38/?no_verify=1  dumpxml Auto-esx7.0-rhel7.7-host_cd-without-filename
        Enter administrator@vsphere.local's password for 10.73.213.182: 
        <domain type='vmware' xmlns:vmware='http://libvirt.org/schemas/domain/vmware/1.0'>
          <name>Auto-esx7.0-rhel7.7-host_cd-without-filename</name>
          <uuid>422cb02d-0d93-9c93-4e96-38735d01d888</uuid>
          <memory unit='KiB'>2097152</memory>
          <currentMemory unit='KiB'>2097152</currentMemory>
          <vcpu placement='static'>1</vcpu>
          <cputune>
            <shares>1000</shares>
          </cputune>
          <os>
            <type arch='x86_64'>hvm</type>
          </os>
          <clock offset='utc'/>
          <on_poweroff>destroy</on_poweroff>
          <on_reboot>restart</on_reboot>
          <on_crash>destroy</on_crash>
          <devices>
            <disk type='file' device='disk'>
              <source file='[esx6.7-6.5-function] esx6.7/Auto-esx6.7-rhel7.7-host_cd-without-filename/Auto-esx6.7-rhel7.7-host_cd-without-filename.vmdk'/>
              <target dev='sda' bus='scsi'/>
              <address type='drive' controller='0' bus='0' target='0' unit='0'/>
            </disk>
            <disk type='block' device='cdrom'>
              <source startupPolicy='optional'/>
              <target dev='hda' bus='ide'/>
              <readonly/>
              <address type='drive' controller='0' bus='0' target='0' unit='0'/>
            </disk>
            <controller type='scsi' index='0' model='vmpvscsi'/>
            <controller type='ide' index='0'/>
            <interface type='bridge'>
              <mac address='00:50:56:ac:56:28' type='generated'/>
              <source bridge='VM Network'/>
              <model type='vmxnet3'/>
            </interface>
            <video>
              <model type='vmvga' vram='8192' primary='yes'/>
            </video>
          </devices>
          <vmware:datacenterpath>data</vmware:datacenterpath>
          <vmware:moref>vm-127</vmware:moref>
        </domain>

              mprivozn@redhat.com Michal Privoznik
              mxie@redhat.com Ming Xie
              Michal Privoznik Michal Privoznik
              Ming Xie Ming Xie
              Votes:
              0 Vote for this issue
              Watchers:
              16 Start watching this issue

                Created:
                Updated: