XenServer

From Omnia
Revision as of 20:20, 11 July 2014 by Kenneth (talk | contribs) (→‎Auto-Start VM)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Citrix XenServer

Sub Articles

.

Configure dom0 Memory

Get current:

free
/opt/xensource/libexec/xen-cmdline --get-xen dom0_mem
# example:
# dom0_mem=752M,max:752M

Set new:

# /opt/xensource/libexec/xen-cmdline --set-xen dom0_mem=<nn>M,max:<nn>M
/opt/xensource/libexec/xen-cmdline --set-xen dom0_mem=2048M,max:2048M 
reboot

Note: <nn> represents the memory in megabytes, to be allocated to dom0. This value should be between 1024 and 4096, depending on the number of VMs that are expected to run and the total memory of the host. A higher value results in less memory being available to the VMs.

References:

Local Storage Repository

Find disk id:

cat /proc/partitions
ll /dev/disk/by-id

Create SR:

xe sr-create content-type=user device-config:device=/dev/disk/by-id/<scsi-xxxxxxxxxxxxxxxxxxxxxxxxx> host-uuid=<host-uuid> name-label=”Local Storage 2” shared=false type=lvm

References:

Auto-Start VM

1. Configure XenServer to allow Auto-Start

Get XenServer UUID:

xe pool-list

Allow autostart

xe pool-param-set uuid=[UUID] other-config:auto_poweron=true

2. Set VM to Auto-Start:

Get VM UUID:

xe vm-list

Set VM to auto start:

xe vm-param-set uuid=[UUID] other-config:auto_poweron=true

References:

Remove Server from Pool

xe pool-list
xe pool-param-set name-label="" uuid=[POOL_UUID]

keywords