XenSource
Skip navigation links
Overview Expand Overview
Products Expand Products
Solutions Expand Solutions
Support Services Expand Support Services
Partners Expand Partners
About Us Expand About Us
How to Buy

3.2. Configuring virtual network interfaces for VMs

To add a new virtual interface to a VM called windows via the CLI

  1. Open a host text console on any XenServer Host in the pool.

  2. Find the UUID of a VM named “windows” by: xe vm-list params=uuid name-label=windows.

    The UUID is printed on the terminal.

  3. Add the virtual interface to a VM called “windows” by: xe vif-create vm-uuid=uuid network-uuid=uuid device=0.

    The device is a number which uniquely identifies the virtual NIC (0, 1, 2, etc.) to a VM. The UUID of the new virtual interface will be printed on the terminal. Note that if the VM is online, the interface will not have been plugged in.

To hotplug a new virtual interface into a VM called “windows” via the CLI

  1. Open a host text console on any XenServer Host in the pool.

  2. Plug the VIF by: xe vif-plug uuid=vif-uuid.

    For this to work the VM must have the XenSource Tools installed.