Change hostname and join Active Directory without leaving AD of previous hostname

Latest response

RHEL 7.5
sssd-ad

This RHEL7 instance is running as a VM guest using VMWare as the hypervisor. It is joined to Windows Active Directory (AD) using the realm command.

Now a snapshot of this VM will be made so that it becomes a "master", so that new VMs can be created as clones. The master VM will keep on running and is still joined to the AD domain using its hostname.

When the clone is started, it will have the same hostname as the original / master VM. I need to change the hostname ( which is easy ) and have it join AD domain using the new hostname. However, joining the AD domain with the new hostname is not possible as it still recongizes that it is "joined" to the domain. I cannot have the clone VM "leave" the domain as that will also make the original / master VM that is already running "leave" the domain as far as Active Directory is concerned.

So is there a way to tell the RHEL VM that its new name is not currently joined to the AD domain ( without affecting the master RHEL VM that is up and running ) ?

Responses