38
By default, XenServer uses the local disk on the physical host on which it is installed. The Linux Logical Volume
Manager (LVM) is used to manage VM storage. A VDI is implemented in VHD format in an LVM logical volume
of the specified size.
XenServer versions prior to 6.0 did not use the VHD format and will remain in legacy mode. See the section called
“Upgrading LVM Storage from XenServer 5.0 or Earlier” for information about upgrading a storage repository to
the new format.

Creating a Local LVM SR (lvm)

Device-config parameters for lvm SRs are:
Parameter Name Description Required?
Device device name on the local host to
use for the SR
Yes
To create a local lvm SR on /dev/sdb use the following command.
xe sr-create host-uuid=<valid_uuid> content-type=user \
name-label=<"Example Local LVM SR"> shared=false \
device-config:device=/dev/sdb type=lvm
Local EXT3 VHD
The Local EXT3 VHD type represents disks as VHD files stored on a local path.
Local disks can also be configured with a local EXT SR to serve VDIs stored in the VHD format. Local disk EXT SRs
must be configured using the XenServer CLI.
By definition, local disks are not shared across pools of XenServer host. As a consequence, VMs whose VDIs are
stored in SRs on local disks are not agile-- they cannot be migrated between XenServer hosts in a resource pool.

Creating a Local EXT3 SR (ext)

Device-config parameters for ext SRs:
Parameter Name Description Required?
Device device name on the local host to
use for the SR
Yes
To create a local ext SR on /dev/sdb use the following command:
xe sr-create host-uuid=<valid_uuid> content-type=user \
name-label=<"Example Local EXT3 SR"> shared=false \
device-config:device=/dev/sdb type=ext
udev
The udev type represents devices plugged in using the udev device manager as VDIs.
XenServer has two SRs of type udev that represent removable storage. One is for the CD or DVD disk in the
physical CD or DVD-ROM drive of the XenServer host. The other is for a USB device plugged into a USB port of
the XenServer host. VDIs that represent the media come and go as disks or USB sticks are inserted and removed.
ISO
The ISO type handles CD images stored as files in ISO format. This SR type is useful for creating shared ISO libraries.
For storage repositories that store a library of ISOs, the content-type parameter must be set to iso.
For example: