Changeset 1858 for trunk/server
- Timestamp:
- May 21, 2011, 7:27:03 PM (13 years ago)
- 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. 15 11 # - New filesystem, so it's scary 16 12 # - The hosts can't mount it 17 13 # - Grub can't cope with it 18 14 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 22 19 # install Xen 23 apt -get install ubuntu-xen-server20 aptitude install xen-linux-system 24 21 # 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 27 deb http://debathena.mit.edu/apt squeeze debathena debathena-config debathena-system openafs 28 deb-src http://debathena.mit.edu/apt squeeze debathena debathena-config debathena-system openafs 29 EOF 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 29 36 # compare packages with another server 30 dpkg -l37 dpkg -l 31 38 # reconfigure so that we can get an MTA, although we don't 32 # want the hosts to accept mail ( smart host, does not takemail)39 # want the hosts to accept mail (mail sent by smarthost; no local mail) 33 40 # outgoing.mit.edu 34 dpkg reconfigure xm4-config41 dpkg-reconfigure exim4-config 35 42 # answer questions properly 36 43 # change root alias in /etc/aliases to be the same as scripts server 37 44 # reload it 38 45 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 41 48 # 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/xen44 45 49 # setup conserver 46 50 cat /etc/conserver/console.cf # add the correct entires here
Note: See TracChangeset
for help on using the changeset viewer.