A customer's server I'm administering runs the latest version of VMware ESXi - 8.0U2 Enterprise Plus, but I believe this has been a thing ever since I started using ESXi many versions ago.
Every time you login to the web client for vSphere and click VMs, the list displays in a random order (possibly in the order in which they were added). You have to remember to sort them A-Z. Sometimes if you're not paying attention, VMs with similar names can appear in the place of where you'd usually expect to see another (when sorted A-Z).
How can we keep the list of VMs sorted alphabetically, permanently?
Talking about in ESXi/vSphere on each individual server, not in vCenter.
I looked online and the answer does not appear to be readily apparent.
Here's an example screenshot from another user:
Here's an initial go at a Tampermonkey userscript:
Replace
123.45.67.89
with your server's IP address or whichever address you access ESXi on.You can use wildcards like
123.45.67.*
or you can duplicate the line for additional hosts, per the Tampermonkey documentation.It could do with something:
https://123.45.67.89/ui/#/host/vms
)$
in the console, without the userscript)It's been a while since writing a userscript!
If you want to edit this answer with a solution to any of the above then please do - it is a Community Wiki 🙂
I have to get on with some work now...
not sure why you're getting downvoted.
But..Unfortunately, there isn't a built-in feature in VMware ESXi vSphere to permanently keep the VM list sorted alphabetically by default.