photo of sanduhrs
Stefan Auditor sanduhrs
erdfisch
Hans-Bunte-Straße 6
69124 Heidelberg
Baden-Württemberg
Germany
+49 (0) 6221 751 560 10
31. July 2010 - 2:54

Installation notes on Xen 3.0.2 on Debian Etch

This is a short note of my latest xen installation.

Setup Debian Etch (testing) as usual
This is Xen installation procedure

update-grub
apt-get install xen-hypervisor-3.0-i386 xen-utils-3.0 iproute bridge-utils libc6-xen xen-tools
apt-get install libc6-xen #for etch
wget http://bits.xensource.com/Xen/latest/xen-3.0.2-install-x86_32.tgz
tar
-xvzf xen-3.0.2-install-x86_32.tgz
cd xen-3.0.2-2-install/
sh ./install.sh
nano /boot/grub/menu.lst

add the following in front of the former entries
title     Xen 3.0 / XenLinux 2.6
kernel    /boot/xen-3.0.gz console=vga
module    /boot/vmlinuz-2.6-xen root=/dev/hda1 ro console=tty0

Disable tls for performance reasons:
mv /lib/tls /lib/tls.disabled #for sarge

restart and pray ;)

Create a virtual machine

xen-create-image --hostname=vm01 --dir=/home/xen --size=2Gb --swap=128Mb --memory=32Mb --ip=192.168.0.200 --gateway=192.168.0.1 --netmask=255.255.255.0

I had to edit /etc/xen/vm01.cfg and change the following lines from

kernel  = '/boot/vmlinuz-2.6.16-1-xen-686'
ramdisk = '/boot/initrd.img-2.6.16-1-xen-686'

to
kernel  = '/boot/vmlinuz-2.6.16-xen'
#ramdisk = '/boot/initrd.img-2.6.16-1-xen-686'

Start the virtual machine

xm create vm01.cfg -c

Login as root whithout password.
set the paswword

passwd root

You may now setup and update the system as usual

/usr/sbin/base-config
aptitude update
aptitude upgrade

or logout and relogin via ssh to do the setup.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

Website powered by lovely Drupal · Microformats · XML Feed · Valid XHTML, CSS · No www.