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.Note: xsconsole freezes when you apply the change. You can use the key sequence CTRL+Z to open the command prompt to complete step 4. Then, use the fg %1 command to return to xsconsole and exit cleanly.
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>To locate the correct PIF uuid for pif-reconfigure command, run the following command:
xe pif-list params=uuid,host-name-label,device,management
From the CLI, run the following command:
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:
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.