You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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
  • 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)

Install the GRUB boot loader on a hard disk

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

XenServer Tools installieren

xs-tools CD mounten:

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

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

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

  • No labels