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)
--------------------------------------------------------------------------------
## 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???
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!
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!
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!
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!
Your post needs moving to the correct area, so I have reported it to the moderators.
You found the problem, but what is the solution? How do you handle a multihomed vcenter?