VMware Cloud Community
Dalebert
Contributor
Contributor
Jump to solution

Copying templates between datacenters

Hello,

I have a couple VM's that are being cloned to templates. Those templates need to be copied to other VMWare datacenters. I have everything running in a PowerShell script using PowerCLI. As I understand it I can't just do a simple copy from one datacenter to another. I first need to download the template then upload to the target datacenter to get those templates where they need to be.

Does anyone have an idea of how I could do this task and is it able to be accomplished using PowerCLI?

TIA

Reply
0 Kudos
26 Replies
LucD
Leadership
Leadership
Jump to solution

I suspect that is because you are not connected to the vCenter.

A vSphere cluster is a concept that lives on the vCenter, not on the individual ESXi nodes.

Each ESXi node has a default resourcepool, those are the ones you are seeing.


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

Reply
0 Kudos
Dalebert
Contributor
Contributor
Jump to solution

OK. So I need to connect to the vCenter and run this. It (theoretically) should work then. Correct?

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

If your vCenter and cluster is configured correctly, yes.

You should check the variables used in the script, primarily the resourcepool


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

Reply
0 Kudos
Dalebert
Contributor
Contributor
Jump to solution

OK. I'll see what I can do about that. Thanks for the help!

Reply
0 Kudos
Juhi_2
Contributor
Contributor
Jump to solution

is "TPLSRC_CPP_W_12_R2_H" a vm name or any kind of parameter?

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

In this thread someone seems to indeed have a VM with that Display name.
It's definitely not a parameter of any cmdlet I know


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

Reply
0 Kudos
Junaidkhan22
Contributor
Contributor
Jump to solution

Copying templates between datacenters involves duplicating virtual machine configurations, applications, and associated settings from one datacenter to another. This process typically entails exporting the template from the source datacenter, transferring it securely, and then importing it into the target datacenter. Careful consideration of network, storage, and security configurations is vital to ensure seamless integration and functionality across datacenters. Additionally, compliance with data privacy regulations and efficient use of bandwidth and resources are essential factors in this intricate task.

Reply
0 Kudos