Network connection lost after vCSA restore
Today we encountered a strange error after restoring a vCenter Server Appliance (vCSA) in our vCloud Director environment.
You would expect that a restore of a virtual machine would return it to its original state at the time of the back-up. As it turns out this is not the case when restoring a vCenter Server Appliance (vCSA), vSphere Data Protection (VDP) Appliance or vSphere Management Assistant (vMA).
The first thing we noticed was that it took a very long time (10 minutes) for the vCenter Server Appliance to start up.
This is very unusual because with the underlying hardware and the reserved resources this would normally take less then a minute.
When finished the console shows ‘NO NETWORKING DETECTED. Please configure your network.‘ So Network connection lost.
You will notice that the console also shows no IP address and to manage the appliance you should connect to https://0.0.0.0:5480 (good luck with that).
The reason that there is no network connection is quite strange. The restore of the vCenter Server Appliance did return it to its original state at the time of the back-up, but for some strange reason a new MAC address is generated for the appliance. The MAC address is stored in a configuration file that does not get updated with the new MAC address, which causes the appliance to not be able to find the correct NIC. The operation creates a new UUID and so a new Mac Address is assigned for the virtual NIC. As a result the virtual NIC is now detected as ‘eth1‘ rather than ‘eth0‘.
Eventually we found VMware KB article 2012451 which describes how to resolve this issue on the vCenter Server Appliance (vCSA), vSphere Data Protection (VDP) Appliance or vSphere Management Assistant (vMA).
To resolve this issue on the vCenter Server Appliance:
- Right-click the vCenter Server Appliance Virtual Machine and click Edit Settings.
- Click Network adapter 1 and record the new MAC Address value. Click OK.
- Power on the vCenter Server Appliance and click the Console tab.
- Log into the vCenter Server Appliance with root credentials.
- Change directory to /etc/udev/rules.d/:cd /etc/udev/rules.d/
- Back up the /etc/udev/rules.d/70-persistent-net.rules file.
- Open the /etc/udev/rules.d/70-persistent-net.rules file in a text editor, and change the MAC address to the value recorded in step 2 for eth0.
For example:SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:50:56:aa:52:39″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″ - Comment out the line corresponding to the eth1 interface.
- Save and close the file.
- Restart the vCenter Server Appliance.
After the restart our vCenter Server Appliance is up and running again.
Tags In
Related Posts
1 Comment
Leave a Reply Cancel reply
You must be logged in to post a comment.
Deleting both entries and rebooting is faster. ;-)