To add NIC bonds to the pool master and other hosts

1.Use the network-createcommand to create a new pool-wide network for use with the bonded NICs. This step should only be performed once per pool. The UUID of the new network is returned.

xe network-create name-label=<bond0>

2.Use XenCenter or the vm-shutdowncommand to shut down all VMs in the host pool to force all existing VIFs to be unplugged from their current networks. The existing VIFs will be invalid after the bond is enabled.

xe vm-shutdown uuid=<vm_uuid>

3.Use the host-listcommand to find the UUID of the host being configured:

xe host-list

4.Use the pif-listcommand to determine the UUIDs of the PIFs to use in the bond. Include the host- uuid parameter to list only the PIFs on the host being configured:

xe pif-list host-uuid=<host_uuid>

5.Use the bond-createcommand to create the bond, specifying the network UUID created in step 1 and the UUIDs of the PIFs to be bonded, separated by commas. The UUID for the bond is returned.

xe bond-create network-uuid=<network_uuid>pif-uuids=<pif_uuid_1>,<pif_uuid_2>

Note:

See the section called “Controlling the MAC address of the bond” for details on controlling the MAC address used for the bond PIF.

6.Use the pif-listcommand to determine the UUID of the new bond PIF. Include the host-uuidparameter to list only the PIFs on the host being configured:

xe pif-list device=bond0 host-uuid=<host_uuid>

7.Use the pif-reconfigure-ipcommand to configure the desired management interface IP address settings for the bond PIF. See Appendix A, Command line interface for more detail on the options available for the pif-reconfigure-ipcommand. This command must be run directly on the host:

xe pif-reconfigure-ip uuid=<bond_pif_uuid> mode=DHCP

8.Use the host-management-reconfigurecommand to move the management interface from the existing physical PIF to the bond PIF. This step will activate the bond. This command must be run directly on the host:

xe host-management-reconfigure pif-uuid=<bond_pif_uuid>

9.Use the pif-reconfigure-ipcommand to remove the IP address configuration from the non-bonded PIF previously used for the management interface. This step is not strictly necessary, but might help reduce confusion when reviewing the host networking configuration. This command must be run directly on the host:

xe pif-reconfigure-ip uuid=<old_management_pif_uuid> mode=None

10.Move existing VMs to the bond network using the vif-destroyand vif-createcommands. This step can also be completed using XenCenter by editing the VM configuration and connecting the existing VIFs of the VM to the bond network.

11.Repeat steps 3 - 10 for other hosts.

12.Restart the VMs previously shut down.

78

Page 98
Image 98
Citrix Systems 5.6 manual To add NIC bonds to the pool master and other hosts