Friday, July 10, 2015

Linux VM template deployment with Guest Customization

Yesterday I was facing some problem with RHEL 6 64bit VM template to be deployed with guest customization later i found out that the resolution

The fix is (at least works for me):
Convert your template back to a VM and power it on.
Login and get root (or login as root)
edit "/etc/udev/rules.d/70-persistent-net.rules" with your fave text editor
remove ALL lines near the bottom of the file after the top block of comments. These will all start with a line like:

          "# PCI device...." & "SUBSYSTEM...."
          delete all of these
   5. Save and exit the file
   6. Shutdown the VM and convert it to template again. DO NOT BOOT THE VM AGAIN before conversion to template. If you do, it will "discover" the NIC again and add a new line to the file and then your clones will be with eth1 again.

The clones from you template should now discover thier newly created NIC and add one set of lines to the file. This will be eth0.