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: rc   
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.