Bug 2000506

Summary: RFE: Support fetching <genid> from VMware guests
Product: Red Hat Enterprise Linux 9 Reporter: Vera <vwu>
Component: libvirtAssignee: Michal Privoznik <mprivozn>
libvirt sub component: General QA Contact: Vera <vwu>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: berrange, cww, dyuan, fjin, hhan, jdenemar, jferlan, jsuchane, juzhang, knoel, lersek, lmen, marcandre.lureau, mbaissac, mprivozn, mtessun, mxie, mzhan, rhod, rjones, tzheng, virt-bugs, virt-maint, xfu, xuzhang, yisun
Version: 9.0Keywords: FutureFeature, TestOnly, Upstream
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-7.6.0 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1598348 Environment:
Last Closed: 2023-02-16 22:24:28 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1118834, 1149445, 1159983, 1591628, 1598348    
Bug Blocks: 910269, 1118825, 1159981, 1477664    

Description Vera 2021-09-02 09:53:54 UTC
+++ This bug was initially created as a clone of Bug #1598348 +++

Description:

VMware supports genid in its vmx metadata files, eg:

vm.genid = "7344585841658099715"
vm.genidX = "-8483171368186442967"

However the <genid> tag does not appear when dumping the XML of this guest>

# virsh -c vpx://root@xx/data/10.73.72.61/?no_verify=1 dumpxml esx6.0-win2012r2-x86_64 
Enter root's password for xx: 
<domain type='vmware' xmlns:vmware='http://libvirt.org/schemas/domain/vmware/1.0'>
  <name>esx6.0-win2012r2-x86_64</name>
  <uuid>564d5c84-172a-0ecd-05c9-14003ce70ae3</uuid>
[etc]

We expect to see <genid> here, as described here:

https://libvirt.org/formatdomain.html#elementsMetadata

--- Additional comment from Red Hat Bugzilla Rules Engine on 2018-07-05 07:49:40 UTC ---


The bug exists on the RHEL9 with libvirt-7.6.0-2.el9.x86_64.

Comment 2 John Ferlan 2021-09-03 16:36:39 UTC
Removing ITR, it's a side effect of cloning bugs... Removing Triaged keyword and assigned directly to Michal since he owns the cloned from bug and will need to handle for RHEL9.

I'm guessing this would already be fixed in 9-Beta, so one could set TestOnly keyword and go directly to ON_QA with whatever patch resolved the issue for 8.5.0

Comment 4 Michal Privoznik 2021-09-06 08:52:12 UTC
(In reply to John Ferlan from comment #2)
> I'm guessing this would already be fixed in 9-Beta, so one could set
> TestOnly keyword and go directly to ON_QA with whatever patch resolved the
> issue for 8.5.0

Indeed. Doing so now.

Comment 5 Vera 2021-09-15 06:20:19 UTC
Verified with the build:
libvirt-7.7.0-1.el9.x86_64


# virsh -c vpx://root.198.169/data/10.73.199.217/?no_verify=1  dumpxml esx7.0-win2019-x86_64
Enter root's password for 10.73.198.169: 
<domain type='vmware' xmlns:vmware='http://libvirt.org/schemas/domain/vmware/1.0'>
  <name>esx7.0-win2019-x86_64</name>
  <uuid>4203fb76-a391-6c63-86cf-7e6a25f6285a</uuid>
  <genid>5cc07933-0fbb-e06c-be9b-a908c5f8121b</genid>
......

The issue has been fixed.

Moving the bug from ON_QA to Verified.

Comment 12 Vera 2022-03-21 08:36:05 UTC
Verified with libvirt-8.0.0-7.el9_0.x86_64

# virsh -c vpx://root.198.169/data/10.73.199.217/?no_verify=1  dumpxml esx7.0-win2019-x86_64
Enter root's password for 10.73.198.169: 
<domain type='vmware' xmlns:vmware='http://libvirt.org/schemas/domain/vmware/1.0'>
  <name>esx7.0-win2019-x86_64</name>
  <uuid>4203fb76-a391-6c63-86cf-7e6a25f6285a</uuid>
  <genid>5cc07933-0fbb-e06c-be9b-a908c5f8121b</genid>

.......

Comment 14 Yash Mankad 2023-02-16 22:24:28 UTC
Closing as CURRENTRELEASE as RHEL 9.0 GA'ed in May 2022