- ISO Images: Ensure you have the ISO images for RHEL9 and OEL9 downloaded.
- vSphere Client: Have the vSphere Client open and connected to your vCenter or ESXi host.
- Upload the RHEL9 and OEL9 ISOs to a datastore accessible by the ESXi hosts.
- In the vSphere Client, right-click on the target ESXi host or cluster. Choose New Virtual Machine.
- Follow the wizard:
- Name and Location: Name your VM.
- Compute Resource: Select the host or cluster.
- Storage: Choose the datastore.
- Compatibility: Stick with the default for vSphere 7.
- Guest OS: Choose Linux -> Red Hat Enterprise Linux 9 (or the appropriate version for OEL9).
- Customize Hardware: Attach the RHEL9 or OEL9 ISO image to the virtual CD/DVD drive. Adjust other hardware settings as needed.
- Finish: Review and complete the VM creation.
- Start the VM.
- At the boot screen, modify the boot options to use the
ks.cfg
. Append the boot line with:inst.ks=http://your_server/ks.cfg
.
- Proceed with the installation. The OS will install using settings from the
ks.cfg
.
- Log into the VM after installation.
- Install VMware Tools (
yum install open-vm-tools
).
- Perform any other necessary configurations.
- Clean up (e.g., clear command history with
history -c
).
- Shut down the VM.
- In vSphere Client, right-click on the VM. Select Template > Convert to Template.
- To deploy a new VM from the template, right-click on the template and choose New VM from this Template.