VMware Cloud Community
gamename
Enthusiast
Enthusiast
Jump to solution

Get/Set-VMResourceConfiguration And Templates

Hi,

If resource config values are set on a template, will those changes propagate to any clones made from that template?  For example if this is set on a guest (which is later converted to a template), will the clones generated from it have the same settings?

    get-vm $name | Get-VMResourceConfiguration | Set-VMResourceConfiguration -MemReservationMB 0 -MemLimitMB $null  -CpuReservationMhz 0 -CpuLimitMhz $null



Thanks,

-T

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

The previous answer is correct, but there is a small caveat.

The Limit part of the resource configuration settings is determined by the resource pool or the host where the cloned VMs will be in.

In your case, since you do not set both limits, this will not play, but be aware that limits are not cloned.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
3 Replies
saki893
Contributor
Contributor
Jump to solution

Yes. When you clone vms from the template they will inherit the same config from the template. Reason is whenever you change configuration of a vm, the configuration file( .vmx) of the vm is changed and when you are performing cloning the .vmx file of the clone will be the replica of the template's .vmtx file

0 Kudos
LucD
Leadership
Leadership
Jump to solution

The previous answer is correct, but there is a small caveat.

The Limit part of the resource configuration settings is determined by the resource pool or the host where the cloned VMs will be in.

In your case, since you do not set both limits, this will not play, but be aware that limits are not cloned.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
gamename
Enthusiast
Enthusiast
Jump to solution

Thank you, sir.

0 Kudos