knfitz22
Contributor
Contributor

How to migrate vms from one data center to another

I have two VMware environments at two different data centers in different states. I want to migrate some of the VMs from one data center to another. I've heard you can storage vmotion across data centers with the VMware bridge option or by failing over with vsphere replication. What is the safest and best way to migrate VMs across data centers? Do I need to buy some kind of VMware option?

7 Replies
abhilashhb
VMware Employee
VMware Employee

vSphere replication can't do a vmotion across sites. It replicates the VM to another site and cold boots the machine. Maybe while testing or actual disaster recovery.


vSphere Replication does not have a separate license. You can use vSphere Replication if you have an edition of vSphere that includes the vSphere Replication license.

vSphere Essentials Plus

vSphere Standard

vSphere Enterprise

vSphere Enterprise Plus

If you have the correct vSphere license, there is no limit on the number of virtual machines that you can replicate by using vSphere Replication.

------------------------------------------------------------------------------------------------------------------------------------ If you find this or any other answer useful please mark the answer as correct or helpful. Abhilash B | Blog : http://vpirate.in | Twitter : @abhilashhb | LinkedIn : https://www.linkedin.com/in/abhilashhb/ |
0 Kudos
knfitz22
Contributor
Contributor

Is there a way to do a storage vmotion across data centers in VMware?

Is vsphere the same as vcenter?

How do I confirm what edition I have?

0 Kudos
abhilashhb
VMware Employee
VMware Employee

If you go to your vcenter and click on a host. Then go to configuration---> licensed features you'll know what license you have and Vsphere replication will be listed there if you have any of the above license.

Vsphere is the complete set of datacenter virtualization. It includes esxi and vcenter and many other products.

------------------------------------------------------------------------------------------------------------------------------------ If you find this or any other answer useful please mark the answer as correct or helpful. Abhilash B | Blog : http://vpirate.in | Twitter : @abhilashhb | LinkedIn : https://www.linkedin.com/in/abhilashhb/ |
0 Kudos
knfitz22
Contributor
Contributor

awesome, that just leaves two questions. How do I setup vsphere replication and is there a way to migrate VMs across datacenters whether it's live or not and how do I set that up?

0 Kudos
knfitz22
Contributor
Contributor

REading this KB article it says I have to have SRM for vsphere replication? Does that come with these editions also?

VMware KB: vSphere Replication FAQ

0 Kudos
vMarkusK1985
Expert
Expert

I had the same Problem and created a PowerCLI Script to do that offline but fast for me.

http://mycloudrevolution.com/2016/04/20/script-vsphere-vm-zwischen-datacenter-verlagern/

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
0 Kudos
mythink_cp
Contributor
Contributor

Have the same issue I found a work around and the is to cheat.

First off lest clarify the environment.

- All my datacenters / ESX host use the same storage

- All my datacenters are under the same vcenter

Issue unabe to migrate a VM out off existing data center.

- Right click VM Migrate only get host option in the datacenter

- Drag and drop the host to esx host in another data center doesn't work

work around drag the esx host out of the target datacenter to source datacenter (i.e. the one hosting the VM you wish to migrate)

then migrate your VM to the ESX Host

Then move the ESX host back to it's original Datacenter.

The other alternative for me would have been shutdown the VM, Remove the VM from Inventory. Then from the Target host browse the Datastore. Import the VM. Then start the VM.

I hope this helps.

0 Kudos