From Hack Sphere Labs Wiki
Revision as of 14:19, 25 July 2012 by Webdawg (talk | contribs) (Xen)

Jump to: navigation, search



The Xen and debootstrap software in Squeeze (Debian 6.0) are very much newer than that in Lenny. Because of that, working with Xen becomes a lot easier.

The setup described here is tested for Debian Lenny and Ubuntu Maverick virtual machines, but should work for a lot more.

Dom0 (host)

First install the hypervisor, xen kernel and xen-tools. This can be done by a metapackage:

aptitude -P install xen-linux-system

To get Xen HVM support Xen 4.0 Wiki

apt-get install xen-qemu-dm-4.0

Debian Squeeze uses Grub 2 whose default is to list normal kernels first, and only then list the Xen hypervisor and its kernels.

You can change the default kernel to boot in two ways:

  • by a modification to the value of GRUB_DEFAULT in the file /etc/default/grub . The value is an integer starting at 0 representing the order of the menuentry item to boot. You can see a list of all menuentry values in order by typing
grep menuentry /boot/grub/grub.cfg

Count to the number of the first Xen kernel, starting at 0, and enter it in the default file.

  • Swap the default order of kernel detection in GRUB by moving configuration scripts around so that the script that detects normal kernel entries comes after the script that detects Xen dom0 entries:
mv -i /etc/grub.d/10_linux /etc/grub.d/21_linux

After either of these procedures, do an update to the GRUB configuration:



Misc HowTo's

Easy Software Raid

  • Install
  • English
  • US
  • AE
  • Create Partitions on Each Drive using guided partitioning (create it on one disk, go back and do the other)
  • Create RAID Devices
  • Select usable area and assign filesystem and mountpoint
  • Select usable area and assign swap