diff --git a/pkg/controller/plan/adapter/openstack/builder.go b/pkg/controller/plan/adapter/openstack/builder.go index 51c5e1b6f..9213bb6f4 100644 --- a/pkg/controller/plan/adapter/openstack/builder.go +++ b/pkg/controller/plan/adapter/openstack/builder.go @@ -440,6 +440,7 @@ func (r *Builder) mapResources(vm *model.Workload, object *cnv.VirtualMachineSpe memory := resource.NewQuantity(int64(vm.Flavor.RAM)*1024*1024, resource.BinarySI) resourceRequests := map[core.ResourceName]resource.Quantity{} resourceRequests[core.ResourceMemory] = *memory + object.Template.Spec.Domain.Memory = &cnv.Memory{Guest: memory} object.Template.Spec.Domain.Resources.Requests = resourceRequests } diff --git a/pkg/controller/plan/adapter/ova/builder.go b/pkg/controller/plan/adapter/ova/builder.go index ee2563aa0..5b1afe96b 100644 --- a/pkg/controller/plan/adapter/ova/builder.go +++ b/pkg/controller/plan/adapter/ova/builder.go @@ -318,6 +318,7 @@ func (r *Builder) mapMemory(vm *model.VM, object *cnv.VirtualMachineSpec) error core.ResourceMemory: *reservation, }, } + object.Template.Spec.Domain.Memory = &cnv.Memory{Guest: reservation} return nil } diff --git a/pkg/controller/plan/adapter/ovirt/builder.go b/pkg/controller/plan/adapter/ovirt/builder.go index a86286aa3..9c2f7f4ae 100644 --- a/pkg/controller/plan/adapter/ovirt/builder.go +++ b/pkg/controller/plan/adapter/ovirt/builder.go @@ -366,6 +366,7 @@ func (r *Builder) mapMemory(vm *model.Workload, object *cnv.VirtualMachineSpec) core.ResourceMemory: *reservation, }, } + object.Template.Spec.Domain.Memory = &cnv.Memory{Guest: reservation} } func (r *Builder) mapCPU(vm *model.Workload, object *cnv.VirtualMachineSpec) { object.Template.Spec.Domain.Machine = &cnv.Machine{Type: "q35"} diff --git a/pkg/controller/plan/adapter/vsphere/builder.go b/pkg/controller/plan/adapter/vsphere/builder.go index 272243c82..4b7edec54 100644 --- a/pkg/controller/plan/adapter/vsphere/builder.go +++ b/pkg/controller/plan/adapter/vsphere/builder.go @@ -564,6 +564,7 @@ func (r *Builder) mapMemory(vm *model.VM, object *cnv.VirtualMachineSpec) { core.ResourceMemory: *reservation, }, } + object.Template.Spec.Domain.Memory = &cnv.Memory{Guest: reservation} } func (r *Builder) mapCPU(vm *model.VM, object *cnv.VirtualMachineSpec) {