My vCenter system and the various Guests and Hosts have been shut down often enough. I noted that the "Guest OS" reported in the summary view of a VM would show something like "Microsoft Windows Server 2008 (32-bit)" , but when I use vmrun to poll the guest OS I get an abbreviated name which...under the worst circumstances is "Longhorn". I look at the vmx files in the datastore and I see where "Longhorn" is coming from. Where is vCenter getting it's info from...and How can I retrieve that value. I noted on one of my Linux systems that updating the Guest OS under Edit Settings --> Options will update the Guest OS that displays in the summary view. I also noticed that the full 'long name" for my "Longhorn" system shows in Edit Settings --> Options. -- So why doesn't vmrun ReadVariable get the correct answer? -- because its not written correctly in the .vmx file. I need to script a process that runs on Windows VM's and I wanted to use the Guest OS property as a control point. This is harder if my GuestOS variable returns different results from what is displayed in vCenter.
↧