HP BL680c XenServer Administrator's Guide 4.1.0 - Page 11

Installing and managing VMs on shared storage, 5. Removing a XenServer Host from a resource pool

Page 11 highlights

XenServer Hosts and resource pools xe pool-list 4. Set the shared storage as the pool-wide default with the command xe pool-param-set uuid=pool-uuid default-SR=sr-uuid Since the shared storage has been set as the pool-wide default, all future VMs will have their disks created on shared storage by default. 2.4. Installing and managing VMs on shared storage Procedure 2.3. Installing a Debian Etch (4.0) VM 1. Open a text console on any XenServer Host in the pool. 2. Create the Debian VM by issuing he command xe vm-install template="Debian Etch 4.0" new-name-label=etch When the command completes, the Debian VM will be ready to start. 3. Start the Debian VM with the command xe vm-start vm=etch The master will choose a XenServer Host from the pool to start the VM. If the on parameter is provided, the VM will start on the specified XenServer Host. If the requested XenServer Host is unable to start the VM, the command will fail. To request that a VM is always started on a particular XenServer Host, set the affinity parameter of the VM to the UUID of the desired XenServer Host using the xe vmparam-set command. Once set, the system will start the VM there if it can; if it cannot, it will default to choosing from the set of possible XenServer Hosts. 4. Use XenMotion to move the Debian VM to XenServer Host b with the command xe vm-migrate vm=etch host=b --live When this command returns, the VM will have been relocated to XenServer Host b. During this process the VM keeps running to minimize the amount of downtime. 2.5. Removing a XenServer Host from a resource pool When a XenServer Host is removed (ejected) from a pool, the machine is rebooted, reinitialized, and left in a state equivalent to that after a fresh installation. It is important not to eject a XenServer Host from a pool if there is important data on the local disks. 5

  • 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

XenServer Hosts
and resource pools
5
xe pool-list
4.
Set the shared storage as the pool-wide default with the command
xe pool-param-set uuid=
pool-uuid
default-SR=
sr-uuid
Since the shared storage has been set as the pool-wide default, all future VMs will have their disks
created on shared storage by default.
2.4. Installing and managing VMs on shared storage
Procedure 2.3. Installing a Debian Etch (4.0) VM
1.
Open a text console on any XenServer Host in the pool.
2.
Create the Debian VM by issuing he command
xe vm-install template="Debian Etch 4.0" new-name-label=
etch
When the command completes, the Debian VM will be ready to start.
3.
Start the Debian VM with the command
xe vm-start vm=
etch
The master will choose a XenServer Host from the pool to start the VM. If the
on
parameter is provided,
the VM will start on the specified XenServer Host. If the requested XenServer Host is unable to start
the VM, the command will fail. To request that a VM is always started on a particular XenServer Host,
set the
affinity
parameter of the VM to the UUID of the desired XenServer Host using the
xe vm-
param-set
command. Once set, the system will start the VM there if it can; if it cannot, it will default to
choosing from the set of possible XenServer Hosts.
4.
Use XenMotion to move the Debian VM to XenServer Host
b
with the command
xe vm-migrate vm=
etch
host=
b
--live
When this command returns, the VM will have been relocated to XenServer Host
b
. During this process
the VM keeps running to minimize the amount of downtime.
2.5. Removing a XenServer Host from a resource pool
When a XenServer Host is removed (
ejected
) from a pool, the machine is rebooted, reinitialized, and left
in a state equivalent to that after a fresh installation. It is important not to eject a XenServer Host from a
pool if there is important data on the local disks.