CentOS 6.2 Sysprep for the Linux Impared

## Fix hostname

hostname hostname.domain.com

## check the hostname

sysctl kernel.hostname

## Check network info

cat /etc/sysconfig/network

## Fix Eth0

vi /etc/sysconfig/network-scripts/ifcfg-eth0

## Apply the Eth0 changes

/etc/init.d/network restart

## Fix DNS if necessary

vi /etc/resolv.conf
domain placeholder.com
search placeholder.com
nameserver xx.xx.xx.xx

## If you cloned using VMware vSphere then MACs have changed and you’ll need to fix up your network device.

vi /etc/udev/rules.d/70-persistent-net.rules
-delete eth0 and change eth1 to eth0

EDIT: I was shamed into setting NM_CONTROLLED=”no” because network manager is not a manly way to administer Linux.


4 thoughts on “CentOS 6.2 Sysprep for the Linux Impared

  1. In my VMWare environment I like to delete the 70-persistent-net.rules file before I shut the server down to make a template out of it. Then the system will boot up with eth0 correctly and no MACs memorized.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s