# Changing the Domain Name For the Hosted Engine

You can change the domain name on an appliance with the Hosted Engine (OVIRT engine) and the CommServe VM.

## Procedure

1. Edit the hosts file on the CommServe VM, Hosted Engine and the nodes and add the new IP for the respective entity.

2. Login to the Hosted Engine using a terminal emulator like PuTTy, and backup the hosted engine using the following command:

       # engine-backup --mode=$[backup] --scope=$[all] --file=$[engine_backup.dat] --log=$[engine_backup.log]

3. Set the MediaAgents associated with the nodes in the Maintenance mode. For more information about setting the MediaAgents in the Maintenance mode, see Setting the MediaAgent on Maintenance Mode.

4. Login to one of the nodes and set the hosted engine in the maintenance mode using the following command:

       hosted-engine --set-maintenance --mode=$[global]

5. Run the following command on each of the nodes, substituting the new IP address, gateway and netmask:

       # echo '{"networks": {"ovirtmgmt": {"bonding": "$[bond0]", "bridged": $[true], "ipaddr": "", "netmask": "", "gateway": "", "defaultRoute": $[true]}}, "bondings": {}, "options": {"connectivityCheck": $[false]}}' | vdsm-client -f - Host setupNetworks

6. Commit the changes in nodes 1 to 3 (which hosts the hosted engine) using the following command:

       # vdsm-client Host setSafeNetworkConfig

7. On nodes that do not host the hosted engine, locate and edit the following file (using Nano) to reflect the new IP address, gateway and netmask.

   `/etc/sysconfig/network-scripts/ifcfg-eno3`

   Use the following to commit the changes.

   `systemctl restart network`

8. Login to one of the nodes and remove the maintenance mode on the hosted engine.

       hosted- engine --set-maintenance --mode=$[none]

9. Access the hosted engine using the following command:

       # hosted-engine --console

10. Updated the ip address, gateway and netmask for both the `ifcfg-eth0` files.

    Use Vi to edit the files. (Nano is not available in the hosted engine.)

11. Restart network using the following command:

        systemctl restart network

12. Login to the hosted engine and download the virt viewer.

13. Open the virt viewer and perform the following steps:

    1. From the Virtual Machines tab, use the Console option log in to the CommServe VM.

    2. In the CommServe VM, navigate to Control Panel> Network Connections.

    3. Right-click Ethernet Connection and select Properties.

    4. Select Internet Protocol Version 4 (TCP/IPv4) and then click the Properties button.

    5. Set the new static IP and DNS server addresses.

    6. Click OK twice to close the windows.

14. Start the Command Center and confirm that all entities are accessible using the Check Readiness operation. For more information about checking readiness, see Checking Readiness.

×

Loading...