...
When root runs command xm
(does not work, as intended):
- The shell runs /usr/sbin/xm which is a symlink to /usr/lib/xen-common/bin/xen-toolstack-wrapper
- /usr/lib/xen-common/bin/xen-toolstack-wrapper:
- Sources /usr/lib/xen-common/bin/xen-toolstack to set TOOLSTACK to /usr/lib/xen-4.1/bin/xl
- Sources /usr/lib/xen-common/bin/xen-dir to set dir to /usr/lib/xen-4.1
- Sources /usr/lib/xen-common/bin/xen-version to set VERSION to 4.1
- /usr/lib/xen-common/bin/xen-version gets Xen version info from /sys/hypervisor/version/*
- Sets PATH to /usr/lib/xen-4.1/bin
- Sources /etc/default/xen to set TOOLSTACK to xl (would fall back to hardcoded default otherwise)
- Sets TOOLSTACK to /usr/lib/xen-4.1/bin/xl
- Generates message "ERROR: A different toolstack (xl) have been selected!"
...
There are several ways to install Debian in a DomU. The xen-create-image method is very convenient. It uses the Debian Installer's debootstrap.
debootstrap
Installs into a chroot. Can use only one repository (which may be a local cache).
...
"Debian installer" is the standard Debian installation system; it supports installation of standard Debian as a Xen PV.
...
title | Pre-seeding |
---|
If we use either of the Debian installer methods, pre-seeding would be advantageous both for creating installations that differ only as intended and – more importantly – to accelerate re-installation during disaster recovery. This might be very useful for all Debian and ubuntu installations, not just DomUs.
...
References:
...
...
...
Actually FAI (http://fai-project.org/ and BLUE-1325) is the way to go but it will take too long to familiarise with it.
Even pre-seeding is non-trivial so decided not to delay the first installation by using it.
References:
- http://wiki.xenproject.org/wiki/wiki/Debian_Guest_Installation_Using_Debian_Installer
- Debian GNU/Linux Installation Guide (Wheezy 64-bit version): http://www.debian.org/releases/stable/amd64/
...
http://www.debian.org/releases/stable/amd64/ch04s05.html.en
.iso image
Installing from a .iso image is the method we are most familiar with so a good choice, at least for the first DomUs.
...
title | Installation method decision |
---|
24 July 2014
Decided to install from a .iso rather than any of the other choices because:
...
Not as easy as using xen-create-image
xen-create-image (from xen-tools)
...