| 544 | | If you want to perform network-based installations, you need to |
| 545 | | download the distribution's CDs. They contain the kernel and initrd to |
| 546 | | be used during the installation, which will re-direct to Red Hat's |
| 547 | | installer. This installer is also located on the CD (usually the first |
| 548 | | CD) or DVD of your distribution. |
| 549 | | |
| 550 | | The easiest way is to download the full DVD of your distro, f.i, SL: |
| 551 | | |
| 552 | | {{{ |
| 553 | | wget http://.../distro-version.iso |
| 554 | | }}} |
| 555 | | |
| 556 | | Then, mount it somewhere Apache can read to. For instance, |
| 557 | | `/var/www/html/your_platform`: |
| 558 | | |
| 559 | | {{{ |
| 560 | | mount -o bind /path/to/dvd/image /var/www/html/sl520-x86_64 |
| 561 | | }}} |
| 562 | | |
| 563 | | Add it to your fstab, if needed. Next, you'll need to copy the files |
| 564 | | used for PXE somewhere the TFTP server can reach them. Their location |
| 565 | | depends on the distribution, it's usually on a directory called |
| 566 | | pxeboot: |
| 567 | | |
| 568 | | {{{ |
| 569 | | mkdir /tftpboot/quattor/<platform> |
| 570 | | cp /var/www/html/<platform>/.../pxeboot/* /tftpboot/quattor/<platform> |
| 571 | | }}} |
| 572 | | |
| 573 | | ''Note: the TFTP directory you copy the files to must be under the root directory [#TFTPDconfiguration configured for TFTP], in the same directory as the `pxelinux.cfg` directory (see variable `AII_NBP_DIR` configured at the [#ConfigurationofAII previous step]). `<plaform>` must have the usual form with all `-` replaced by `_`.'' |
| | 544 | There are basically 2 ways for dowloading the distribution's images: |
| | 545 | * Mirror what is already available at another Quattor site, for example http://quattorsrv.lal.in2p3.fr/packages/os (there is one directory per OS version/architecture combination), in a directory served by Apache, for example `/var/www/html/packages/os/`. You can use `wget --mirror` to mirror this reference site. |
| | 546 | * Copy the distribution from a CD or an ISO image into a directory served by Apache , for example `/var/www/html/packages/os/`. When using an ISO image, it is possible to mount it with `mount -o bind` and use it directly in Apache (by mounting under the the directory mentionned before) but this is not recommended as it is often necessary to tweak a little bit the distribution, in particular to properly support gLite compatibity mode. |
| | 547 | |
| | 548 | When the distribution is ready on your RPM server (Apache server), you need to add the boot files used for the PXE installation. They consist in 2 files (`vmlinuz`and `initrd.img`) generally located in `images/pxeboot` directory of the distribution. You need to copy these files in a directory specific to the OS version/architecture located in the same directory as the `pxelinux.cfg` directory (see variable `AII_NBP_DIR` configured at the [#ConfigurationofAII previous step]). The directory name must have the usual form with all `-` replaced by `_` (eg. sl530_X86_64). |
| | 549 | |