VMware {code} Community
gferreyra
Enthusiast
Enthusiast
Jump to solution

Cross vcenter migration Error

Hi guys. Cut to the chase.

I can MIGRATE VMS from vCenter 6.7 to vCenter 7, without any issue.

Same vDS (v6.6) on both. Same portgroups.

BUT, i cannot do the reverse. vCenter 7 to 6.7.

With the MOUSE, yes, no problem. (Check the capture)

gferreyra_0-1663971534100.png

--------------------------------------------------------------------------------

## vCenter source and destination

$vc_sour = connect-viserver vcenter1 -User user -Pass pass

$vc_dest = connect-viserver vcenter2 -User user -Pass pass

## VM

$vm = get-vm vmtest -Server $vc_sour

## ESX 

$esx_dest = Get-cluster Production -Server $vc_dest | get-vmhost | get-Random

## Datastore 

$ds = "DatastoreX"

$ds_dest = Get-datastore -Name $ds -Server $vc_dest

## Network

$netsour = Get-NetworkAdapter -vm $vm

$netdest = @()

$netsour | foreach-object { $netdest += Get-VirtualNetwork -Name $_.NetworkName -Server $vc_dest }

## MIGRATION per se

$vm | Move-VM -Destination $esx_dest -Datastore $ds_dest -NetworkAdapter $netsour -Network $netdest -Confirm:$false

-----------------------------------------------------------------------------------

ERROR:

move-vm : 23/9/2022 19:13:10 Move-VM The operation for the entity "vmtest" failed with the following message: "vCenter does not support hosts of this type ( )."
At line:1 char:1
+ move-vm -VM $vm -Destination $hodest -Datastore $dsdest -NetworkAdapt ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Move-VM], NotSupportedHost
+ FullyQualifiedErrorId : Client20_TaskServiceImpl_CheckServerSideTaskUpdates_OperationFailed,VMware.VimAutomation.ViCore.Cmdlets.Comm
ands.MoveVM

What does it mean?

ANY HELP PLEASE???

0 Kudos
1 Solution

Accepted Solutions
gferreyra
Enthusiast
Enthusiast
Jump to solution

Absolutely solved. One of the vcenters is a multihomed one. Problem with secondary IP address.

If your vcenter's have only 1 IP, no problem. Works perfect.

Cheers!

View solution in original post

0 Kudos
5 Replies
gferreyra
Enthusiast
Enthusiast
Jump to solution

No one has ever done cross vcenter migrations? 😞

There has to be a simple error/conception on the script, but i can't figure it out !

IT WORKS ONE WAY, but NOT THE OTHER!

0 Kudos
gferreyra
Enthusiast
Enthusiast
Jump to solution

Absolutely solved. One of the vcenters is a multihomed one. Problem with secondary IP address.

If your vcenter's have only 1 IP, no problem. Works perfect.

Cheers!

0 Kudos
HanzoL0
Contributor
Contributor
Jump to solution

So this should copy the DataStore and other contents from one ESXi host to another? I'd like to do this using Terraform or Ansible toolstacks, but I will test this method, thanks!

0 Kudos
scott28tt
VMware Employee
VMware Employee
Jump to solution

Your post needs moving to the correct area, so I have reported it to the moderators.

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
kn_wno
Contributor
Contributor
Jump to solution

You found the problem, but what is the solution? How do you handle a multihomed vcenter?

0 Kudos