add memory configuration computed from the size of the VM