Appendix A
Installing Xen / XenLinux on
Debian
The Debian project provides a tool called debootstrap which allows a base Debian
system to be installed into a filesystem without requiring the host system to have any
Debian-specific software (such as apt.
Here’s some info how to install Debian 3.1 (Sarge) for an unprivileged Xen domain:
1. Set up Xen 2.0 and test that it’s working, as described earlier in this manual.
2. Create disk images for root-fs and swap (alternatively, you might create dedi-
cated partitions, LVM logical volumes, etc. if that suits your setup).
dd if=/dev/zero of=/path/diskimage bs=1024k count=size_in_mbytes
dd if=/dev/zero of=/path/swapimage bs=1024k count=size_in_mbytes
If you’re going to use this filesystem / disk image only as a ‘template’ for other
vm disk images, something like 300 MB should be enough.. (of course it de-
pends what kind of packages you are planning to install to the template)
3. Create the filesystem and initialise the swap image
mkfs.ext3 /path/diskimage
mkswap /path/swapimage
4. Mount the disk image for installation
mount -o loop /path/diskimage /mnt/disk
5. Install debootstrap
Make sure you have debootstrap installed on the host. If you are running Debian
sarge (3.1 / testing) or unstable you can install it by running apt-get install
debootstrap. Otherwise, it can be downloaded from the Debian project web-
site.
6. Install Debian base to the disk image:
debootstrap --arch i386 sarge /mnt/disk \
43
Comentarios a estos manuales