Create a Rocky 9 Image for Vmware

  1. Install epel-release:
yum -y install epel-release
  1. 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
  1. Yum Update:
yum -y update
  1. Run command:
rpm -qa kernel | sed 's/^kernel-//'  | xargs -I {} dracut -f /boot/initramfs-{}.img {}
  1. Set SELinux to permissive mode by editing the following file:
/etc/selinux/config

  1. Reboot the VM.

  2. Change the network device name to ‘eth0’ by editing the following file:

/etc/udev/rules.d/70-net_persistent_names.rules

  1. Reboot the VM.

  2. Check the network device name has been changed to ‘eth0’.

  3. Run command:

cloud-init clean
  1. Clear the command history:
cat /dev/null > ~/.bash_history && history -c && exit
  1. Shutdown the VM:
shutdown -h now
  1. Detach any install media from the image VM.

  2. Convert the VM to template.

  3. Refresh the cloud in Morpheus so it can sync in the new template.

  4. Edit the image in Morpheus as shown below:

  5. Done.

4 Likes