Is it possible to determine who set a limit on a VM? I am pulling vCenter events and see the ConfigSpec property and according to the SDK documentation it should be listed under MemoryAllocation. However I am not seeing anything. I can see other changes to the VM such as adding cpu or memory under ConfigSpec.
memoryAllocation* | ResourceAllocationInfo | Resource limits for memory. Reconfigure privilege: VirtualMachine.Config.Resource |
This is what I see on the event.
ChangeVersion | : 2015-12-11T01:21:47.46112Z |
Name | : |
Version | : |
Uuid | : |
InstanceUuid | : |
NpivNodeWorldWideName | : |
NpivPortWorldWideName | : |
NpivWorldWideNameType | : |
NpivDesiredNodeWwns | : |
NpivDesiredPortWwns | : |
NpivTemporaryDisabled | : |
NpivOnNonRdmDisks | : |
NpivWorldWideNameOp | : |
LocationId | : |
GuestId | : |
AlternateGuestName | : |
Annotation | : |
Files | : VMware.Vim.VirtualMachineFileInfo |
Tools | : |
Flags | : |
ConsolePreferences | : |
PowerOpInfo | : |
NumCPUs | : |
NumCoresPerSocket | : |
MemoryMB | : |
MemoryHotAddEnabled | : |
CpuHotAddEnabled | : |
CpuHotRemoveEnabled | : |
VirtualICH7MPresent | : |
VirtualSMCPresent | : |
DeviceChange | : |
CpuAllocation | : |
MemoryAllocation | : |
LatencySensitivity | : |
CpuAffinity | : |
MemoryAffinity | : |
NetworkShaper | : |
CpuFeatureMask | : |
ExtraConfig | : |
SwapPlacement | : |
BootOptions | : |
VAppConfig | : |
FtInfo | : |
RepConfig | : |
VAppConfigRemoved | : |
VAssertsEnabled | : |
ChangeTrackingEnabled | : |
Firmware | : |
MaxMksConnections | : |
GuestAutoLockEnabled | : |
ManagedBy | : |
MemoryReservationLockedToMax :
NestedHVEnabled | : |
VPMCEnabled | : |
ScheduledHardwareUpgradeInfo :
VmProfile | : |
MessageBusTunnelEnabled | : |
Any ideas or is it not just tracked in the ConfigSpec?
I'm afraid it is not tracked in this event.
I just tried (in vSphere 5.5), and the event doesn't seem to track neither the CpuAllocation nor the MemoryAllocation properties.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Ok that's what it looked like to me. Thanks for looking!