Dom0 Modifications for Resize/Migration Support
To get resize to work with XenServer (and XCP) you need to:
Establish a root trust between all hypervisor nodes of your
deployment:
You can do so by generating an ssh key-pair (with
ssh-keygen) and then ensuring
that each of your dom0's
authorized_keys file (located
in /root/.ssh/authorized_keys)
contains the public key fingerprint (located in
/root/.ssh/id_rsa.pub).
Provide an /images mount point
to your hypervisor's dom0:
Dom0 space is a premium so creating a directory in
dom0 is kind of dangerous, and almost surely bound to
fail especially when resizing big servers. The least
you can do is to symlink /images
to your local storage SR. The instructions below work
for an English-based installation of XenServer (and
XCP) and in the case of ext3 based SR (with which the
resize functionality is known to work
correctly).
# LOCAL_SR=$(xe sr-list name-label="Local storage" --minimal)
# IMG_DIR="/var/run/sr-mount/$LOCAL_SR/images"
# mkdir -p "$IMG_DIR"
# ln -s "$IMG_DIR" /images