Welcome to http://www.marssoft.de/
 
Tuesday, 11th December 2018 22:08:51 (GMT+1) 

Xen Server

Using Debian 5.0.2 'lenny' NetInstall. After installation of debian, added following packages (according to the Synaptic package manager history):

lvm2
bridge-utils (1.4-5)
libc6-xen (2.7-18)
libxenstore3.0 (3.2.1-2)
linux-image-2.6.26-2-xen-686 (2.6.26-17)
linux-modules-2.6.26-2-xen-686 (2.6.26-17)
xen-docs-3.2 (3.2.1-2)
xen-hypervisor-3.2-1-i386 (3.2.1-2)
xen-linux-system-2.6.26-2-xen-686 (2.6.26-17)
xen-utils-3.2-1 (3.2.1-2)
xen-utils-common (3.2.0-2)
xenstore-utils (3.2.1-2)
binutils (2.18.1~cvs20080103-7)
debootstrap (1.0.10lenny1)
libbeecrypt6 (4.1.2-7)
libconfig-inifiles-perl (2.39-5)
libexpect-perl (1.20-1)
libio-pty-perl (1:1.07-1+b1)
libio-stty-perl (0.02-10)
librpm4.4 (4.4.2.3-1)
libterm-readline-gnu-perl (1.17a-2+b1)
libterm-size-perl (0.2-4+b1)
libtext-template-perl (1.44-1.2)
reiserfsprogs (1:3.6.19-6)
rinse (1.3-2)
rpm (4.4.2.3-1)
screen (4.0.3-11+lenny1)
vnstat (1.6-1)
xen-shell (1.8-3)
xen-tools (3.9-4)
xfsprogs (2.9.8-1lenny1)

Create lvm partition on some physical disk

fdisk -l
fdisk /dev/sdb1

Create a volume group, logical volume aka a new partition for the guest system is set up by xen-create-image

pvcreate /dev/sdb2
vgcreate xen_guests /dev/sdb2

Enable network bridging and restart xen deamon:

vi /etc/xen/xen-config.sxp
# enable 
# (network-script network-bridge)
# (vif-script vif-bridge)
# disable
#(network-script network-dummy)

Then restart Xend:

/etc/init.d/xend restart 

Create guest using lvm and fixed ip address using xen-tools, this overrides default setting defined the /etc/xen-tools.cfm file

xen-create-image --hostname=lenny --gateway=192.168.26.1 --ip=192.168.26.8
--netmask=255.255.255.0 --broadcast=192.168.26.255 --lvm=xen_guest
--dist=lenny --size=20GB --memory=1024Mb

Above command takes a litte time, have a look of what is going on

tail -f /var/log/xen-tools/vm01.opak.ch.log 

Making sure the guest console can be seen by the host

mkdir /mnt/lenny
mount -t ext3 /dev/xen_guests/lenny-disk /mnt/lenny/
echo "co:23:respawn:/sbin/getty -L hvc0 9600 vt102" | tee -a
/mnt/lenny/etc/inittab
umount /mnt/lenny/

Start guest using created the 'xen-create-image' generated config file

xm create -c /etc/xen/lenny.cfg

Login for lenny should show up. If not, blame somebody else…

internal/xen_server_debian.txt · Last modified: 2014/04/02 22:39 (external edit)