XenServer - How to change the management IP addresses of all hosts in the pool

XenServer - How to change the management IP addresses of all hosts in the pool

book

Article ID: CTX693377

calendar_today

Updated On:

Description

This article describes how to  change the management IP address of all hosts in the pool.


Instructions

    Before changing the management IP address, ensure the following:

      1. High Availability (HA) is disabled

      2. Cluster network is disabled

      3. Disconnected from the WLB server

        • Avoids loss of communication or WLB misconfiguration during IP change.

      4. Detach any SRs that rely on the management IP

        • If the SR (e.g., iSCSI or NFS) is connected using the current management IP, update or detach it to avoid SR mount failure after the IP change.

    To change the management IP address of all hosts in a  pool,  it requires host-by-host changes, and there's no way to change all management IPs simultaneously from the pool. Also, changing the management IP can disconnect the host from the pool, so be sure you plan this with minimal workload and console access.

    You can change the management IP address from either xsconsole or XenCenter but you must not change the IP address of the pool master first.

     Option 1: Using xsconsole (direct console access)

    1. Log into the host's console.

    2. Select Network and Management Interface.

    3. Choose the correct interface (e.g., eth0).

    4. Modify the IP address, subnet, and gateway.

    5. Save and exit.

    Option 2: Using XenCenter

    1. Select the host (not the master).

    2. Go to the Networking tab.

    3. Right-click the management interface.

    4. Click Properties > change the IP configuration.

    5. Click OK to apply changes.

    Finally, change the IP address of the pool master.

    If the changed IP on a pool member causes it to lose communication with the pool coordinator, once all hosts have completed the IP change, you can run the following command on the pool coordinator.

    xe pool-recover-slaves

    If the above command doesn't work, we can manually specify a host as the pool coordinator using the following command. 

    xe pool-emergency-reset-master master-address=<management ip of master>

    Additional Information

    https://docs.xenserver.com/en-us/xencenter/current-release/hosts-management-ip.html#to-change-the-management-interface

    https://support.citrix.com/s/article/CTX121235-how-to-change-the-primary-management-interface-on-xenserver-with-xsconsole