Changeset 1891 for trunk/host/doc


Ignore:
Timestamp:
Jun 10, 2011, 11:30:42 PM (13 years ago)
Author:
quentin
Message:
Move Xen stuff into a separate host/ directory
Location:
trunk/host
Files:
2 added
1 moved

Legend:

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

    r1889 r1891  
    1212#   - The hosts can't mount it
    1313#   - Grub can't cope with it
    14 
    15 # install useful utility packages
    16     aptitude install htop ipmitool emacs23-nox vim memtest86 memtest86+ ntp ntpdate git smartmontools kpartx apticron bwm-ng bzip2 ethtool i2c-tools lm-sensors mii-diag molly-guard mtr-tiny nbd-client nbd-server rlwrap strace tcpdump tree
    17     git config --global color.ui auto
    18 
    19 # install Xen
    20     aptitude install xen-linux-system
    2114
    2215# download Debathena archive key, verify
     
    4134  k5srvutil delold
    4235# install ~/.k5login
    43 # install Debathena software (hit enter to take the defaults at the
    44 # configuration prompts)
    45   aptitude update
    46   aptitude install debathena-clients debathena-ssh-server-config
    47 # compare packages with another server
    48   dpkg -l
    49 # reconfigure so that we can get an MTA, although we don't
    50 # want the hosts to accept mail (mail sent by smarthost; no local mail)
    51 # outgoing.mit.edu
    52     dpkg-reconfigure exim4-config
    53         # answer questions properly
    54 # change root alias in /etc/aliases to be the same as scripts server
    55 # reload it
    56     newaliases
    5736# clone the xen config (/etc/xen)
    5837    git clone -b squeeze ssh://scripts@scripts.mit.edu/mit/scripts/git/xen.git /etc/xen
    59 # copy conserver config (we need to version this)
    60   aptitude install sudo conserver-{server,client}
    61 # setup conserver
    62   cat <<EOF > /etc/conserver/conserver.cf
    63 config * {
    64         sslrequired no;
    65 }
    66 default full {
    67         rw *;
    68 }
    69 default * {
    70         logfile /var/log/conserver/&.log;
    71         timestamp "1lab";
    72         include full;
    73         sslrequired no;
    74         options reinitoncc;
    75 }
    76 default xen {
    77         type exec;
    78         exec sudo xm console f;
    79         execsubst f=cs;
    80 }
    81 access * {
    82         trusted 127.0.0.1;
    83 }
    84 EOF
    85     visudo # add conservr to sudoers list with:
    86         conservr ALL=(ALL) NOPASSWD: /usr/sbin/xm console *
    8738
    88 # setup munin and nagios 
    89     aptitude install munin-node
    90 cat <<EOF >> /etc/munin/munin-node.conf
    91 allow ^18\.187\.1\.128$
    92 allow ^18\.181\.0\.65$
    93 allow ^18\.181\.0\.51$
    94 EOF
    95 
     39# Install scripts-vm-host
     40  aptitude install scripts-vm-host
Note: See TracChangeset for help on using the changeset viewer.