Hi,
I want to check if a VM is capable for hot add of memory and CPU, before I enable it on the VM.
The code I use is this:
queryConfigOption = vm.environmentBrowser.queryConfigOption(); System.log("supportsMemoryHotAdd: " + queryConfigOption.guestOSDescriptor.supportsMemoryHotAdd);
But it always returns: undefined
[2014-08-14 14:17:14.857] [I] supportsMemoryHotAdd: undefined
When I do a System.log of queryConfigOption.guestOSDescriptor;
guestOSDescriptor = queryConfigOption.guestOSDescriptor; System.debug ("guestOSDescriptor: " + guestOSDescriptor);
it returns 40+ lines of this:
[2014-08-14 14:17:14.857] [D] guestOSDescriptor: DynamicWrapper (Instance) : [VcGuestOsDescriptor]-[class com.vmware.vim.vi4.GuestOsDescriptor] -- VALUE : com.vmware.vim.vi4.GuestOsDescriptor@32bb86f7,DynamicWrapper (Instance) : [VcGuestOsDescriptor]-[class com.vmware.vim.vi4.GuestOsDescriptor] -- VALUE : com.vmware.vim.vi4.GuestOsDescriptor@7ab558bb,DynamicWrapper (Instance) : [VcGuestOsDescriptor]-[class com.vmware.vim.vi4.GuestOsDescriptor] -- VALUE : com.vmware.vim.vi4.GuestOsDescriptor@357c5000,DynamicWrapper (Instance) : [VcGuestOsDescriptor]-[class com.vmware.vim.vi4.GuestOsDescriptor] -- VALUE :...
What am I doing wrong?
And how can I check if the VM is hot add capable?
Thanks,
Jonathan