HP BL680c XenServer Administrator's Guide 4.1.0 - Page 93

VLAN commands, 4.22. VM commands

Page 93 highlights

Command line interface Parameter Name Description Type single-letter military timezone indicator, for example, Z for UTC (GMT) 5.4.20.1. vif-create vif-create vm-uuid=UUID of the VM device=see below network-uuid=UUID of the network the VIF will connect to [mac=MAC address ] Create a new VIF on a VM. Appropriate values for the device field are listed in the parameter allowed-VIF-devices on the specified VM. Before any VIFs exist there, the allowable values are integers from 0-15. The mac parameter is the standard MAC address in the form aa:bb:cc:dd:ee:ff. If you leave it unspecified, an appropriate random MAC address will be created. You can also explicitly set a random MAC address by specifying mac=random. 5.4.20.2. vif-destroy vif-destroy uuid=UUID of VIF Destroy a VIF. 5.4.20.3. vif-plug vif-plug uuid=UUID of VIF Attempt to attach the VIF while the VM is in the running state. 5.4.20.4. vif-unplug vif-unplug uuid=UUID of VIF Attempts to detach the VIF from the VM while it is in the running state. 5.4.21. 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 Section 5.4.10, "PIF commands"). For example, to list VLANs you need to use xe pif-list. 5.4.21.1. vlan-create vlan-create pif-uuid=UUID of PIF vlan=VLAN tag network-uuid=UUID of network Create a new VLAN on a XenServer Host. 5.4.21.2. vlan-destroy vlan-destroy uuid=UUID of PIF mapped to VLAN Destroy a VLAN. Requires the UUID of the PIF that represents the VLAN. 5.4.22. VM commands Commands for controlling VMs and their attributes. 87

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108

Command line interface
87
Parameter Name
Description
Type
single-letter military timezone indicator, for
example, Z for UTC (GMT)
5.4.20.1. vif-create
vif-create
vm-uuid=
UUID of the VM
device=
see below
network-uuid=
UUID of the network
the VIF will connect to
[mac=
MAC address
]
Create a new VIF on a VM.
Appropriate values for the
device
field are listed in the parameter
allowed-VIF-devices
on the spec-
ified VM. Before any VIFs exist there, the allowable values are integers from 0-15.
The
mac
parameter is the standard MAC address in the form
aa:bb:cc:dd:ee:ff
. If you leave it unspecified,
an appropriate random MAC address will be created. You can also explicitly set a random MAC address
by specifying
mac=random
.
5.4.20.2. vif-destroy
vif-destroy
uuid=
UUID of VIF
Destroy a VIF.
5.4.20.3. vif-plug
vif-plug
uuid=
UUID of VIF
Attempt to attach the VIF while the VM is in the running state.
5.4.20.4. vif-unplug
vif-unplug
uuid=
UUID of VIF
Attempts to detach the VIF from the VM while it is in the running state.
5.4.21. 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
Section 5.4.10, “PIF commands”). For example, to list VLANs you need to use
xe pif-list
.
5.4.21.1. vlan-create
vlan-create
pif-uuid=
UUID of PIF
vlan=
VLAN tag
network-uuid=
UUID of network
Create a new VLAN on a XenServer Host.
5.4.21.2. vlan-destroy
vlan-destroy
uuid=
UUID of PIF mapped to VLAN
Destroy a VLAN. Requires the UUID of the PIF that represents the VLAN.
5.4.22. VM commands
Commands for controlling VMs and their attributes.