Dear Team,
I have RHEL6.1, Rhel6.2, RHEL6.4, RHEL6.5 Templates, whenever I deploy a new VM from these template then everytime I have to set MAC address on ifcfg-ethx and 70-persistent-net.rules, Need ur assistance on the same to resolve this issue.
regards
Mr Vmware
Hello,
You can try the customization spec for Linux, but to be honest I create a template where eth0 has no HWADDR inside it and you can auto modify 70-persistent-net.rules using a one time script in /etc/rc.local to drop the existing eth0 and change eth1 to eth0 something like this as /etc/rc.d/rc.runonce
sed '/eth0/d' 70-persistent-net.rules | sed 's/eth1/eth0/' > 70-persistent-net.rules; rm /etc/rc.d/rc.runonce
and add the following to /etc/rc.d/rc.local
if [ -e /etc/rc.d/rc.runonce ]; then sh -x /etc/rc.d/rc.runonce; done
or something close to that...
Best regards,
Edward L. Haletky
VMware Communities User Moderator, VMware vExpert 2009, 2010, 2011,2012,2013,2014
Author of the books 'VMWare ESX and ESXi in the Enterprise: Planning Deployment Virtualization Servers', Copyright 2011 Pearson Education. 'VMware vSphere and Virtual Infrastructure Security: Securing the Virtual Environment', Copyright 2009 Pearson Education.
Virtualization and Cloud Security Analyst: The Virtualization Practice, LLC -- vSphere Upgrade Saga -- Virtualization Security Round Table Podcast
Please have a look .. http://www.coolcoder.in/2014/02/how-to-change-hostname-ip-address-and.html
