Additional notes. I tried also with a powerCLI script :
$esx = Get-View -Id (Get-VMHost ESXi-FTH).Id
# The host/system object
$sysresinfo = $esx.SystemResources.Child[1]
# Not the children of host/system
$sysresinfo.Child = $null
# The new values for CPU
$sysresinfo.Config.cpuAllocation.reservation = 100
$sysresinfo.Config.cpuAllocation.Shares.Level = "Custom"
$sysresinfo.Config.cpuAllocation.Shares.Shares = 500
# The new values for MEM
$sysresinfo.Config.memoryAllocation.reservation = 512
$sysresinfo.Config.memoryAllocation.Shares.Level = "Custom"
$sysresinfo.Config.memoryAllocation.Shares.Shares = 500
# Commit the changes to specified host
$esx.UpdateSystemResources($sysresinfo)
Setting the CPU value works, but the Memory can't be changed . Anyone else tried it ? from vSphere client or something ?
Thanks.