XEN-Lenny

Aus Neobikers Wiki
Version vom 20. August 2009, 16:07 Uhr von Neobiker (Diskussion | Beiträge) (→‎Debian Lenny Grundinstallation)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

Ausgangssituation:

  • Intel Core2Duo 2.13 GHz, 6GB RAM, 2x 500GB + 2x 160 GB Disks, 2x 1000 MBit + 2x 100MBit Ethernet
  • AVM Fritzcard PCI + B1
  • USB Drucker
  • WLAN-DSL Router mit integrierter Firewall (Linux stateful firewall)

Zielsystem:

  • Disks mit RAID1 gespiegelt, Partitionierung mit LVM
  • SnapShot Backup mit rsync
  • XEN 3.4.1 Host-System nur mit DNS/DHCP ohne jegliche weitere Funktionen!
  • Development System (zum Kompilieren usw.)
  • mehrere weitere virtuelle Systeme (Firewall, DMZ, usw.)

Debian Lenny Grundinstallation

Als Hostsystem nehme ich Debian Lenny ohne Debian-XEN sondern mit Standard-XEN.

Ich starte mit einer Grundinstallation von Lenny. Der Bootmanager GRUB kommt in eine eigene Boot-Partition. Dieses Lenny-Grundsystem ist mein Admin- / und -Rescue System, von dem auch auch mein späteres produktives XEN-Hostsystem (und weitere Test-Systeme) installiere.

Da ich Standard-XEN als Host-System verwenden möchte (meine Hardware kann das ab), erstelle ich zuerst ein Developper-System (wie das Zielsystem ein 64Bit System), um darin XEN zu übersetzen. Dann erstelle ich ein Lenny-System ohne XEN und installiere darin das Standard-XEN - das ist dann anschliessend mein produktives XEN-Hostsystem auf Debian Lenny(64-Bit).

Die Aufteilung meiner Partitionen:

m450:~# df /boot
Dateisystem          1K-Blöcke   Benutzt Verfügbar Ben% Eingehängt auf
/dev/md0                186555    125898     51027  72% /boot      # RAID1 ohne LVM

m450:~# pvs
  PV         VG    Fmt  Attr PSize   PFree
  /dev/md1   host  lvm2 a-    19,07G   6,07G
  /dev/md2   vm    lvm2 a-   190,73G 133,23G
  /dev/md3   daten lvm2 a-   255,76G 155,76G

m450:~# vgs
  VG    #PV #LV #SN Attr   VSize   VFree
  daten   1   1   0 wz--n- 255,76G 155,76G
  host    1   6   0 wz--n-  19,07G   6,07G
  vm      1  17   0 wz--n- 190,73G 133,23G

m450:~# lvs host
  LV           VG   Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  root         host -wi-a-   1,50G  # Admin- System
  saved        host -wi-ao   6,00G  # soviel wie RAM, zum Sichern der XEN-VMs (/var/lib/xen/save)
  swap         host -wi-ao 512,00M
  xen          host -wi-a-   1,50G  # Debian XEN System
  xen-unstable host -wi-a-   2,00G  # XEN Unstable Testsystem
  xen341       host -wi-ao   1,50G  # XEN 3.4.1 System (Debian Lenny ohne Debian-XEN)

m450:~# lvs vm
  LV               VG   Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  dmz              vm   -wi-ao   2,00G # DMZ Server (u.a. Reverse Proxy für Scalix Webmail)
  dmz-swap         vm   -wi-ao 512,00M
  efw22            vm   -wi-ao   1,00G # Endian Firewall
  efw22-swap       vm   -wi-ao 512,00M
  efw22-var        vm   -wi-ao   1,50G
  isdn-etch        vm   -wi-a-   2,00G # alte ISDN Inst mit Etch
  isdn-lenny       vm   -wi-ao   2,00G # ISDN (Lenny) mit Capisuite, mtg-Capri, isdnlog, imonc/telmond
  isdn-swap        vm   -wi-ao 512,00M
  scalix           vm   -wi-ao   4,00G # Scalix-System (aktuell Debian)
  scalix-backup    vm   -wi-ao  10,00G # /var/opt/scalix/backup
  scalix-mailstore vm   -wi-ao   4,00G # /var/opt/scalix
  scalix-swap      vm   -wi-ao 512,00M
  srv              vm   -wi-ao   4,00G # Samba + Cups
  srv-swap         vm   -wi-ao 512,00M
  vista            vm   -wi-a-  20,00G # Windows Vista HVM
  vm01             vm   -wi-a-   4,00G # Devel System 32-Bit
  vm01-swap        vm   -wi-a- 512,00M
  vm03             vm   -wi-a-   4,00G # Devel System 64-Bit
  vm03-swap        vm   -wi-a- 512,00M

m450:~# lvs daten
  LV   VG    Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  srv  daten -wi-ao 100,00G # Samba Daten für Domain 'Srv'