Skip to main content

 Resolving Cross-vCenter Migration Issues with Large VMs (>30TB)

Credits of this article:

During cross-vCenter migrations, we encountered issues with large VMs (>30TB), resulting in prolonged migration times (days) and frequent failures (every 3rd migration). VMware support provided a workaround to extend the port reservation timeout.

*Workaround Steps:*

Step 1:

 SSH to vCenter and take a backup `vpxd.cfg`: 

cp /etc/vmware-vpx/vpxd.cfg /etc/vmware-vpx/vpxd.cfg.bak
 

Step 2:

  Edit `vpxd.cfg` and add below
```
<vpxd>
<dvs>
<PortReserveTimeoutInMin>7200</PortReserveTimeoutInMin>
</dvs>
</vpxd>

```
 

This extends the port reservation timeout to 5 days (7200 minutes).

1. Restart `vpxd` service: `service-control --restart vmware-vpxd`
2. Retry vMotion for large VMs.
3. Post-migration, revert `vpxd.cfg` to its original state: `cp /etc/vmware-vpx/vpxd.cfg.bak /etc/vmware-vpx/vpxd.cfg`
4. Restart `vpxd` service again.

*Note:*

- This workaround requires vCenter downtime due to the `vpxd` service restart.
- This solution is specifically for large VM migrations (>30TB) and should be reverted post-migration.



Comments

Popular posts from this blog

Create a vCenter role using vCenter MOB

 Requirement: Finding a way to automate the creation of Role for any services with its permissions. Example: Citrix service account to be integrated with vCenter. Steps: 1) Login to vCenter : https://192.168.1.68/mob  2) Click on 'Content'                3) Click on Authorization Manager                                     4) Click on  'AddAuthorizationRole'                             5) Provide name in name field & privId in xml format & Click Invoke Method                        This should give you a return value and then the Role will be reflected on vCenter. 

Script to collect LLDP Information of all the hosts connected to vCenter

  Challenge : To have a clean inventory of host to switch mapping, we had to gather the lldp information of all the ESXi hosts. It would be easier if the hosts are a few/ in a single digit.  We had to find an easy and automated script which can generate the output.  Pre-requisites : 1) Requires power-cli to be installed. 2) Install-Module -Name VMware.PowerCLI -Scope CurrentUser  Powershell script :  1) To ignore ssl certificate error Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$true  2) Script to connect to vCenter and provide valid credentials, and the script will provide the output in a csv format to the provided location, which can be customized.  # Array of vCenter Server names or IP addresses $vCenterServers = @("192.168.1.62") # Add all your vCenter Servers here # Output file path $OutputPath = "C:\Users\asyed\Documents\ESXi_LLDP_Report1.csv" # Change this to your desired output path # --- Script Start --- Write-Host "Con...

Script to Collect the BMC/OOB/CIMC IP Address of ESXi hosts connected to vCenter

 Requirement: We needed to collect all the iDRAC/ILO/CIMC/OOB/BMC IPs of the ESXi host connected to vCenter Note: Create a directory and update the path. Script: # Prompt for vCenter $vcenter = Read-Host "Enter vCenter IP or FQDN" $cred = Get-Credential # Output file $OutputPath = "C:\Users\TestUser\Documents\ESXi_Full_Report.csv" # Connect Connect-VIServer -Server $vcenter -Credential $cred -WarningAction SilentlyContinue Write-Host "Connected to vCenter. Gathering data..." -ForegroundColor Green $report = @() $vmhosts = Get-VMHost foreach ($vmhost in $vmhosts) {     Write-Host "Processing host: $($vmhost.Name)" -ForegroundColor Cyan     $view = Get-View $vmhost.Id     # --- SERIAL NUMBER LOGIC ---     $serial = $view.Hardware.SystemInfo.SerialNumber     if (-not $serial) {         foreach ($id in $view.Summary.Hardware.OtherIdentifyingInfo) {             if ($id.IdentifierType.Key ...