Search This Blog

Saturday, May 28, 2011

Static IP settings lost after conversion

Static IP settings lost after conversion

Symptoms

  • After successful conversion of a source server, the resulting virtual machine's network settings are all set to DHCP
  • Static IP settings that were configured on the source server are not retained on the resulting virtual machine after conversion completes

Resolution

When a server is converted, new virtual network cards are presented to the guest Windows operating system on the resulting virtual machine. When Windows installs the drivers to support the new network cards, the network interfaces assigned to the previous network cards are not re-associated with the new network cards because Windows is not able to map the changes to the adapters. A similar situation happens when a physical network card is replaced on a physical Windows server.
 
You can use the netsh command to save and restore network settings into the new virtual machine.
To save and restore your settings:
  1. Log on to the source server as an Administrator.
  2. Open the Network Connections from the Start menu, and record of the network interface names. These names are used to restore the network settings.
  3. Open a command prompt. For more information, see Opening a command or shell prompt (1003892).
  4. Run the command:

    netsh interface ip dump >> %systemroot%\NetworkSettings.txt
  5. Set all the network interfaces to DHCP (non-static) IP addresses, if possible.
  6. Perform the conversion with VMware Converter.
  7. Start the newly created virtual machine on the destination.
  8. Log on to the source server as an Administrator.
  9. Open the Network Connections folder.
  10. Rename the interfaces in the virtual machine to match the same names that were on the source server.
  11. Open a command prompt. For more information, see Opening a command or shell prompt (1003892) .
  12. Run the command:

    netsh -f %systemroot%\NetworkSettings.txt
Note:  This tool is not available on Windows NT.

Additional Information

After the conversion, you may see a hidden NIC drivers which still holds the static IP addresses that were assigned prior to conversion. When the conversion is complete remove the ghosted NIC drivers to re-assign the static IP address. For more information about ghosted devices, see the Microsoft Knowledge Base article 315539.

No comments:

Post a Comment