Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 251579

Re: We need to migrate 200 Windows XP/Windows server 2003 VM’s from one vCenter (say vCenterA vSphere 4.0) to another vCenter (vCenterB vSphere 5.0)

$
0
0

Do you see the VXM path for all the VMs ? Do a

 

Get-VM|SelectName,@{N="VMX";E={$vm.ExtensionData.Config.Files.VmPathName}

 

To answer the question (script 2)  try changing the beginning of script2 as follows

 

...
$vm
=New-VM-Name$_.Name-VMFilePath$_.VMX-VMHost (Get-Cluster-Name  $Clusters|Get-VMHost|Get-Random) -Confirm:$false
Get-VM
$vm|Get-NetworkAdapter|Set-NetworkAdapter-NetworkName$NewPortGroup-Confirm:$false    dowrite-Host"Validating the $vm PortGroup"
  sleep10
}
until (Get-VM$vm|Get-NetworkAdapter|Where {$_.NetworkNameeq$NewPortGroup })     write-Host"$vm has been mapped to $NewPortGroup"
$question
=Get-VMQuestion-VM$vm
if($question){  Set-VMQuestion-VM$vm-DefaultOption-Confirm:$false
}
Start-VM-VM$vm-Confirm:$false
....

 

When the Start-VM succeeds, the Update -Tools should run.


Viewing all articles
Browse latest Browse all 251579

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>