mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #6482 from godmodelabs/fix-memory-reservation-templated
provider/vsphere: missing memory reservation in deployVirtualMachine
This commit is contained in:
commit
63849a5d7d
@ -1553,6 +1553,9 @@ func (vm *virtualMachine) deployVirtualMachine(c *govmomi.Client) error {
|
|||||||
NumCPUs: vm.vcpu,
|
NumCPUs: vm.vcpu,
|
||||||
NumCoresPerSocket: 1,
|
NumCoresPerSocket: 1,
|
||||||
MemoryMB: vm.memoryMb,
|
MemoryMB: vm.memoryMb,
|
||||||
|
MemoryAllocation: &types.ResourceAllocationInfo{
|
||||||
|
Reservation: vm.memoryAllocation.reservation,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("[DEBUG] virtual machine config spec: %v", configSpec)
|
log.Printf("[DEBUG] virtual machine config spec: %v", configSpec)
|
||||||
|
Loading…
Reference in New Issue
Block a user