Changeset 1858 for trunk/server


Ignore:
Timestamp:
May 21, 2011, 7:27:03 PM (13 years ago)
Author:
quentin
Message:
Update host install instructions for Squeeze
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/doc/install-xen

    r1693 r1858  
    1 # install Hardy
    2 # this involves complicated partitioning (with lvm)
    3 # the popular version of Grub doesn't cope with this.
    4 # Thus, we need a boot partition not under LVM
    5 # allocate about 1G for /root ext3 filesystem
    6 # partition the two disks the same way
    7 # that means you have two disks, each with a 1G partition and
    8 # a "rest-of-the-space"G partition
    9 # now, combine the two 1G partitions into a RAID 1 (as /boot ext3)
    10 # take the two other partitions, another RAID 1 (set up as lvm)
    11 # create one volume group the same as the host
    12 # in that volume group, create two lvs one of them named root (ext3)
    13 # and one named swap (copy sizes, 10G root and 2G swap)
    14 # F11 will suggest ext4, DON'T USE IT.
     1# install Squeeze
     2 # Configure each drive with a 1G partition and a rest-of-the-space partition, as RAID
     3 # Create a RAID1 for the 1G partitions
     4 # Create a RAID1 for each pair of rest-of-the-space partitions
     5 # Create an ext3 /boot on the 1G RAID1
     6 # Create an LVM volume group named after the machine's short hostname
     7 # Create an LV called "swap" that is the same size as the machine's physical RAM
     8 # Create an LV called "root" that is 50G ext4
     9
     10# ??? F11 will suggest ext4, DON'T USE IT.
    1511#   - New filesystem, so it's scary
    1612#   - The hosts can't mount it
    1713#   - Grub can't cope with it
    1814
    19 # enable backports (because Xen 3.3 is in hardy backports)
    20     apt-get update
    21     apt-get dist-upgrade
     15# install useful utility packages
     16    aptitude install htop ipmitool emacs23-nox vim memtest86 memtest86+ ntp ntpdate git
     17    git config --global color.ui auto
     18
    2219# install Xen
    23     apt-get install ubuntu-xen-server
     20    aptitude install xen-linux-system
    2421# download Debathena archive key, verify
    25     apt-key add ...
    26 # add Debathena repos to etc/apt.d/sources.list
    27 # install Debathena software
    28     apt-get install debathena-clients
     22# Fetch https://debathena.mit.edu/apt/debathena-archive.asc from a
     23# machine with the MIT CA, then paste it into
     24    apt-key adv --import
     25# add Debathena repos to etc/apt/sources.list.d
     26  cat <<EOF > /etc/apt/sources.list.d/debathena.list
     27deb http://debathena.mit.edu/apt squeeze debathena debathena-config debathena-system openafs
     28deb-src http://debathena.mit.edu/apt squeeze debathena debathena-config debathena-system openafs
     29EOF
     30
     31# install host keytab
     32# install Debathena software (hit enter to take the defaults at the
     33# configuration prompts)
     34  aptitude update
     35  aptitude install debathena-clients debathena-ssh-server-config
    2936# compare packages with another server
    30 dpkg -l
     37  dpkg -l
    3138# reconfigure so that we can get an MTA, although we don't
    32 # want the hosts to accept mail (smart host, does not take mail)
     39# want the hosts to accept mail (mail sent by smarthost; no local mail)
    3340# outgoing.mit.edu
    34     dpkg reconfigure xm4-config
     41    dpkg-reconfigure exim4-config
    3542        # answer questions properly
    3643# change root alias in /etc/aliases to be the same as scripts server
    3744# reload it
    3845    newaliases
    39 # ssh key for host...
    40 # install host keytab
     46# clone the xen config (/etc/xen)
     47    git clone -b squeeze ssh://scripts@scripts.mit.edu/mit/scripts/git/xen.git /etc/xen
    4148# copy conserver config (we need to version this)
    42 # clone the xen config (/etc/xen)
    43     git clone ssh://scripts@scripts.mit.edu/mit/scripts/git/xen.git /etc/xen
    44 
    4549# setup conserver
    4650    cat /etc/conserver/console.cf # add the correct entires here
Note: See TracChangeset for help on using the changeset viewer.