Projet

Général

Profil

Eole23 with kernel 3 » Historique » Version 6

Daniel Dehennin, 20/12/2011 09:59
Note comme quoi c’est une étude

1 1 Daniel Dehennin
h1. Kernel 3.0 sur un module EOLE 2.3
2 1 Daniel Dehennin
3 6 Daniel Dehennin
*Étude du passage à un noyau Ubuntu LTS backport*
4 6 Daniel Dehennin
5 1 Daniel Dehennin
h2. Installation
6 1 Daniel Dehennin
7 2 Daniel Dehennin
Un noyau _backport_ est disponible sur _Lucid_:
8 2 Daniel Dehennin
9 2 Daniel Dehennin
<pre>
10 2 Daniel Dehennin
root@eole:~# apt-get install linux-image-generic-lts-backport-oneiric
11 2 Daniel Dehennin
</pre>
12 2 Daniel Dehennin
13 1 Daniel Dehennin
h3. Adaptations
14 2 Daniel Dehennin
15 2 Daniel Dehennin
Il est nécessaire d’effectuer quelques adaptation afin de démarrer un noyau 3.0.
16 2 Daniel Dehennin
17 2 Daniel Dehennin
h4. Démarrage par défaut sur le noyau 3.0
18 2 Daniel Dehennin
19 2 Daniel Dehennin
La séléction du noyau se fait lors d’une mise à jour de grub, par défaut, uniquement les noyaux se finissant par @-eole@ sont pris en compte.
20 2 Daniel Dehennin
21 2 Daniel Dehennin
On modifie l’"expression rationnelle":http://fr.wikipedia.org/wiki/Expression_rationnelle sélectionnant le noyau par défaut:
22 2 Daniel Dehennin
<pre>
23 2 Daniel Dehennin
root@eole:~# sed -ie "s/\(EOLE_GRUB_REGEX='.\*\)-eole'/\1'/" /etc/default/grub
24 2 Daniel Dehennin
</pre>
25 2 Daniel Dehennin
26 2 Daniel Dehennin
h4. Iptables
27 2 Daniel Dehennin
28 2 Daniel Dehennin
EOLE recompile iptables du fait du patch modifiant l’"ABI":http://fr.wikipedia.org/wiki/Application_binary_interface du noyau.
29 2 Daniel Dehennin
30 2 Daniel Dehennin
L’utilisation d’un noyau standard nécessite l’installation de la version Ubuntu d’iptables
31 2 Daniel Dehennin
32 2 Daniel Dehennin
<pre>
33 2 Daniel Dehennin
root@eole:~# apt-get install iptables=1.4.4-2ubuntu2
34 2 Daniel Dehennin
</pre>
35 2 Daniel Dehennin
36 2 Daniel Dehennin
Attention, une mise à jour réinstallera la version EOLE, durant les tests, il faut garder la version Ubuntu:
37 2 Daniel Dehennin
38 2 Daniel Dehennin
<pre>
39 2 Daniel Dehennin
root@eole:~# echo "iptables hold" | dpkg --set-selections
40 2 Daniel Dehennin
</pre>
41 2 Daniel Dehennin
42 2 Daniel Dehennin
h4. Conteneurs
43 2 Daniel Dehennin
44 2 Daniel Dehennin
La version des outils _LXC_ sur _Lucid_ ne fonctionnent pas avec un noyau 3.0.
45 2 Daniel Dehennin
46 2 Daniel Dehennin
Il faut donc installer une version _backport_:
47 2 Daniel Dehennin
<pre>
48 2 Daniel Dehennin
root@eole:~# apt-get install python-software-properties
49 2 Daniel Dehennin
root@eole:~# add-apt-repository ppa:serge-hallyn/lxc-backport
50 2 Daniel Dehennin
root@eole:~# apt-get update
51 2 Daniel Dehennin
root@eole:~# apt-get install lxc=0.7.4-0ubuntu1.1
52 2 Daniel Dehennin
root@eole:~# echo "lxc hold" | dpkg --set-selections
53 2 Daniel Dehennin
</pre>
54 2 Daniel Dehennin
55 2 Daniel Dehennin
h4. Filtrage p2p
56 2 Daniel Dehennin
57 2 Daniel Dehennin
L7 filter nécessite un patch noyau qui change l’"ABI":http://fr.wikipedia.org/wiki/Application_binary_interface du noyau.
58 2 Daniel Dehennin
59 2 Daniel Dehennin
Il est possible d’utiliser le module @ipp2p@ de "xtables-addons":http://xtables-addons.sourceforge.net/
60 2 Daniel Dehennin
61 2 Daniel Dehennin
Il faut une version de xtables-addons fonctionnant sur noyau 3.0
62 2 Daniel Dehennin
63 2 Daniel Dehennin
<pre>
64 2 Daniel Dehennin
root@eole:~# bzr branch lp:ubuntu/oneiric/xtables-addons
65 2 Daniel Dehennin
root@eole:~# cd xtables-addons && dpkg-buildpackage
66 2 Daniel Dehennin
</pre>
67 3 Daniel Dehennin
68 3 Daniel Dehennin
h4. ipset
69 3 Daniel Dehennin
70 5 Daniel Dehennin
Une mise à jour d’ipset viendra avec "@xtables-addons-common@":https://launchpad.net/ubuntu/+source/xtables-addons/1.35-1
71 3 Daniel Dehennin
72 3 Daniel Dehennin
<pre>
73 3 Daniel Dehennin
root@amonecole:~# ipset -L
74 3 Daniel Dehennin
ipset v4.1: Kernel ip_set module is of protocol version 6.I'm of protocol version 4.
75 3 Daniel Dehennin
Please upgrade your kernel and/or ipset(8) utillity.
76 3 Daniel Dehennin
</pre>