Modules

From Cheatsheet

Jump to: navigation, search

http://tldp.org/HOWTO/Module-HOWTO/x146.html

  1. wget linux-xen-kernel from xen.org, this is for version 3.2 to /usr/src and unzip it
  2. apt-get install gcc gawk kernel-package libncurses5-dev fakeroot wget bzip2 build-essential initrd-tools
  3. cd /usr/src/linux-2.6.whatever/
  4. make menuconfig
  5. Device Drivers > Block Devices > <M> Loopback device support > save/exit
  6. make
  7. make modules_install install
  8. cd /boot
 mkinitrd -o /boot/initrd.img-2.6.18.8 2.6.18.8

didn't work, won't boot

apt-get install linux-image-2.6.18-5-xen-vserver-686 xen-hypervisor-3.0.3-1-i386-pae xen-tools xen-linux-system-2.6.18-5-xen-vserver-686 linux-headers-2.6.18-5-xen-vserver-686 libc6-xen bridge-utils

vi /etc/modules and add

 loop max_loop=64

vi /etc/xen/xend-config.sxp and uncomment the following line

 (network-script network-bridge)

restart xend

 /etc/init.d/xend restart

vi /etc/xen-tools/xen-tools.conf and change the configs