This week I found out a way of sorting the list of VMs as it appears in the ESX MUI. By default the list of VMs...
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
in the MUI are sorted by the order of the VMs created or by the order they are registered (which can be the same thing). You can sort the VMs alphabetically or re-order them based on your own preference by using the Service Console
- Logon to the Service Console as ROOT
- Sort the vmlist – by using the sort command piped to a new file, and then copy sorted vmlist over the original vmlist with:
sort /etc/vmware/vm-list > /etc/vmware/vm-listsorted
cp /etc/vmware/vm-listsorted /etc/vmware/vm-list
- Press [ENTER] to over-write the original file
- Restart the vmware-serverd and vmware httpd daemons with
service vmware-serverd restart
service httpd.vwmare restart
If you are using vCenter restart the ccagent service from the vCenter client instead using
Right-click the ESX Host
Click the Advanced Tab and click the Restart button
Alternatively, kill the ccagent process from the Service Console (ESX will automatically restart itâ€¦) with:
ps -ef | grep ccagent
kill pidno, in my case kill 27023
If you have the vCenter client open, this should force a “reconnectingâ€¦” event
If you log on to the ESX MUI you should find the VM list is sorted alphabeticallyâ€¦
If this fails to generate the list you require, simply edit the vmlist with nano – and reorderâ€¦ be sure to backup the file before you do this.