On VMware vCenter Server, you can create tags and tag categories that you can then assign to the different objects in your inventory to find them more easily.
As you can see, you can assign tags to your virtual machines, but also to other objects.
To do this, go to the menu and click on: Tags & Custom Attributes.
In the "Tags" tab, you will be able to create tags.
Note: tags appeared with vSphere 5.5 and replace the custom attributes that were available with older versions of VMware vSphere.
From the "Custom Attributes" tab available on this page, you can also migrate your custom attributes to the new VMware vCenter Server tag system.
You can also create tag categories in the sub-tab: Categories.
To get started, you'll need to create tag categories that allow you to group tags.
As you can see, for each category of tags, you will be able to:
For this tutorial, we have created a new category "GuestOS" for which we can assign a single tag from this category per object.
But, we have restricted the type of objects that can be associated with: Virtual machine.
Thus, tags in this category will only be offered for "Virtual Machine" type objects.
The "GuestOS" tag category has been created.
Now that you have created a tag category, you need to create the tags you want.
To do this, in the "Tags" tab, click: New.
Provide a name and description (optional) for this new tag and select the tag category to which it should belong.
In our case, this new tag will be in our "GuestOS" tag category.
The new tag appears in the list and as you can see, it is linked to our "GuestOS" category.
For this tutorial, we will also add the guest operating systems "Windows Server" and "Linux" to our "GuestOS" tag category.
The desired tags have been added.
Now that you've created the desired tags, here's how to assign them to your various objects.
In our case, these tags will allow us to easily find our virtual machines, whose operating system is: Windows, Windows Server or a Linux distribution.
At the moment, no tags are assigned to our virtual machines.
To assign a tag to a virtual machine, select the desired virtual machine, then go to: Actions -> Tags & Custom Attributes -> Assign Tag.
Select the tag you want to assign to this object.
In the case of our "Debian 10.9 x64" virtual machine, we assign it the "Linux" tag.
Warning : when creating our "GuestOS" tag category, we selected the "One tag" value for the "Tags Per Object" option.
Which means we can only select one tag from the "GuestOS" category per object.
The selected tag will be assigned to your virtual machine.
If you attempt to assign multiple tags to the same object when you had restricted tag assignment to a single tag for the tag category concerned, then an error will occur.
In our case, this error was:
Plain Text
(vmodl.fault.InvalidArgument) { faultCause = null, faultMessage = null, invalidProperty = null }
To assign a tag to a virtual machine, you can also click on the "Assign" link at the bottom of the "Tags" block displayed on the page of each virtual machine.
VMware 10/26/2022
VMware 10/14/2022
VMware 2/9/2024
VMware 7/10/2024
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
You must be logged in to post a comment