Upgrading vCenter Server Appliance 5.x to 6.0 fails with the error: Fatal error during network configuration migration failed
search cancel

Upgrading vCenter Server Appliance 5.x to 6.0 fails with the error: Fatal error during network configuration migration failed

book

Article ID: 313901

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • Upgrading vCenter Server Appliance 5.x to 6.0 fails with the error:

    Internal error occurs during export.
    Fatal error during network configuration Migration Failed.
     
  • In the /var/log/firstboot/cloudvmInstallStatus.json file of the destination vCenter Server Appliance 6.0, you see message similar to:
{
"status": "error",
"info": [],
"question": null,
"progress_message": null,
"warning": [],
"error": {
"resolution": null,
"detail": [
{
"args": [
"<IP_Address>/<prefix>/<subnet_mask>"
],
"id": "install.setnet.set.network.badnw",
"localized": "Invalid IP Address/Prefix provided <IP_Address>/<prefix>/<subnet_mask>",",
"translatable": "Invalid IP Address/Prefix provided %(0)s"
},
{
"id": "install.setnet.set.network",
"localized": "Failed to set network",
"translatable": "Failed to set network"
}
],
"componentKey": "setnet",
"problemId": null
},
"progress": 0
 
where <IP_Address> is the IP address of the source vCenter Server Appliance, <prefix> is the prefix, and <subnet_mask> is the subnet mask.


Environment

VMware vCenter Server Appliance 5.5.x
VMware vCenter Server Appliance 6.0.x
VMware vCenter Server Appliance 5.1.x

Cause

This issue occurs due to a misconfiguration in /etc/sysconfig/network/ifcfg-eth0 file of the source vCenter Appliance.
 
For example: IPADDR contains both the IP address and the prefix.
 
DEVICE='eth0'
BOOTPROTO='static'
STARTMODE='auto'
TYPE='Ethernet'
USERCONTROL='no'
ETHTOOL_OPTIONS=''
MTU=''
NAME=''
NETWORK=''
REMOTE_IPADDR=''
IPADDR='IP_Address/prefix'
NETMASK='255.255.248.0'
BROADCAST=''
 
 
The IP is saved as <IP_Address>/<prefix> in the eth0 file. Therefore, when the virtual machine transfers the IP of vCenter Server Appliance, it appends the netmask to the IP and prefix and tries to apply an IP in the format of <IP_Address>/<prefix>/<subnet_mask> which fails at the setnet command.

Resolution

To resolve this issue, modify the IPADDR entry in source vCenter Appliance to include only one subnet mask.
 
  1. Open the /etc/sysconfig/network/ifcfg-eth0 file.
  2. Modify the IPADDR entry by removing the prefix.
     
    For example:
     
    DEVICE='eth0'
    BOOTPROTO='static'
    STARTMODE='auto'
    TYPE='Ethernet'
    USERCONTROL='no'
    ETHTOOL_OPTIONS=''
    MTU=''
    NAME=''
    NETWORK=''
    REMOTE_IPADDR=''
    IPADDR='IP_Address'
    NETMASK='255.255.248.0'
    BROADCAST=''

     
  3. Run these commands to restart network:

    service network stop
    service network start

     
  4. Attempt the upgrade again.
 
 


Additional Information

For more information, see VMware vCenter Server 6.0 Update 1 Release Notes

将 vCenter Server Appliance 5.x 升级到 6.0 失败,并出现以下错误:网络配置迁移失败时发生致命错误 (Fatal error during network configuration migration failed)