|
|
(10 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| == Status == | | == Status == |
|
| |
|
| FAI can install different Linux distributions like Redhat (especially | | Support for Linux distributions other then Debian is available since 2011. FAI |
| RHEL5), Fedora, CentOS, openSUSE, SuSE, Ubuntu and of course Debian.
| | can install Linux distributions like Redhat, CentOS, |
| | Scientific Linux Cern, Fedora, openSUSE, SuSE, Ubuntu and of course Debian. |
|
| |
|
| Since FAI 3.1.8 already has the most important things integrated:
| | Read the [https://lists.uni-koeln.de/pipermail/linux-fai/2011-September/009243.html announcement] including a small HowTo. |
|
| |
|
| * unpacking a base.tgz named CLASS.tar.gz from the configspace directory "basefiles"
| | === Distribution specific stuff === |
| ** Alternative to this, via hook: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494386
| |
| * using other package managers (see install_packages or it's doc)
| |
| | |
| | |
| == Installing other distributions == | |
| | |
| A Quick overview:
| |
| | |
| * build a minimal base image (see basefiles/Makefile which uses rinse) and put it into MY-DISTRIBUTION-NAME.tar.gz in the configspace/basefiles
| |
| * add the install host to the class MY-DISTRIBUTION-NAME
| |
| * write a hook prepareapt.MY-DISTRIBUTION-NAME to replace the stuff specific for the distribtuion of the fai server with something suitable to get your specific distribution ready to install packages. The actual prepareapt task must be skipped
| |
| * check that the package lists of the classes of that host are compatible for your distribution. See install-packages -H
| |
| * install as usual
| |
|
| |
|
| === Distribution specific stuff === | | ==== Ubuntu ==== |
| | Just get the basefile for Ubuntu from |
| | https://fai-project.org/download/basefiles/ and use the Ubuntu |
| | examples from /usr/share/doc/fai-doc/examples/simple. |
|
| |
|
| ==== SuSE ====
| |
| A more verbose description on how to do this with SLES9 is [[Installing_SLES9_32Bit_and_Smart_PackageManager_with_FAI | available here]]
| |
|
| |
|
| ==== CentOS ==== | | ==== CentOS ==== |
| FAI 3.4.8 and the config space examples from 4.0 can install CentOS 5. | | FAI 4.0 includes examples for installing CentOS 5 and 6. |
| Works with CentOS 5 and rinse 1.8.
| | Ready-made basefiles are available at https://fai-project.org/download/basefiles/. |
| | Sample log files for a CentOS 6 installation can be found |
| | [http://fai-project.org/logs/ here] |
|
| |
|
| ==== Scientific Linux Cern ==== | | ==== Scientific Linux Cern ==== |
| FAI 3.4.8 and the config space examples from 4.0 can install SCL 5 and 6. | | FAI 4.0 can also install SCL 5 and 6. |
| | Ready-made basefiles are available at https://fai-project.org/download/basefiles/. |
|
| |
|
| ==== RHEL5 ==== | | ==== RHEL5 and 6 ==== |
| Redhat Enterprise Linux 5 | | Redhat Enterprise Linux 5 and 6 |
|
| |
|
| Should work with more recent versions, too.
| | This should work in the same way as CentOS and SLC. |
| Your need a redhat specific basefile - see below.
| |
|
| |
|
| And you need a config space with some specific stuff for the redhat systems.
| | ==== SuSE ==== |
| | | A more verbose description on how to do this with SLES9 is [[Installing_SLES9_32Bit_and_Smart_PackageManager_with_FAI | available here]] |
| Check out http://svn.debian.org/wsvn/fai/people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo and add ths stuff you need to your current config space.
| |
| | |
| It should be no problem to mix this into your existing Debian configspace.
| |
| | |
| And there is a RHEL5 example configspace here: http://svn.debian.org/wsvn/fai/people/lazyboy/rhel-install-fixes_3.1.8/
| |
|
| |
|
| == Bootstrapping the base images for other distributions == | | == Bootstrapping the base images for other distributions == |
|
| |
|
| Have a look at examples/simple/basefiles/mk-basefile. Works for | | Have a look at examples/simple/basefiles/mk-basefile. Works for |
| Ubuntu, CentOS, SLC. For rpm based distributions it uses rinse. | | Ubuntu, CentOS, SLC. For RPM based distributions it uses [http://packages.qa.debian.org/r/rinse.html rinse], which |
| | | also support some old versions of OpenSUSE. |
| | |
| For example, to bootstrap rhel5, after having created a local mirror, I create such a yum.conf file:
| |
| | |
| <pre>
| |
| [main]
| |
| cachedir=/var/cache/yum
| |
| debuglevel=2
| |
| logfile=/var/log/yum.log
| |
| exclude=*-debuginfo
| |
| gpgcheck=0
| |
| obsoletes=1
| |
| reposdir=/dev/null
| |
| plugins=1
| |
| | |
| | |
| [base] | |
| protect=0
| |
| name=Red Hat Enterprise Linux 5
| |
| #baseurl=file:///nfs/rhel5/Server
| |
| #baseurl=http://localhost/mirrors/rhel/5/Server/
| |
| baseurl=file:///var/www/mirrors/rhel/5/Server/
| |
| enabled=1
| |
| </pre>
| |
| | |
| Then I call this script:
| |
| | |
| <pre>
| |
| #! /bin/sh
| |
| tmp=`mktemp -d`
| |
| | |
| yum -c yum.conf --installroot=$tmp -y install yum dhclient
| |
| cp rhel5.repo $tmp/etc/yum.repos.d/
| |
| mount -o bind /proc $tmp/proc
| |
| chroot $tmp yum groupinstall -y Core
| |
| chroot $tmp yum clean packages
| |
| | |
| echo "chroot created in tmp=$tmp"
| |
| oldpwd=$PWD
| |
| cd $tmp
| |
| umount ./proc
| |
| | |
| tar cvfz $oldpwd/DIST-RHEL_5.tar.gz .
| |
| | |
| cd -
| |
| | |
| echo "chroot created in tmp=$tmp"
| |
| </pre>
| |
| | |
| And I'm done. This leads to a working install when using my example configspace mentioned above.
| |
| | |
| There are some issues left, so this currently works for dirinstall, only, out of the box. I had to install some additional packages (will add the list later) manually in the nfsroot, and then netinstall via pxe worked, too.
| |
| | |
| To know what you have to install manually in the nfsroot, check the output of make-fai-nfsroot -v - at one point, quite some packages are dropped with the message that they aren't available, but they can be installed just normal, and are perfectly there. Without this, make-fai-nfsroot finishes with "success", but is unable to install a machine nicely via network install.
| |
| | |
|
| |
|
| [[Category:Howto]]
| |
| [[Category:RedHat]] | | [[Category:RedHat]] |
| [[Category:SuSE]]
| |
| [[Category:CentOS]] | | [[Category:CentOS]] |
| | [[Category:Ubuntu]] |
Status
Support for Linux distributions other then Debian is available since 2011. FAI
can install Linux distributions like Redhat, CentOS,
Scientific Linux Cern, Fedora, openSUSE, SuSE, Ubuntu and of course Debian.
Read the announcement including a small HowTo.
Distribution specific stuff
Ubuntu
Just get the basefile for Ubuntu from
https://fai-project.org/download/basefiles/ and use the Ubuntu
examples from /usr/share/doc/fai-doc/examples/simple.
CentOS
FAI 4.0 includes examples for installing CentOS 5 and 6.
Ready-made basefiles are available at https://fai-project.org/download/basefiles/.
Sample log files for a CentOS 6 installation can be found
here
Scientific Linux Cern
FAI 4.0 can also install SCL 5 and 6.
Ready-made basefiles are available at https://fai-project.org/download/basefiles/.
RHEL5 and 6
Redhat Enterprise Linux 5 and 6
This should work in the same way as CentOS and SLC.
SuSE
A more verbose description on how to do this with SLES9 is available here
Bootstrapping the base images for other distributions
Have a look at examples/simple/basefiles/mk-basefile. Works for
Ubuntu, CentOS, SLC. For RPM based distributions it uses rinse, which
also support some old versions of OpenSUSE.