wiki:install_debian_xen

Version 9 (modified by Jamie McClelland, 11 years ago) (diff)

--

Setup xen

  • Install with (change the version number of xen-linux-system-2.6.18-4-xen-686 to the version you need; also on amd64 machines you don't libc6-xen):
aptitude install xen-hypervisor xen-linux-system-2.6.18-4-xen-686 libc6-xen
  • Edit /boot/grub/menu.1st
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=dom0_mem=131072 com1=115200,8n1

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0 console=ttyS0,115200n8

  • run update-grub and reboot
  • Install bridge-utils and xen-tools
aptitude install bridge-utils xen-tools
  • Apply the following diff to /etc/xen/xend-config.sxp
--- xend-config.sxp.orig	2008-03-13 17:42:22.000000000 -0400
+++ xend-config.sxp	2008-03-13 17:41:05.000000000 -0400

@@ -68,7 +68,7 @@
 #
 # use
 #
-(network-script network-bridge)
+# (network-script network-bridge)
 #
 # Your default ethernet device is used as the outgoing interface, by default. 
 # To use a different one (e.g. eth1) use
@@ -84,7 +84,7 @@
 # two fake interfaces per guest domain.  To do things like this, write
 # yourself a wrapper script, and call network-bridge from it, as appropriate.
 #
-#(network-script network-dummy)
+(network-script network-dummy)
 
 # The script used to control virtual interfaces.  This can be overridden on a
 # per-vif basis when creating a domain or a configuring a new vif.  The
  • Restart xen
/etc/init.d/xend restart
  • Edit /etc/xen-tools/xen-tools.conf. Apply the following diffs:
0 gramsci:/etc/xen-tools# diff -u xen-tools.conf.orig xen-tools.conf
--- xen-tools.conf.orig 2007-05-27 19:59:38.000000000 -0400
+++ xen-tools.conf      2007-05-27 20:01:15.000000000 -0400
@@ -35,6 +35,7 @@
#
##
# lvm = skx-vg
+lvm = vg_gramsci0


#
@@ -61,7 +62,7 @@
##
#
# copy = /path/to/pristine/image
-# debootstrap = 1
+debootstrap = 1
# rpmstrap = 1
# tar = /path/to/img.tar
#
@@ -95,7 +96,7 @@
swap   = 128Mb    # Swap size
# noswap = 1      # Don't use swap at all for the new system.
fs     = ext3     # use the EXT3 filesystem for the disk image.
-dist   = sarge    # Default distribution to install.
+dist   = etch     # Default distribution to install.
image  = sparse   # Specify sparse vs. full disk images.

#
@@ -154,8 +155,8 @@
#
# Default kernel and ramdisk to use for the virtual servers
#
-kernel = /boot/vmlinuz-2.6.16-2-xen-686
-initrd = /boot/initrd.img-2.6.16-2-xen-686
+kernel = /boot/vmlinuz-2.6.18-5-xen-686
+initrd = /boot/initrd.img-2.6.18-5-xen-686

#
#  The architecture to use when using debootstrap or rpmstrap.
1 gramsci:/etc/xen-tools#