Deploy Centos 6 from VMWare Template

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)

 

 

3 thoughts to “Deploy Centos 6 from VMWare Template”

  1. 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

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This blog is kept spam free by WP-SpamFree.