Attempts to detach the VIF from the VM while it is running.

VLAN commands

Commands for working with VLANs (virtual networks). To list and edit virtual interfaces, refer to the PIF commands, which have a VLAN parameter to signal that they have an associated virtual network (see the section called “PIF commands”). For example, to list VLANs you need to use xe pif-list.

vlan-create

vlan-createpif-uuid=<uuid_of_pif>vlan=<vlan_number> network-uuid=<uuid_of_network>

Create a new VLAN on a XenServer host.

pool-vlan-create

vlan-createpif-uuid=<uuid_of_pif>vlan=<vlan_number> network-uuid=<uuid_of_network>

Create a new VLAN on all hosts on a pool, by determining which interface (for example, eth0) the specified network is on (on each host) and creating and plugging a new PIF object one each host accordingly.

vlan-destroy

vlan-destroyuuid=<uuid_of_pif_mapped_to_vlan>

Destroy a VLAN. Requires the UUID of the PIF that represents the VLAN.

VM commands

Commands for controlling VMs and their attributes.

VM selectors

Several of the commands listed here have a common mechanism for selecting one or more VMs on which to perform the operation. The simplest way is by supplying the argument vm=<name_or_uuid>. An easy way to get the uuid of an actual VM is to, for example, execute xe vm-listpower-state=running. (The full list of fields that can be matched can be obtained by the command xe vm-listparams-all. ) For example, specifying power-state=haltedwill select all VMs whose power-stateparameter is equal to halted. Where multiple VMs are matching, the option --multiplemust be specified to perform the operation. The full list of parameters that can be matched is described at the beginning of this section, and can be obtained by the command xe vm-list params=all.

The VM objects can be listed with the standard object listing command (xe vm-list), and the parameters manipulated with the standard parameter commands. See the section called “Low-level param commands” for details.

VM parameters

VMs have the following parameters:

195

Page 215
Image 215
Citrix Systems 5.6 manual Vlan commands, VM commands, VM selectors, VM parameters