RAM, CPU, Disk: defaults

Debian 5.0 installieren (http://ftp.debian.org/debian)

Choose Language

Select a Keyboard Layout

Configure the network

Configuring the network with DHCP

Configure the network

Jetzt sollte ein Hostname angezeigt werden. Wenn dort "debian" steht, dann gibt es ein Problem mit dem Netzwerk (kein Zugriff auf den Name Server möglich). Andernfalls steht dort "static".

Choose a mirror of the Debian archive

Partition disk

Set up users and passwords

Configuring popularity-contest

Software selection

Install the GRUB boot loader on a hard disk

Installation complete

Weitere Software installieren

# wget -q http://updates.vmd.citrix.com/XenServer/5.5.0/GPG-KEY -O- | apt-key add -
OK

XenServer Tools installieren

xs-tools CD mounten:

dsk:/# mount -o ro /dev/xdaa /mnt
dsk:/# /mnt/Linux/installation.sh
bzw.
dsk:/# mount -o ro /dev/xvdd /mnt
dsk:/# /mnt/Linux/install.sh

Detected `Debian 5.0.3' (debian version 5).

The following changes will be made to this Virtual Machine:
  * packages to be installed/upgraded:
    - linux-image-2.6.29-xs5.5.0.14_161_i386.deb
    - linux-image-2.6-xen_2.6.29-xs5.5.0.14_i386.deb
    - xe-guest-utilities_5.5.0-458_i386.deb

Continue? [y/n]

...

Updating /boot/grub/menu.lst ... done


You should now reboot this Virtual Machine.
dsk:/# reboot

cd /lib/modules/2.6.29-xs5.5.0.14
mv kernel kernel.old
apt-get update
apt-get upgrade
reboot

apt-get install ssh sudo zip unzip mcrypt locales pwgen
apt-get purge linux-image-2.6-686-bigmem linux-image-2.6.26-2-686-bigmem linux-image-2.6-xen

chgrp 100 `find / -gid 101`
chgrp 101 `find / -gid 103`

passwd, group, shadow, gshadow kopieren, shadow owner: root.shadow

hosts hostname motd: srv in master umbenennen

master kopieren, neue storage größe einstellen

fdisk /dev/xvda

Partition 2 löschen
Partition 2 neu anlegen
Type Partition 2: LVM

reboot

pvresize /dev/xvda2

lvresize -l +100%FREE /dev/srv/root
Extending logical volume root to 48.89 GB
Logical volume root successfully resized

v0200:~# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/srv-root 19493340 564716 17938416 4% /
tmpfs 265540 0 265540 0% /lib/init/rw
udev 10240 2616 7624 26% /dev
tmpfs 265540 0 265540 0% /dev/shm
/dev/xvda1 233335 14874 206013 7% /boot

v0200:~# resize2fs /dev/srv/root

resize2fs 1.41.3 (12-Oct-2008)
Filesystem at /dev/srv/root is mounted on /; on-line resizing required
old desc_blocks = 2, new_desc_blocks = 4
Performing an on-line resize of /dev/srv/root to 12816384 (4k) blocks.
The filesystem on /dev/srv/root is now 12816384 blocks long.

v0200:~# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/srv-root 50464028 572788 47334288 2% /
tmpfs 265540 0 265540 0% /lib/init/rw
udev 10240 2616 7624 26% /dev
tmpfs 265540 0 265540 0% /dev/shm
/dev/xvda1 233335 14874 206013 7% /boot

reboot