11-10-2011 12:11 PM
Has anyone actually had the VMGuestOS field actually filter VM clients from a policy correctly? No matter my operator or value parameters I cannot seem to be able to use the field to filter my VMs properly (at least when checked using the Test Query option).
Anyone else been able to use that field to filter VMs?
Solved! Go to Solution.
11-10-2011 03:16 PM
I have no idea how I found this before, becuase I tried to find it again just now and came up completely empty (I ended up finding it in an IM conversation I had with a TSE back in March), so please bookmark this because you'll never find it again:
http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
I'm sure there was a good reason I never threw this into a TechNote. (Well, besides the fact that it's VMware's knowledge and not ours :) )
There may also be a more up-to-date list somewhere else - or a vSphere 5 version - but maybe you'll have better luck with the search engines than I've had today...
11-10-2011 12:22 PM
I have used many queries without a problem. Can you provide an example of a query that is not working? Also what OS is the Master server?
11-10-2011 12:40 PM
Master server is Windows 2008 R2.
I'm attempting to filter on Windows or Linux virtual machines.
Even a simple query such as:
vmware:/?filter=VMGuestOS Contains "Windows"
returns zero matches
11-10-2011 01:05 PM
The query will fail because the VMGuestOS Contains Windows will only filter:
Windows 7 VMs as the VMGuestOS for Windows 7 is windows7*. Actually that won't work also because the case is wrong.
Here is a list of Windows base VMGuestOS:
11-10-2011 01:40 PM
Bingo!
I knew I was missing something, filtering in the vSphere Client with Guest OS = "Windows" works just fine, but it wasn't working in the Symantec query and I couldn't see why.
do you have a full listing of VMGuestOS fields that I can reference? I also need to distinguish between RedHat4/RedHat5/SuSE versions as well in my policies.
11-10-2011 03:16 PM
I have no idea how I found this before, becuase I tried to find it again just now and came up completely empty (I ended up finding it in an IM conversation I had with a TSE back in March), so please bookmark this because you'll never find it again:
http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
I'm sure there was a good reason I never threw this into a TechNote. (Well, besides the fact that it's VMware's knowledge and not ours :) )
There may also be a more up-to-date list somewhere else - or a vSphere 5 version - but maybe you'll have better luck with the search engines than I've had today...
11-11-2011 06:25 AM
On the right of the values textbox, there is a folder icon that can be used to browse the vSphere environment and pull up a list of available GuestOS availabile in your environment.