VMware Horizon Community
ActiveX
Contributor
Contributor

Migrate Source and Replica VMs to an other ESx Host

Hello,

vCenter 2.5U4, VMware View 3.1.1 - 5 ESX Hosts with ESX 3.5U4

I have to move some ESX Hosts from my Cluster to an other Cluster. I have a mixed environment, so I have VDI and non VDI VMs in the same Cluster... At the moment I migrate the VDI VMs to an other Host before move the Host out from the Cluster. But I am not able to do this for the" Source" and "Replica" VMs. The Migrate Button is greyed out!! So what can I do to move this VMs to an other Host??

Greets

Stefan

0 Kudos
5 Replies
NHCdmont
Enthusiast
Enthusiast

Being quite new to VM View I'm not sure if there's a quick way of doing this, however here's what I'd do...

In View Administrator - Disable the View pools and delete the VM's, once the VM's have been deleted then the source and replica's will be removed.

At this stage you can VMotion everything you need, once happy re-enable the pools - your VM's will be created along with source and replica VM's..

Just my thoughts... good luck.

0 Kudos
jkatz71
Enthusiast
Enthusiast

If you put the host into maintenance mode, the source/replicas get migrated as well. It would be nice to be able to do this per source/replica though.

-jonathan

-jonathan
0 Kudos
ActiveX
Contributor
Contributor

Thanks for the reply but unfortunately I can't recreate my linked clone pool because I have User Data Disks and my users gonna kill me when I delete their disks... Maintanance Mode is also not an option because I have 5 hosts in the Cluster and I wan't that all VDI machines a consolidatet to one Host. When I put one Host in Maintanance mode I can't control that the VDI machines are migratet to exactly the right host.

0 Kudos
WJST
Contributor
Contributor

I ran into the exact same problem with our View environment not to long ago:

By default the source and replica vms are protected, you can unprotect them using the sviconfig tool (part of the vcenter installation):

See:

This can be achieved using the “sviconfig” configuration utility
installed by default on the VCenter server located in the VmwareView
Composer program files folder.
Use the following command line options for sviconfig:

-operation=unprotectentity
-VcUrl=https://VCENTERServer/sdk
-Username=Username
-Password=PASSWORD
-InventoryPath=”/VMDataCenter/vm/VMwareViewComposerReplicaFolder/replica-VM-UID-STRING”

Note:

- It’s not possible to protect the VM’s again. This however, can be done by recreation of the source/replica VM’s.

- carefully test this in a non-production environment first to see if it fits your bill.

More info at: -

- http://www.wjst.nl
0 Kudos
GregorSm
Contributor
Contributor

Fortunately, it is possible to reprotect a replica. The following has just been tested with VMware View Composer 2.6 and VMware View 4.6:

1. SVIConfig -Operation=UnprotectEntity -VCURL=https://vcname/sdk -UserName=Administrator -Password=password -InventoryPath="/DatacenterName/vm/VMwareViewComposerReplicaFolder/replica-6f0d2e85-244b-4f02-985b-daecc60b9bbc" -Recursive=True

2. Migrate... the replica to another host (and back if needed)

3. SVIConfig -Operation=ProtectEntity -VCURL=https://vcname/sdk -UserName=Administrator -Password=password -InventoryPath="/DatacenterName/vm/VMwareViewComposerReplicaFolder/replica-6f0d2e85-244b-4f02-985b-daecc60b9bbc" -Recursive=True

Regards

Gregor

0 Kudos