Xen Installation Notes

  1. apt-get install x11proto-core-dev zlib1g-dev patch make libc6-dev locales python-dev bridge-utils iproute mercurial subversion gcc udev libncurses-dev ethtool g++ libssl-dev
  2. dpkg -P hotplug
  3. scp -C s.ptmc.org:/backup/xen/home/xen/domains/super.img /home/xen/domains/
  4. carefully move xen0 contents to /
  5. cd /usr/src
  6. mkdir xen-unstable.hg
  7. hg init xen-unstable.hg
  8. cd xen-unstable.hg
  9. hg update
  10. use older make version to avoid rebuilding the whole kernel tree each time: http://snapshot.debian.net/archive/2005/12/15/debian/pool/main/m/make/make_3.80+3.81.b4-1_i386.deb then use dselect and set make to “hold”.
  11. build xen and domU and dom0 kernels and install (see below)
  12. Use grub to boot the Xen0 kernel like this:
    title          Xen 3.0 / XenLinux 2.6
    root           (hd0,1)
    kernel         /boot/xen-3.gz dom0_mem=131072 console=vga
    module         /boot/vmlinuz-2.6.16-xen root=/dev/hda2 ro devfs=nomount
    
  13. Check Xen Issues for necessary patches!!
  14. To apply kernel patches: put patches in patches/linux-[version], remove ref-linux-[version] and linux-[version]-xen(U), make linux-2.6-xen(U)-config, build, install
  15. to (re)compile the dom0 kernel (keeps custom config if it exists), run:
    make linux-2.6-xen-config
    cp ../xen-kernel-config/.config.xen linux-2.6.16.13-xen/.config
    make linux-2.6-xen-config
    make linux-2.6-xen-build -j5
    make linux-2.6-xen-install -j5
    
  16. to build the cowloop module, run make; make install in /usr/src/cowloop
  17. to (re)compile the domU kernel (keeps custom config if it exists), run:
    make linux-2.6-xenU-config
    cp ../xen-kernel-config/.config.xenU linux-2.6.16.13-xenU/.config
    make linux-2.6-xenU-config
    make linux-2.6-xenU-build -j5
    make linux-2.6-xenU-install -j5
    /home/xen/scripts/inject_xenU-modules.sh
    
  18. To update to the latest Xen (builds everything but the kernels):
    hg pull -u
    make clean
    rm -rf dist
    make dist-xen dist-tools dist-docs -j5
    mkdir dist/check
    cp tools/check/chk tools/check/check_* dist/check
    rm dist/install/etc/xen/xend-config.sxp
    ./install.sh
    

    and (re-)apply any Xen kernel patches now.

  19. To check out a specific revision: hg co -C 9515
  20. To run the xen daemon:
    update-rc.d xend defaults
    /etc/init.d/xend start
    

Building Debian Packages

  1. Check out xen unstable
  2. export CONCURRENCY_LEVEL=32
  3. make linux-2.6-xen-config
  4. (apply patches?) (apply .config?) need cramfs!!
  5. cd <kernelsource-xen>
  6. time make-kpkg --uc --us --revision 1 --append-to-version -kasuari-dom0 --initrd buildpackage
  7. cd ..
  8. make linux-2.6-xenU-config
  9. (apply patches?) (apply .config?)
  10. cd <kernelsource-xenU>
  11. mv Makefile Makefile.orig
  12. cat Makefile.orig | sed -e 's/-xenU/-xenu/' > Makefile
  13. time make-kpkg --uc --us --revision 1 --append-to-version -kasuari-domu buildpackage
  14. cd ..
  15. make xen tools docs -j32
 
xen/installation.txt · Last modified: 2006/08/10 20:00 by Christoph
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Run by Debian Driven by DokuWiki