Find a VM by Note
I am sure most of you are aware that vCenter Server provides the ability to add free-form textual information to a Virtual Machine (VM). In the vSphere UI this feature is available in the VM Summary view:
In 7.0 release the vSphere Client supports various means to search the inventory. Nevertheless, for UX reasons some of the search capabilities have remained hidden in the UI.
How can I find a VM by note?
Global search is the most obvious place to start from. And that will give you no results:
The reason is that annotation field is not included in the search query.
Are you ready for some hidden features? Here we go!
- Select some parent object in the inventory tree (Cluster, Datacenter or the vCenter Server itself).
- Select “VMs” tab. It will show you all child VMs.
- Click on the down arrow on an arbitrary column of the VMs grid. You will see a menu with one item only – “Show/Hide Columns”:
- Open the sub-menu to reveal a huge list of all available columns.
- Select the “Notes” checkbox. The grid will refresh and you will see the Notes column (you might need to scroll right to see it).
- Use the “Filter” input to search a VM by note:
The hidden feature is that the filter works only on the visible columns. If “Notes” column is not visible, you will not be able to find a VM by note.
What if I have many vCenter Servers?
If you have multiple vCenter Servers in linked mode you might want to search all of them at once. This is how you can do this:
- Select “Global Inventory Lists” from the “Menu” button.
- Select “Virtual Machines”
- In the central pane you will see the already familiar grid with all VMs from all vCenter Servers.
- Ensure that “Notes” column is visible.
- Use the “Filter” input on the top-right corner of the grid to search a VM by note.
Note: With big inventory searching across many vCenter Servers will cause heavy load on your vSphere Client and might take significant amount of time.
Which columns are searchable?
Filter in VM grid works only on several columns and only if they are visible. These are:
- Managed By
- Fault Domain
- Guest OS
- IP Address
- Ha Protection
- EVC CPU Mode
- EVC Graphics Mode
Stay tuned for more tips and tricks on search capabilities from the vSphere UI Community Team!