[pve-devel] [PATCH storage/esxi-import-tools 0/2] fix #5587: compatibility for flatcased 'filename' property in vmx file

Daniel Kral d.kral at proxmox.com
Wed Aug 21 15:57:46 CEST 2024


Compatibility for an older naming convention of the "fileName" property
of mounted storage device images in vmx configuration files was
requested at [1].

Previously, it was only possible to import ESXi VMs, where the mentioned
property name was camelcased (e.g. "scsi0:0.fileName"). This patch
allows this property name to also be flatcased for compatibility with
older vmx versions (e.g. "scsi0:0.filename").

===

I could reproduce the issue by creating an ESXi VM in ESXi 8.0.2 with
the dialog and _manually_ renaming the property name to "filename". This
caused the disk to not show up in PVE's Import Guest wizard.

I could not reproduce the flatcased property name mentioned above by
using the VMWare creation dialog alone, even when I tried to create a
ESXi 4.x-compatible .vmx file (the oldest option available in VMvisor
ESXi 8.0).

===

I tested the patch on two different PVE nodes (1 patched & 1 unpatched):

1. Creating two different ESXi VMs (Debian 6 and 12),
2. I imported them with the camelcased "fileName" successfully.
3. I changed the property name to "filename" in the vmx config files for
   both ESXi VMs and imported them on the patched PVE node successfully
   and could not import the disk image on the unpatched PVE node.
4. pve-storage passed all previous tests.

[1] https://bugzilla.proxmox.com/show_bug.cgi?id=5587

storage:

Daniel Kral (1):
  esxi: fix #5587: add support for older version of vmx storage
    filepaths

 src/PVE/Storage/ESXiPlugin.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

esxi-import-tools:

Daniel Kral (1):
  fix #5587: add support for older version of vmx storage filepaths

 src/vmx.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.39.2





More information about the pve-devel mailing list