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
- Error: Device 2049 (vbd) could not be connected. Backend dev (http://lists.xensource.com/archives/html/xen-users/2006-04/msg00968.html)
- Error: Device 2065 (vbd) could not be connected ... is mounted in a guest domain (http://article.gmane.org/gmane.comp.emulators.xen.user/13048)
Domu
Other
Links
- Xen 3 for Debian (http://julien.danjou.info/xen.html)
- Xen 3.0 Binary Downloads (http://www.xensource.com/products/downloads/dl_x30tarball_bt.html)
- Xen 3.0.2 Source tarball (http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-3.0.2-2-src.tgz)
- Installing Xen 3.0 upon Debian Sarge (http://www.debian-administration.org/articles/304)
- Xen and Gentoo (http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo)
- xmexample1 (http://lxr.xensource.com/lxr/source/tools/examples/xmexample1)
- xen and ubuntu (from source (http://polydistortion.net/monkey/archives/2006/04/21/003695.html)
Only tangentially related
- XenoServer Platform Wiki (http://vm03-bcn-london.deploy.xenoserver.org/XenoWiki/FrontPage)
- Xen Docs (http://www.xensource.com/products/xen/documentation.html)
- AOE (http://en.wikipedia.org/wiki/ATA-over-Ethernet) not "Age of Empires"
- COD: Cluster-On-Demand (http://www.cs.duke.edu/nicl/cod/)
- Rescue
- SystemImager® (http://www.systemimager.org/doc/html/index.html)
- Mondo Rescue (http://www.mondorescue.org/)
- Net/PXE/Diskless boot
- PXELINUX Questions (http://syslinux.zytor.com/pxe.php)
- Debian over NFS (http://www.sigsegv.cx/diskless-2.html)
- Diskless cluster nodes with Debian (http://geco.phys.columbia.edu/~jrollins/howtos/diskless.html)
- Diskless boot at cambridge (http://lists.xensource.com/archives/html/xen-devel/2005-04/msg00427.html)

