Xen Dom0 on Debian Testing

From brainsik
Jump to navigation Jump to search

Important: This page should be considered as hints for use in conjuction with the much better instructions on Xen on Debian. This page was created during a very brief experimental run with the "testing" distribution and is not well tested or thought out.


IMHO, the Debian xen package isn't ready (yes, i realize it is in unstable). This page was modeled after Debian Dom0 on Debian Sarge which includes instructions for install Xen onto Debian Sarge. These instructions are aimed towards installations on Debian "testing" and thus differ slightly.

Using a nightly build of the Debian Installer, install the base system. To keep a (probably overly) clean system, do not install any of the software collections during the system setup. Not even the "Standard system".

Install any extra personal packages you may need.

aptitude install most less vim sudo screen ssh

Install packages necessary for xen:

aptitude install iproute iproute-dev bridge-utils python-twisted \
         licurl3 libcurl3-dev bzip2 libncurses5-dev make         \
         python python-dev gcc-3.4

The latest Xen source code can be found at http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads.html

Get, unpack, and build the source:

cd /usr/local/src
wget http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-2.0.7-src.tgz 
cd xen-2.0
make CC=gcc-3.4 world
sudo make CC=gcc-3.4 install

Modify the kernel config:

cd /usr/local/src/xen-2.0/linux-2.6.11-xen0
make ARCH=xen menuconfig
sudo make clean
cd ..
sudo make CC=gcc-3.4 kernels
sudo make CC=gcc-3.4 install-kernels