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

Can't dump the guest xml from VMware if missing essential config entry 'ethernet0.dvs.connectionId' [rhel-9.5]

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • rhel-9.5
    • libvirt
    • None
    • None
    • None
    • rhel-sst-virtualization
    • ssg_virtualization
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

      Description of problem
      Can't dump the guest xml from VMware if missing essential config entry 'ethernet0.dvs.connectionId' '

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

      How reproducible:
      100%

      Steps to Reproduce:

      1.Prepare a guest with distributed switch network on Vmware environment, remove info 'ethernet0.dvs.portId'  and ethernet0.dvs.connectionId from vmx file and register the guest on vsphere client after deleting the lines

      # cat esx8.0-rhel9-dvs-missing-portid-connectionid/esx8.0-rhel9-dvs-missing-portid-connectionid.vmx |grep ethernet0.dvs
      ethernet0.dvs.switchId = "50 20 98 0d 3d a5 40 bc-3a c1 58 2c 38 be b6 3b"
      ethernet0.dvs.portgroupId = "dvportgroup-1036"
      

      2.Use virsh to dump the guest xml from VMware

      # virsh -c vpx://root@10.73.212.129/Folder/Folder/Datacenter/10.73.225.34/?no_verify=1 dumpxml  esx8.0-rhel9-dvs-missing-portid-connectionid
      Enter root's password for 10.73.212.129: 
      error: internal error: Missing essential config entry 'ethernet0.dvs.connectionId'
      

       

      Actual results:

      The bug has been fixed on rhel9.4.z https://issues.redhat.com/browse/RHEL-46595, so it should be fixed on rhel9.5

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

                Created:
                Updated:
                Resolved: