This is just a quick gotcha that I found ages ago then forgot about and then had to figure out again. Before you convert the VM to a template.
rm /etc/udev/rules.d/70-persistent-net.rules
sed -i ‘/HWADDR*/d’ /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i ‘/UUID*/d’ /etc/sysconfig/network-scripts/ifcfg-eth0
Update:
This also applies to SLES 11 SP2 (use /etc/sysconfig/network/ifcfg-eth0)
Thanks for your text!
a little correction:
sed -i “/HWADDR*/d” /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i “/UUID*/d” /etc/sysconfig/network-scripts/ifcfg-eth0
You can use either single quotes or double quotes with sed for the expression, both will work.
The command sys-unconfig that the job for you too.