wiki:SaliInstallationServer

Version 8 (modified by dennis, 11 years ago) (diff)

--

ImageServer installation

First download the stable version of SALI from:

Extract the tarball

# cd /var/tmp
# wget ftp://ftp.surfsara.nl/pub/sali/sali.tar.gz
# tar xvf sali.tar.gz

All files are available in the directory sali-VERSION

DHCP configuration

For PXE booting you will need to install a DHCP server. On our site we use the ISC DHCP server. The configuration here below shows an example on how to configure the pxeboot functionality on your network.

# define the option
option sali-imgsrv code 224 = ip-address;

# Admin network
#
subnet 192.168.144.0 netmask 255.255.248.0 {
  # The value for sali-imgsrv has to be an ip address
  option sali-imgsrv 192.168.146.10;
  next-server 192.168.146.10;
  filename "pxelinux.0";
}

Optional you can specify a special dhcp option that SALI uses to identify which imageserver must be used. We have chosen for option code 224.

TFTP/PXE environment

Make sure that the your PXE-enabled network card is your first boot device. So you will have complete control of your node.

TFTP

To setup a TFTP enviroment you can visit one of the following pages

Copy the following files from the extracted tar.gz to your tftp directory. Depending on your operating systems this can be /srv/tftpboot, /var/lib/tftboot. In our examples we shall use /data/tftp

# cd /data/tftp
# mkdir sali
# cd sali/
# cp -a /var/tmp/sali-1.5.8/x86_64 .
# ls -1 x86_64/
initrd.img
kernel
# ln -s x86_64 default

PXE

To setup a dynamic PXE environment visit our project pxeconfig

If you have setup you PXE environment you copy the example file to the pxelinux.cfg directory in your tftp root.

# cd /var/tmp/sali-1.5.8/examples
# cp pxelinux.example /data/tftp/pxelinux.cfg/default.sali__test

The default action of the default.sali_test is to start a SALI rescue shell:

# pxeconfig <nodename> -f default.sali_test

SALI Server Tools

The SALI server Tools consists of:

  • Bittorrent client
  • Torrent tracker
  • Monitoring (Currently not stable)
  • Rsync configuration file generator
  • Imaging a node via rsync
  • Automatically converting rsync images to torrent images

Installation

Requirements:

  • Python > 2.5 < 3.0
  • rsync

Ubuntu/Debian installation

Make sure that the following packages are installed

  • cdbs

Now create a debian package

# cd /var/tmp/sali-1.5.8/server
# ./debian/rules binary

Finally you can install the created debian package

# cd /var/tmp/sali-1.5.8
# dpkg -i sali_1.5.8-1_all.deb

Installation for other distributions

# cd /var/tmp/sali-1.5.8
# python setup.py install

After you have installed SALI you must copy a couple of files by hand

# cd /var/tmp/sali-1.5.8
# cp debian/init /etc/init.d/sali
# cp debian/default /etc/default/sali

Directory structure

For sali we need the following directory structure

/data/sali/
/data/sali/images/
/data/sali/notorrent/
/data/sali/scripts/
/data/sali/torrents/