Once the cloning of your Cloud server with CentOS as operating system is done, you can use the newly deployed machine to test your website or have a pre-production environment. To start operating with your clone you will need to provision your server with a series of prior modifications.
Access the dashboard of the cloned machine and click on the icon corresponding to the SSH console.
Login to the cloned machine with the root user and the password of the original machine (note the special characters in the ASCII code).
Once you have logged into the cloned server you will need to modify the
/etc/sysconfig/network-scripts/ifcfg-eth0 file, for example with the nano editor and modify the existing public IP in the file to the new public IP of the cloned machine, which you will have received by mail.
ifcfg-eth0 file with the initial configuration.
E-mail with the access credentials.
Updated ifcfg-eth0 file.
Once edited you must start the network service by executing the following commands:
nmcli networking off nmcli networking on
You can check the modification of the newly configured IP by executing the command:
Connect via SSH to the new server and modify the
/etc/hostname files changing the original hostname to the hostname you received by email.
Hosts file with the initial configuration.
Hosts file with the final configuration.
hostsname file with the initial configuration.
hostname file with the final configuration.
To change the root password, run the following command, indicating the password you received by e-mail
In this way, the new cloned machine will have the same IP, with its corresponding root name and password finishing the cloning process and starting up the cloned server.
IMPORTANT: to save the changes with the nano editor remember to you will have to press the keys
control + xof the keyboard.