- Install epel-release:
yum -y install epel-release
- Install git, wget, curl, cloud-init, cloud-utils-gropart, and open-vm-tools:
yum -y install git wget curl cloud-init cloud-utils-growpart open-vm-tools
- Yum Update:
yum -y update
- Run command:
rpm -qa kernel | sed 's/^kernel-//' | xargs -I {} dracut -f /boot/initramfs-{}.img {}
- Set SELinux to permissive mode by editing the following file:
/etc/selinux/config
-
Reboot the VM.
-
Change the network device name to ‘eth0’ by editing the following file:
/etc/udev/rules.d/70-net_persistent_names.rules
-
Reboot the VM.
-
Check the network device name has been changed to ‘eth0’.
-
Run command:
cloud-init clean
- Clear the command history:
cat /dev/null > ~/.bash_history && history -c && exit
- Shutdown the VM:
shutdown -h now
-
Detach any install media from the image VM.
-
Convert the VM to template.
-
Refresh the cloud in Morpheus so it can sync in the new template.
-
Edit the image in Morpheus as shown below:
-
Done.