LINUXOR.SK ... open source notes ...

2007 - Debian 4 - Xen dom0

category: howtoz · date: 2008-01-10 · source: old.linuxor.sk/VIRTUALIZATION/BASIC/BH_Debian4.0_XEN_dom0.txt

The Slovak original of this document: 2007 - Debian 4 - Xen dom0 (slovensky).

asciiart
|=----------------------------------=[ XEN ]=------------------------------=|
+---------------------------------------------------------------------------+
|                                                                           |
|                               XEN - dom0 (vmware)                         |
|                                 Debian 4.0 Etch                           |
|                                                                           |
+---------------------------------------------------------------------------+
|=-------------------------------=[ BH 2007 ]=-----------------------------=|

1. Poziadavky na system

asciiart
        CPU
        ---
        * Jeden alebo viac 64bit x86 procesor(ov)
        * minimum - 1.5 GHz
        * odporucane - 2 GHz alebo multicore

        RAM
        ---
        * minimum - 1 GB
        * odporucane - 2 GB alebo viac

        DISK
        ----
        Lokalne pripojeny datovy sklad (PATA, SATA, SCSI)
        * minimum - 16 GB diskoveho priestoru
        * odporucane - 60 GB a viac

        SIET
        ----
        A 100 Mbit/s network card, or faster.
        A gigabit network card is recommended, to speed up the physical-to-virtual conversion and
        of data transfers on export/import and for live relocation
        Virtualnych strojov.

2. Schema particii + parametre

asciiart
        WMWARE - 20 GB disk
        -------------------
        /boot         - 200 MB
        swap          - 1,5 GB
        /root (LVM)   - 8 GB
        /x1-www (LVM) - 3 GB
        /x1-db (LVM)  - 3 GB

        # cat /etc/fstab
        ----------------
        /dev/mapper/system-root         /               ext3            defaults,errors=remount-ro 0       1
        /dev/sda1                       /boot           ext3            defaults        0       2
        /dev/mapper/system-x1--www      /x1-www         ext3            defaults        0       2
        /dev/mapper/system-x2--db       /x2-db          ext3            defaults        0       2
        /dev/mapper/system-swap         none            swap            sw              0       0
        /dev/hdc                        /media/cdrom0   udf,iso9660     user,noauto     0       0
        /dev/fd0                        /media/floppy0  auto            rw,user,noauto  0       0
        ---------------- END /etc/fstab

3. Install zakladny software

asciiart
        # apt-get install ssh mc

4. Install XEN

asciiart
        V balickovom repozitari Debianu Etch sa nachadzaju 3 verzie XEN jadier:
        -----------------------------------------------------------------------
        a/ s podporou PAE (xen-linux-system-2.6.18-5-xen-686)
        b/ bez podpory PAE (linux-image-2.6.18-5-xen)
        c/ XEN + vserver ()

        PAE: http://en.wikipedia.org/wiki/Physical_Address_Extension

        When installing the XEN kernel, take care that the right kernel is installed.
        Ak sa nainstaluje zla verzia jadra, system vobec nenabehne a skonci s chybovou hlaskou:
        'Mismatch between Xen and DOM0 kernel'

        a/ Install XEN-PAE (tested)
        ---------------------------
        Although PAE is meant for systems with more than 4 GB of memory we use this kernel, since
        the standard Debian kernel is PAE, and using a non-PAE XEN kernel caused a mismatch.

        # apt-get install xen-linux-system-2.6.18-5-xen-686
        # apt-get install libc6-xen
        # init 6

        Problem 1 - booting the system with the XEN kernel produced a great many of these messages
        ------------------------------------------------------------------------------------------
        '4gb seg fixup, process sshd (pid 1162), cs:ip 73:008d8cfc'
        'printk: 185714 messages suppressed.'

        Riesenie1 - nainstalujeme XEN GLIBC (libc6-xen)
        -----------------------------------------------
        # apt-get install libc6-xen

        b/ Install XEN bez PAE
        ----------------------
        For a XEN kernel without PAE support these packages have to be installed separately:
        - linux-image-2.6.18-5-xen kernel
        - xen-utils
        - xen-hypervisor

        c/ Install XEN + vserver
        ------------------------
        Kedze nechceme mat v systeme bordel, nebudeme mixovat virtualizacne nastroje a tak toto
        jadro nebudeme pouzivat.

5. Siet - nastavenie bridge

asciiart
        # apt-get install bridge-utils

        # nano /etc/xen/xend-config.sxp
        -------------------------------
        (network-script network-bridge)

X. Linkz

asciiart
        XEN na DEBIANe dom0
        -------------------
        http://www.howtoforge.com/debian_etch_xen_3.1
        http://www.jejik.com/articles/2007/03/a_test_drive_of_debian_etch_xen/
← howtoz(EN | SK)