Received the below from Parallels support to resolve the problem with the network interface on a vm deployed from a template being switched from eth0 to eth1. Its a pain having to do this on each and every vm that you deploy from a template but its easily scripted. Not sure if it was located in their knowledge base. If it was I may not of hit the exact search terms required.
Note: One thing that was not mentioned below is the need to change the “HWADDR=” configuration line within your interface config file (ifcfg-eth0) to the new mac address or simply remove it.
During the deployment the MAC address of VM network adapter changes. The new ethernet network device (eth1) is created on Ubuntu and new MAC address is assigned to eth1. eth0 has the old MAC address, eth1 has the new valid MAC address. The system refers to eth0 adapter which has the obsolete MAC address.
We need to disable eth0 with obsolete MAC address and rename the eth1 with valid MAC address into eth0.
Backup the config:
$cp /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.backup
Edit /etc/udev/rules.d/70-persistent-net.rules in vim editor under root permissions.
If you open it:
$vim /etc/udev/rules.d/70-persistent-net.rules
you will see
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# PCI device 0x10ec:0×8029 (ne2k-pci)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:1c:42:cc:ee:c0″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″
# PCI device 0x10ec:0×8029 (prl_eth)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:1c:42:d2:8e:8e”, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth1″
The MAC addresses can differ in your case, in the example above the last record has the valid MAC address “00:1c:42:d2:8e:8e”. You can also check the valid MAC address in the configuration of the virtual machine
Top mac menu bar > Virtual machine > Configure > Hardware > Network 1 >
comment the eth0 device and change the name of eth1 into eth0:
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# PCI device 0x10ec:0×8029 (ne2k-pci)
#SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:1c:42:cc:ee:c0″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″
# PCI device 0x10ec:0×8029 (prl_eth)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:1c:42:d2:8e:8e”, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″
Reboot the virtual machine.