XenDebianBackports

From Wiki

(Difference between revisions)
Jump to: navigation, search
Line 6: Line 6:
* This How-to is the EXACT same as is outlined here: http://www.debian-administration.org/articles/423
* This How-to is the EXACT same as is outlined here: http://www.debian-administration.org/articles/423
 +
=== Add in Backports ===
vi /etc/apt/sources.list
vi /etc/apt/sources.list
  deb http://www.backports.org/debian/ sarge-backports main
  deb http://www.backports.org/debian/ sarge-backports main
Line 42: Line 43:
  Pin-Priority: 999
  Pin-Priority: 999
Note that for Backports, we can specify which packages can be used from backports. The dependencies are figured out from Documents and trial & error.
Note that for Backports, we can specify which packages can be used from backports. The dependencies are figured out from Documents and trial & error.
 +
 +
=== Now - Update, Dist-upgrade to recieve backports and get packages. ===
 +
apt-get update && apt-get dist-upgrade
 +
 +
apt-get install grub/sarge-backports
 +
apt-get install makedev/sarge-backports
 +
apt-get install lsb-base/sarge-backports
 +
apt-get upgrade
 +
 +
apt-get install xen-hypervisor-3.0-i386 xen-utils-3.0
 +
apt-get install linux-image-2.6.16-2-xen-686
 +
//or if your on AMD:
 +
#apt-get install linux-image-2.6.16-2-xen-k7
 +
//or if your on a Hetzner Server (see bottom of page):
 +
#apt-get install linux-image-2.6.16-1-xen-k7
 +
 +
dpkg --purge hotplug
 +
apt-get install bridge-utils xen-tools/sarge-backports sysfsutils
 +
mv /lib/tls/ /lib/tls.disabled
 +
 +
=== Make initial RAM Disk Module to LOAD Xen Kernel ===
 +
cd /boot
 +
mkinitramfs -o /boot/initrd.img-2.6.16-2-xen-686 2.6.16-2-xen-686
 +
//or if your on a Hetzner Server - make appropriate change to:
 +
#mkinitramfs -o /boot/initrd.img-2.6.16-1-xen-k7 2.6.16-1-xen-k7
 +
 +
=== Configure Grub and Xen Config ===
 +
vi /boot/grub/menu.lst
 +
//Please Make appropriate Changes if your on a Hetzner Server!!!!
 +
title Xen 3.0 / XenLinux 2.6-686
 +
kernel /boot/xen-3.0-i386.gz
 +
module /boot/vmlinuz-2.6.16-2-xen-686 root=/dev/md0 ro
 +
module /boot/initrd.img-2.6.16-2-xen-686
 +
 +
'''My Current Grub Config'''

Revision as of 10:01, 13 September 2006

Contents

Install Xen 3 from Scratch on Debian Sarge using Backports

Introduction to Backports http://en.wikipedia.org/wiki/Backport

Debian Backports are created to allow newer software run on existing systems.

Add in Backports

vi /etc/apt/sources.list

deb http://www.backports.org/debian/ sarge-backports main

vi /etc/apt/preferences

Package: *
Pin: release a=sarge-backports
Pin-Priority: 200 

Package: xen-3.0
Pin: release a=sarge-backports
Pin-Priority: 999

Package: linux-2.6
Pin: release a=sarge-backports
Pin-Priority: 999

Package: xen-tools
Pin: release a=sarge-backports
Pin-Priority: 999

Package: udev
Pin: release a=sarge-backports
Pin-Priority: 999

Package: lsb
Pin: release a=sarge-backports
Pin-Priority: 999

Package: module-init-tools
Pin: release a=sarge-backports
Pin-Priority: 999

Package: grub
Pin: release a=sarge-backports
Pin-Priority: 999

Note that for Backports, we can specify which packages can be used from backports. The dependencies are figured out from Documents and trial & error.

Now - Update, Dist-upgrade to recieve backports and get packages.

apt-get update && apt-get dist-upgrade
apt-get install grub/sarge-backports
apt-get install makedev/sarge-backports
apt-get install lsb-base/sarge-backports
apt-get upgrade

apt-get install xen-hypervisor-3.0-i386 xen-utils-3.0
apt-get install linux-image-2.6.16-2-xen-686
//or if your on AMD:
#apt-get install linux-image-2.6.16-2-xen-k7
//or if your on a Hetzner Server (see bottom of page):
#apt-get install linux-image-2.6.16-1-xen-k7

dpkg --purge hotplug
apt-get install bridge-utils xen-tools/sarge-backports sysfsutils
mv /lib/tls/ /lib/tls.disabled

Make initial RAM Disk Module to LOAD Xen Kernel

cd /boot
mkinitramfs -o /boot/initrd.img-2.6.16-2-xen-686 2.6.16-2-xen-686
//or if your on a Hetzner Server - make appropriate change to:
#mkinitramfs -o /boot/initrd.img-2.6.16-1-xen-k7 2.6.16-1-xen-k7

Configure Grub and Xen Config

vi /boot/grub/menu.lst //Please Make appropriate Changes if your on a Hetzner Server!!!!

title Xen 3.0 / XenLinux 2.6-686
kernel /boot/xen-3.0-i386.gz
module /boot/vmlinuz-2.6.16-2-xen-686 root=/dev/md0 ro
module /boot/initrd.img-2.6.16-2-xen-686

My Current Grub Config

Personal tools