Install Guide

NOTE: The puppet_certname.sh script that runs on startup of the VM clone attempts to
install the ruby “inifile” and “hashie” gems from the Internet. If there is no internet connection, it
generates error messages to communicate with rubygems.org.
4. It would be less error-prone to require the user to install the gems in the source VM rather than
having them installed when the clone VM starts up. To do this, you need to:
Remove the gem install lines from puppet_certname.sh.
Manually run the gem installs either with the instructions on how to set a proxy or how to install
the gems by downloading them directly.
5. You must update the Network Interfaces so that it will not be associated with the base virtual
machine MAC address (varies based on OS, examples below). To update it, run the following:
RHEL/CentOS:
rm /etc/udev/rules.d/70-persistent-net.rules
rm/lib/udev/rules.d/75-persistent-net-generator.rules
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
RHEL 7
Remove MAC Address from the interface configuration file. For example,
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-ens192
NOTE: Interface naming on RHEL 7 VM depends on the various factors provided at https://
access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/
Networking_Guide/ch-Consistent_Network_Device_Naming.html#sec-
Naming_Schemes_Hierarchy
Debian/Ubuntu:
rm /lib/udev/rules.d/75-persistent-net-generator.rules
6. Configure cronjob to execute the puppet_certname.sh script and restart or start the puppet service.
Type the following commands:
crontab –e
a. Add the following line to this file and then save and exit the file.
@reboot /usr/local/bin/puppet_certname.sh; /etc/init.d/puppet restart
RHEL 7
@reboot /usr/local/bin/puppet_certname.sh
b. Run the following command, and ensure that you see the above line, to verify the crontab is
updated as expected or not,
crontab -l
7. After completing customization, turn off the virtual machine. To create a virtual machine template,
follow the appropriate steps for virtualization environment.
NOTE: After preparing the base virtual machine, in case the virtual machine is restarted, the
puppet verification file will need to be deleted from system. This file can be found in Windows
at C:\ProgramData\puppet_verification_run.txt or in Linux at /var/lib/
puppet_verification_run.txt.
25