VxRail:vMotion 失败,并显示错误“无法准备迁移。网络地址对于转换无效”

Summary: 如何解决即使正确配置了 vMotion VMkernel 端口,在初始阶段也因网络验证错误而失败的 vMotion 问题。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

停机时间不涉及执行此问题的解决方法。
需要重新启动 vpxa 服务,才能在标识的 ESXi 主机上应用已实施的更改。

迁移虚拟机失败,并显示错误:
 Unable to prepare migration. Network address is not valid for translation.

可以在 vmware.log 文件中找到类似的条目。

vmware.log:
2019-04-22T10:31:00.410Z| vmx| I125: VigorTransportProcessClientPayload: opID=ju2ei8q0-213690-auto-4kvv-h5:70071372-69-01-b7-7b41 seq=2144: Receiving Migrate.PrepareSource request.
2019-04-22T10:31:00.410Z| vmx| I125: MigrateVMStrToIpAddr: Invalid IP address vxrail03.xyz.com specified.
2019-04-22T10:31:00.410Z| vmx| I125: MigrateVMXdrToSpec: type: 1 srcIp=<192.168.20.113> dstIp=<192.168.20.115> mid=4b2cdde2919b8679


在注册虚拟机的 ESXi 主机的文件中hostd.log可以看到下面的条目。

hostd.log:
opID=ju2ei8q0-214059-auto-4l64-h5:70071467-cd-01-9f-7e16 user=vpxuser:VSPHERE.LOCAL\Administrator] VMotionPrepare: srcMgmtIp=192.168.x.x
2019-04-22T10:38:24.616Z info hostd[2100849] [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/vsan:52fb3189d1ada8ae-cf21c9911c958035/ede1b75c-a8af-6988-3359-e4434b4db68c/VFM-CRM.vmx opID=ju2ei8q0-214059-auto-4l64-h5:70071467-cd-01-9f-7e16 user=vpxuser:VSPHERE.LOCAL\Administrator] VMotionPrepare: dstMgmtIp=vxrail03.xyz.com
2019-04-22T10:38:24.616Z info hostd[2100849] [Originator@6876

Cause

如果使用 ESXi 主机名而不是 IP 地址更新源管理 IP 参数或目标管理 IP 参数,则会出现此问题。

Resolution

解决方法:

通过 ssh 登录 ESXi 主机

按顺序运行以下命令。

  cd /etc/vmware/vpxa/
  cp vpxa.cfg vpxa_backup.cfg
  vi vpxa.cfg
Locate the <hostIp> YOURHOSTNAME</hostIp> line and modify the hostname to IP address of the host.
Type Esc followed by :wq!
Restart the VPXA service.
Article Properties
Article Number: 000040071
Article Type: Solution
Last Modified: 29 May 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.