i need to perform cluster migration from source to destination cluster in the same vcenter. There is no shared storage and each cluster is connected to different distributed vswitch.
I am getting the following error ""Currently connected network interface" 'Network adapter 1' uses network 'DVSwitch: 80 32 14 50 ca 30 4b 0d-af 50 f3 d6 22 36 b4 be', which is not accessible."
This is the command I am using to migrate the VM.
get-vm $_.vmname | move-vm -Destination $desthost -networkadapter $destnetworkadapter -portgroup $destPG -Datastore $dsinfo -RunAsync -Confirm:$false
Please help me fix this issue.
Have you checked KB1003830?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi LucD, I have checked the KB.
I am able to perform the hot migration manually using the GUI.
As we have many VMs(1000+) to be migrated, we need to script it for the ease of use.
since the source and destination clusters are connected to different DVS I suppose we are getting this error.
Is there any fix for this error as it would help us to perform this large scale migration.
The only option I know is to connect the ESXi nodes from both clusters to the same VDS.
You can remove the ESXi nodes from the source cluster after the migration is done.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference