FAI multi-distribution: Difference between revisions

From FAIWiki
Jump to navigation Jump to search
(add subversion info)
No edit summary
 
(46 intermediate revisions by 8 users not shown)
Line 1: Line 1:
= Status =
== Status ==


It is possible to install other distributions than Debian and dpkg-based ones with FAI.
Support for Linux distributions other then Debian is available since 2011. FAI
There's an experimental release, which you can get with the apt sources.list line
can install Linux distributions like Redhat, CentOS,
Scientific Linux Cern, Fedora, openSUSE, SuSE, Ubuntu and of course Debian.


<pre>  deb http://faiwiki.informatik.uni-koeln.de/download/fai-multi-distribution/debian/ experimental/ </pre>
Read the [https://lists.uni-koeln.de/pipermail/linux-fai/2011-September/009243.html announcement] including a small HowTo.


if you're brave. Try it and tell [[User:Lazyboy | me]] if it worked for you, or talk about it on the mailing list. You can help to improve it just by reporting things that don't work.
=== Distribution specific stuff ===


More info on the development of these features: [[Development_plan#fai-multi-distribution]]
==== 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.


The code should be fully compatible to FAI 2.9, you should be able to re-use your existing config space with no changes, just some additional classes
for the additional distribution, defining different packages and some different installation procedures. It only needs one nfsroot for all.


==== 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
[http://fai-project.org/logs/ here]


= requirements =
==== Scientific Linux Cern ====
* you should have a debian and ubuntu mirror on your mirrohost, otherwise additional script- or config-editing will be required.
FAI 4.0 can also install SCL 5 and 6.
* it can help if you had previous exposure to FAI, but is not necessarily much harder than get into FAI with Debian sarge only.
Ready-made basefiles are available at https://fai-project.org/download/basefiles/.


= usage =
==== RHEL5 and 6 ====
* install the deb's from the download location, including the package fai-distributions (look into it to see what it is about), after adding the apt line to your sources.list, just type
Redhat Enterprise Linux 5 and 6
  apt-get update
  apt-get install fai-distributions fai-quickstart
* do everything you'd do with any other FAI install - read this wiki on how to do that.
* copy example classes as usual in FAI
* copy additional example classes:
  cp -a /usr/share/doc/fai-distributions/classes/*/* /usr/local/share/fai/
* there's some problem with non-executable hooks, do:
  chmod +x /usr/local/share/fai/hooks/*
* check configuration in
  /etc/fai-distributions/
* run
  make-fai-nfsroot
* run
  sh /usr/lib/fai-distributions/dists/ubuntu_hoary/make-base-tgz
( in lib because it should be called from make-fai-nfsroot)
* run /usr/lib/fai-distributions/dists/ubuntu_breezy/make-base-tgz
* run /usr/lib/fai-distributions/dists/mandriva/make-base-tgz (this currently just downloads a base system image. This task needs to be solved.
* name your install clients sarge, hoary, and breezy, or mandriva in DNS , or add them to the same classes as these example host configurations and install them as usual
* for mandriva, you need a mandriva mirror at the location specified in files/etc/apt/sources.list/MANDRIVA and in /etc/fai/distributions
* in general, check the config files in /etc/fai-distributions
* for mandriva, I have no network suppport in my tests, until I manually add the module for my card to the config - ubuntu and debian do that well
* also for mandriva, the X config isn't working


= missing features =
This should work in the same way as CentOS and SLC.
* runs only on Debian sarge as server and is only tested on i386 architecture
* only network install is tested - cd install is some more work to do.
* not tested running on an Ubuntu server. also "normal" FAI has issues running on Ubuntu Linux.
* in general, FAI itself has not yet been proted to run on any other distribution.


= errata =
==== SuSE ====
* MANDRIVA: problem with grub menu.lst - you'll need a file files/boot/grub/menu.lst/HOSTNAME to get a proper menu.lst
A more verbose description on how to do this with SLES9 is [[Installing_SLES9_32Bit_and_Smart_PackageManager_with_FAI | available here]]
* UBuntu HOARY: does only work with an ubuntu mirror on
  ftp://$mirrorhost/ubuntu
* Ubuntu hoary: does only work with modified instsoft.UBUNTU hook
* FAI 2.9 general: /etc/fai/sources.list must have an entry to a repository which has fai-nfsroot available


= subversion access =
== Bootstrapping the base images for other distributions ==
You can also get the latest subversion stuff by checking out
 
<pre>svn co svn://svn.debian.org/svn/fai/people/lazyboy/fai-distributions</pre>
Have a look at examples/simple/basefiles/mk-basefile. Works for
and
Ubuntu, CentOS, SLC. For RPM based distributions it uses [http://packages.qa.debian.org/r/rinse.html rinse], which
<pre>svn co svn://svn.debian.org/svn/fai/people/lazyboy/fai-2.9-multidistribution</pre>
also support some old versions of OpenSUSE.
Then going into each of the two new directories and make dpkg-buildpackage -rfakeroot.
 
[[Category:RedHat]]
[[Category:CentOS]]
[[Category:Ubuntu]]

Latest revision as of 19:36, 10 March 2019

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.