This article describes how to change the IP subnet assigned to the management network on a XenServer pool. This procedure is long compared to changing the IP address while staying in the same subnet.
Working knowledge of XenServer and XenCenter and basic knowledge of the Command Line Interface (CLI) and XenServer console
Access to the physical console of the servers to safely perform the required operations
Proper network and firewall configuration on the LAN to allow the required network traffic to pass (this includes connections to ISO libraries)
To change the IP subnet assigned to the management network on a XenServer pool, complete the following procedure:
Perform a metadata backup and back up the virtual machines before performing the rest of this procedure.
Disable High Availability from XenCenter, if enabled.
Note: Perform the IP changes on the slaves first.
Log on to a pool member from the physical console and change the management interface IP address:
From the xsconsole, select Network and Management Interface > Configure Management Interface.
From the CLI: Run the following command:
xe pif-reconfigure-ip uuid=<UUID of host management PIF> IP=<New IP> gateway=<GatewayIP> netmask=<Subnet Mask> DNS=<DNS Lookup IPs> mode=<dhcp,none,static>
xe pif-list params=uuid,host-name-label,device,management
From the CLI, run the following command:
xe-toolstack-restart
The server enters the emergency mode. Ensure that the server is using the new IP address. You can ping it from another host. Try a Secure Shell connection to it, or use the ifconfig command. Run the xe host-is-in-emergency-mode command from the CLI to ensure that the server is in emergency mode. You should get True as the output.
Note: Reboot is recommended if the server does not enter the emergency mode.
Repeat Steps 3 and 4 on each of the pool members.
Change the management interface IP address on the pool master using Step 3.
Run the following command on the pool master:
xe-toolstack-restart
DO NOT RUN THIS COMMAND ON THE POOL MASTER
From the CLI, on each of the pool members, run the following command:
xe pool-emergency-reset-master master-address=IP_OF_THE_MASTER.
Verify the correct status of the pool. Connect with XenCenter to the new master IP address and check everything from there.
Re-enable High Availability, if required.