Xen3

From OptionC

The Xen 3 packages are making their way into various official (or more official) sites, so this page will just be my own notes on using them.

Table of contents

Getting started

/etc/apt/sources.list

Etch: If you are using etch, most of the packages are in the standard repository

# Etch
## etch repositories
deb ftp://debian.uchicago.edu/debian/ etch main
deb-src ftp://debian.uchicago.edu/debian/ etch main
## etch security 
deb http://security.debian.org/ etch/updates main


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

Sarge: If you are using sarge, most will come from backports

# Sarge
## sarge repositories
deb ftp://debian.uchicago.edu/debian/ sarge main
deb-src ftp://debian.uchicago.edu/debian/ sarge main
## etch security 
deb http://security.debian.org/ sarge/updates main


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

packages to install

This was as of 2006-07-15. Package names may differ, and you might not need/want all these kernels.

  • linux-image-2.6.16-2-xen-686
  • linux-modules-2.6.16-2-xen-686
  • linux-image-2.6.16-2-xen-vserver-686
  • linux-modules-2.6.16-2-xen-vserver-686
  • xen-hypervisor-3.0-i386
  • xen-tools
  • xen-utils-3.0
  • iproute
  • bridge-utils

Also, if you are using etch you can get the custom libc6 to deal with the /lib/tls issue

  • libc6-xen

If you are using sarge, you'll want to

mv /lib/tls /lib/tls.disabled

As of this writing, the install doesn't make the initrd, so you'll want to do it by hand. Also, depending on what hardware you are using, you may need to change /etc/mkinitrd/mkinitrd.conf:

Make sure you have the initrd-tools

apt-get install initrd-tools

(Optional) Change modules line to suit your needs (I believe the options are "none, most, all" and I've been using "all")

# What modules to install.
MODULES=all

Make the initrd

mkinitrd -o initrd.img-2.6.16-2-xen-686 2.6.16-2-xen-686

/boot/grub/menu.lst

Stanza needed (this was installed on /dev/hdc5 - yours is probably on something more normal, like /dev/hda3)

title           etch/Xen3.0.2 2.6.16 
root            (hd0,4)
kernel          /boot/xen-3.0-i386.gz dom0_mem=131072 
module          /boot/vmlinuz-2.6.16-2-xen-686 root=/dev/hdc5 ro console=tty0 ramdisk_size=30720
module          /boot/initrd.img-2.6.16-2-xen-686
boot

/etc/network/interfaces

Xen 3 doesn't automatically create the bridge. Chance /etc/network/interfaces to be something like this:

# /etc/network/interfaces
auto lo
iface lo inet loopback

auto xenbr0
iface xenbr0 inet static
        address 192.168.0.100
        netmask 255.255.255.0
        gateway 192.168.0.1
        bridge_ports eth0
        bridge_maxwait 0

And ifup xenbr0

other bits

Domu

Other

Links

Only tangentially related