missing memory reservation in deployVirtualMachine

This commit is contained in:
Daniel 2016-05-04 18:12:21 +02:00
parent 8cf13d9582
commit 5182bf6338
1 changed files with 3 additions and 0 deletions

View File

@ -1553,6 +1553,9 @@ func (vm *virtualMachine) deployVirtualMachine(c *govmomi.Client) error {
NumCPUs: vm.vcpu,
NumCoresPerSocket: 1,
MemoryMB: vm.memoryMb,
MemoryAllocation: &types.ResourceAllocationInfo{
Reservation: vm.memoryAllocation.reservation,
},
}
log.Printf("[DEBUG] virtual machine config spec: %v", configSpec)