Errors after pve-esxi-import-tools upgrade to 0.7.3

tizianozorzo

New Member
Apr 22, 2025
1
1
1
Hi there,
after an upgrade to "pve-esxi-import-tools" some users like me experienced an error during the Esxi storage type creation.
The error is " create storage failed: 'NoneType' object has no attribute 'extraConfig' (500)".

After a quick code review the reasons seems to be in https://git.proxmox.com/?p=pve-esxi...;hpb=fd97b5d38aed97ba009dd118b5afe9b3b661dca2


Code:
vCLS = any(cfg.key == "HDCS.agent"
+                       and cfg.value.lower() == "true"
+                       for cfg in vm.config.extraConfig)

The attribute extraConfig is not present in all esxi versions / configuration.

For now the only solution is to downgrade to 0.7.2

Code:
apt install —reinstall pve-esxi-import-tools=0.7.2


I don't know if this is the right place to discuss this kind of argument, if not please let me know.


Thank you for your feedback
 
  • Like
Reactions: Rayhold
Hi there,

thanks for reporting this.

As mentioned by @fiona please use our bugzilla so we can track this. Please let us know which ESXI version you are using and how it's set up.
 
@tizianozorzo Thank you very much for this, I couldn't understand why I couldn't connect one of our esxis, when months ago we could connect them without any issues. Lesson learned :)

If it helps, our ESXI environment is pretty old on 7.0.3q, which I didn't bothered to upgrade since Proxmox was on sights.
 
If you cant upgrade atm: I had a vCLS-VM from vCenter on the host i tried to add so i just removed/unregistered the vCLS VM. vCenter was not running at that point so I dont know if this is possible while vCenter is running.
After removing the vCLS-VM, the datastore can be added in PVE.
 
Upgrading to 0.7.4 did not work for me, but downgrading to 0.7.2 did resolve the issue.

To hopefully save some other folks some time - I was not able to upgrade or downgrade with the default "pve-enterprise.list" repo in /etc/apt/sources.list.d (version not available/listed) :
Code:
root@pve01:~# apt-cache policy pve-esxi-import-tools
pve-esxi-import-tools:
  Installed: 0.7.3
  Candidate: 0.7.3
  Version table:
 *** 0.7.3 100
        100 /var/lib/dpkg/status
I had to add the "pve-no-subscription.list" to /etc/apt/sources.list.d, update, then I had the upgrade and downgrade options:

Code:
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" | tee /etc/apt/sources.list.d/pve-no-subscription.list

apt-get update

apt-cache policy pve-esxi-import-tools
pve-esxi-import-tools:
  Installed: 0.7.4
  Candidate: 0.7.4
  Version table:
 *** 0.7.4 500
        500 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 Packages
        100 /var/lib/dpkg/status
     0.7.3 500
        500 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 Packages
     0.7.2 500
        500 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 Packages
     0.7.1 500
        500 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 Packages
     0.7.0 500
        500 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 Packages
     0.6.1 500
        500 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 Packages
     0.6.0 500
        500 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 Packages
     0.5.0 500
        500 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 Packages
       
apt install --reinstall pve-esxi-import-tools=0.7.2

I'm running PVE 8.4 and esxi 6.7
 
Last edited:
Hi,
Upgrading to 0.7.4 did not work for me, but downgrading to 0.7.2 did resolve the issue.
what is the exact error message you got with version 0.7.4 and what is the output of sha256sum /usr/libexec/pve-esxi-import-tools/listvms.py at that time?

To hopefully save some other folks some time - I was not able to upgrade or downgrade with the default "pve-enterprise.list" repo in /etc/apt/sources.list.d (version not available/listed) :
Code:
root@pve01:~# apt-cache policy pve-esxi-import-tools
pve-esxi-import-tools:
  Installed: 0.7.3
  Candidate: 0.7.3
  Version table:
 *** 0.7.3 100
        100 /var/lib/dpkg/status
I had to add the "pve-no-subscription.list" to /etc/apt/sources.list.d, update, then I had the upgrade and downgrade options:
You need an active subscription to access that repository, see: https://pve.proxmox.com/wiki/Package_Repositories
 
Hi,

what is the exact error message you got with version 0.7.4 and what is the output of sha256sum /usr/libexec/pve-esxi-import-tools/listvms.py at that time?


You need an active subscription to access that repository, see: https://pve.proxmox.com/wiki/Package_Repositories
It was the same error message that I received all along and the same one that the OP noted. I did not take the hash of that file at that time.
 
It was the same error message that I received all along and the same one that the OP noted. I did not take the hash of that file at that time.
Then the version likely was not installed correctly, because the code in that version is different and checks that vm.config is not None before trying to access the extraConfig property, so the error message cannot happen.
 
same here, well very similar anyway
I have 0.7.4 yet I get "'NoneType' object has no attribute 'files' (500)"
it used to work - I migrated a few VMs in the past and there's one left that I wanted to go back and migrated.

Edit; Just downgraded to 0.7.2 and it is working again.
 
Last edited:
  • Like
Reactions: carl0s and fiona
What kind of performance is everyone seeing on 10GbE connections? IDK if this is an isolated thing, but in testing with identical hardware with NVMe backed storage, it's about 1MB/s over 25GbE. Looking at 30 hours to migrate a 100GB VM.

I'll do some more testing on Monday with other ESXi and PVE hosts to verify it's not some weird config issue, or even the backing storage for the ESXi.
 
What kind of performance is everyone seeing on 10GbE connections? IDK if this is an isolated thing, but in testing with identical hardware with NVMe backed storage, it's about 1MB/s over 25GbE. Looking at 30 hours to migrate a 100GB VM.

I'll do some more testing on Monday with other ESXi and PVE hosts to verify it's not some weird config issue, or even the backing storage for the ESXi.
something fishy there. mine was just a 1GbE connection and the ~40 - 60gb (used blocks) vm was done in a reasonable time like 10 - 15 minutes.
 
something fishy there. mine was just a 1GbE connection and the ~40 - 60gb (used blocks) vm was done in a reasonable time like 10 - 15 minutes.

Tested on other Proxmox and ESX machines, it looks like that one node is just having a fit. Moved a 100GB VM over in 20 mins, IDK how much of that is used space though. When looking at the network stats for the PVE host, it's hitting a max of around 110MiB/s when importing. This is with a 10GbE to 10GbE connection with 9000 MTU.