Child pages
  • XenServer Guest Template
Skip to end of metadata
Go to start of metadata

RAM, CPU, Disk: defaults

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

Choose Language

  • Choose a language: C - No Localization
  • Choose a continent or region: Europe
  • Choose a country, territory or area: Germany

Select a Keyboard Layout

  • Keymap to use: German

Configure the network

  • Primary Network Interface: eth0

Configuring the network with DHCP

  • Cancel
  • Continue

Configure the network

  • Network configuration method: configure the network manually
  • IP address: 188.40.177.190
  • Netmask: 255.255.255.224
  • Gateway: 188.40.177.161
  • Name server addresses: 213.133.98.98 213.133.99.99 213.133.100.100 (Leerzeichen, kein Komma als Trennzeichen)

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".

  • Hostname: dsk (dies ist später auch der Name für die LVM Volume Groups, wenn man einen langen Namen wählt, dann sind die devices so lang, dass das "df" Listing sehr unschön aussieht).
  • Domain name: pixsoftware.de

Choose a mirror of the Debian archive

  • Debian archive mirror country: Germany
  • Debian archive mirror: ftp.de.debian.org
  • HTTP proxy information: (blank)

Partition disk

  • Guided - use entire disk and set up LVM
  • Select disk to partition: Virtual disk 1 (xvda) - 10 GB Xen Virtual Block Device
  • Partitioning scheme: All files in one partition (recommended for new users)
  • Write the changes to disk and configure LVM? Yes
  • This is a overview ... : Finish partitioning and write changes to disk
  • Warning ... : Yes

Set up users and passwords

  • Password: *****
  • Re-enter password to verify: *****
  • Full name for the new user: User Name
  • User name for your account: user
  • Choose a password for the new user: *****
  • Re-enter password to verify: *****

Configuring popularity-contest

  • Participate in the package usage survey: No

Software selection

  • Choose software to install: (deselect all choices, using the space key)

Install the GRUB boot loader on a hard disk

  • Install the GRUB boot loader to the master boot record: Yes

Installation complete

  • Installation is complete, ... : Continue

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/xvdd /mnt
dsk:/# /mnt/Linux/install.sh

(früher:

dsk:/# mount -o ro /dev/xdaa /mnt
dsk:/# /mnt/Linux/installation.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

Der Installer installiert das Linux Kernel Paket:
linux-image-2.6-xen und linux-image-2.6.29-xs5.5.0.15
Im allgemeinen gibt es auf der Citrix Website aber einen neueren Kernel. Daher: System updaten und die alten Kernels (auch den Debian Default Kernel) deinstallieren.

apt-get purge linux-image-2.6-686-bigmem linux-image-2.6.26-2-686-bigmem linux-image-2.6.29-xs5.5.0.15

Sources für apt-get ändern (backports hinzufügen, non-free hinzufügen)

# deb http://ftp.de.debian.org/debian/ lenny main

deb http://ftp.de.debian.org/debian/ lenny main non-free
deb-src http://ftp.de.debian.org/debian/ lenny main non-free

deb http://security.debian.org/ lenny/updates main non-free
deb-src http://security.debian.org/ lenny/updates main non-free

deb http://volatile.debian.org/debian-volatile lenny/volatile main non-free
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main non-free

deb http://www.backports.org/debian lenny-backports main contrib non-free

apt-get update
apt-get dist-upgrade

apt-get install ssh sudo zip unzip mcrypt locales pwgen psmisc lsof dnsutils postgresql-client mysql-client

apt-get install ca-certificates file java-common sun-java6-bin sun-java6-jdk sun-java6-jre nfs-common ntp openssl portmap rsync sendemail libmysql-java libpg-java

apt-get install libsqlite3-0 libc-client2007b libpng12-0 libcurl3

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