Thursday, October 27, 2016

Solving Network problems on Linux VMs when Cloning VMware Virtual machines

Connect to vCenter Server using the vSphere Client
Right-click the virtual machine and click Edit Settings.
Click Network adapter and note the MAC Address.

For example, you see a MAC Address similar to:

00:50:56:86:00:00

Power on the Linux virtual machine.
Open a console and log in as root.
Change directory to etc/sysconfig/network-scripts.
Edit ifcfg-eth0 and  update the MAC address to reflect the MAC address in Step 1
Edit /etc/udev/rules.d/70-persistent-net.rules  and update the MAC address to reflect the MAC address in Step 1

Activate the ethernet card by running this command:

ifup eth0. 



Friday, October 14, 2016

Reset the permissions of all installed Programs

Reset the permissions of  all installed RPM packages

for p in $(rpm -qa); do rpm --setperms $p; done
for p in $(rpm -qa); do rpm --setugids $p; done

Above command combination will reset all the permissions to the default permissions under CentOS / RHEL / Fedora Linux.