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. |
---|
15 | # - New filesystem, so it's scary |
---|
16 | # - The hosts can't mount it |
---|
17 | # - Grub can't cope with it |
---|
18 | |
---|
19 | # enable backports (because Xen 3.3 is in hardy backports) |
---|
20 | apt-get update |
---|
21 | apt-get dist-upgrade |
---|
22 | # install Xen |
---|
23 | apt-get install ubuntu-xen-server |
---|
24 | # 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 |
---|
29 | # compare packages with another server |
---|
30 | dpkg -l |
---|
31 | # 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) |
---|
33 | # outgoing.mit.edu |
---|
34 | dpkg reconfigure xm4-config |
---|
35 | # answer questions properly |
---|
36 | # change root alias in /etc/aliases to be the same as scripts server |
---|
37 | # reload it |
---|
38 | newaliases |
---|
39 | # ssh key for host... |
---|
40 | # install host keytab |
---|
41 | # 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 | |
---|
45 | # setup conserver |
---|
46 | cat /etc/conserver/console.cf # add the correct entires here |
---|
47 | visudo # add conservr to sudoers list with: |
---|
48 | conservr ALL=(ALL) NOPASSWD: /usr/sbin/xm console * |
---|