Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2130880

Summary: [RFE]Can detect NVDIMM device from VMware guest by virsh
Product: Red Hat Enterprise Linux 9 Reporter: mxie <mxie>
Component: libvirtAssignee: Virtualization Maintenance <virt-maint>
libvirt sub component: General QA Contact: mxie <mxie>
Status: CLOSED MIGRATED Docs Contact:
Severity: medium    
Priority: low CC: chhu, hhan, hongzliu, jsuchane, juzhou, lersek, lmen, mzhan, rjones, tyan, tzheng, virt-maint, vwu, xiaodwan
Version: 9.1Keywords: FutureFeature, MigratedToJIRA, Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-07 19:12:09 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:    
Bug Blocks: 2130886    
Attachments:
Description Flags
vmware-guest-with-nvdimm
none
esx7.0-rhel8.4-x86_64.vmx none

Description mxie@redhat.com 2022-09-29 09:51:56 UTC
Created attachment 1914969 [details]
vmware-guest-with-nvdimm

Description of problem:
[RFE]Can detect NVDIMM device from VMware guest by virsh

Version-Release number of selected component (if applicable):
libvirt-8.7.0-1.el9.x86_64
qemu-img-7.1.0-1.el9.x86_64


How reproducible:
100%

Steps to Reproduce:
1.Prepare a guest which has NVDIMM device on VMware, please refer to screenshot 'vmware-guest-with-nvdimm'

2.Use virsh to dump the guest xml from VMware, found there is no nvdimm device listed in libvirt xml

# virsh -c vpx://root.227.27/data/10.73.225.34/?no_verify=1 dumpxml esx7.0-rhel8.4-x86_64-nvdimm
Enter root's password for 10.73.227.27: 
<domain type='vmware' xmlns:vmware='http://libvirt.org/schemas/domain/vmware/1.0'>
  <name>esx7.0-rhel8.4-x86_64-nvdimm</name>
  <uuid>4203f627-1106-4a47-9a3c-6a14139bcb0d</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='[datastore2] esx7.0-rhel8.4-x86_64/esx7.0-rhel8.4-x86_64.vmdk'/>
      <target dev='sda' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='scsi' index='0' model='vmpvscsi'/>
    <interface type='bridge'>
      <mac address='00:50:56:b4:4e:19' 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-122</vmware:moref>
</domain>



Actual results:
Can't detect NVDIMM device from VMware guest by virsh

Expected results:
As above description

Additional info:

Comment 1 Richard W.M. Jones 2022-09-29 10:04:52 UTC
Created attachment 1914982 [details]
esx7.0-rhel8.4-x86_64.vmx

VMX file.  Note nvdimm0* entries.