Aléatoirement mon serveur Dedibox disparaissait du réseau internet, j'ai d'abord cru à une panne, j'ai donc fait un Redémarrage matériel de la dedibox depuis la console de gestion Dedibox.

Mais la même chose c'est reproduit le soir même : disparition de la machine sur internet et toujours les mêmes logs :

May 21 21:33:21 sd-13032 kernel: NETDEV WATCHDOG: eth0: transmit timed out
May 21 21:33:21 sd-13032 kernel: eth0: Transmit timeout, status 00000005 00000000
May 21 21:33:29 sd-13032 kernel: NETDEV WATCHDOG: eth0: transmit timed out
May 21 21:33:29 sd-13032 kernel: eth0: Transmit timeout, status 00000005 00000000
May 21 21:33:37 sd-13032 kernel: NETDEV WATCHDOG: eth0: transmit timed out
May 21 21:33:37 sd-13032 kernel: eth0: Transmit timeout, status 00000005 00000000
May 21 21:33:45 sd-13032 kernel: NETDEV WATCHDOG: eth0: transmit timed out
May 21 21:33:45 sd-13032 kernel: eth0: Transmit timeout, status 00000005 00000000

Après quelques recherches, je suis tombé sur un article parlant de la Perte de connectivité réseau dans le forum des dedibox.

Le bug affectant la transmission réseaux est généralement initié par un transfert de gros fichier à grande vitesse, par exemple lorsque vous sauvegardez vos fichier vers les serveurs de backup.

On constate que je ne suis pas le seul et que changer de dedibox ne résout rien, la meilleure solution est de changer le Kernel.

Voici donc comment faire pour rajouter un Kernel et booter dessus avec une Debian etch :

Configuration initiale
sd-13032:~# uname  -a
Linux sd-13032 2.6.24.2dedibox-r8-1-smp-x64 #1 SMP Tue Feb 12 18:17:36 CET 2008 x86_64 GNU/Linux
sd-13032:~# dmesg
May 21 13:19:05 sd-13032 kernel: eth0: SiS 900 PCI Fast Ethernet at 0x2000, IRQ 11, 00:1c:c0:27:96:f3
May 21 13:19:05 sd-13032 kernel: eth0: Media Link On 100mbps full-duplex
May 21 21:35:01 sd-13032 kernel: Linux version 2.6.24.2dedibox-r8-1-smp-x64 (root@sd-8) (gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Tue Feb 12 18:17:36 CET 2008
sd-13032:~# vim /boot/grub/menu.lst

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default         0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout         5

...

## ## End Default Options ##

title           Debian GNU/Linux, kernel 2.6.24.2dedibox-r8-1-smp-x64
root            (hd0,0)
kernel          /vmlinuz-2.6.24.2dedibox-r8-1-smp-x64 root=/dev/sda2 ro
savedefault

title           Debian GNU/Linux, kernel 2.6.24.2dedibox-r8-1-smp-x64 (single-user mode)
root            (hd0,0)
kernel          /vmlinuz-2.6.24.2dedibox-r8-1-smp-x64 root=/dev/sda2 ro single
savedefault

### END DEBIAN AUTOMAGIC KERNELS LIST
Le site de wikipedia détaille le processeur fournit par la Dedibox V2 
Conroe-L série 200 : Jeu d'instructions 	x86-64
220 	1 	1,2 GHz 	2 × 32 Kio 	512 Kio 	x9 	1 - 1,3375 V 	19 W 	533 MT/s 	LGA775 	LE80557RE014512 	21 octobre 2007
Liste des kernels disponibles
sd-13032:~# apt-cache search linux-image
linux-image-2.6-amd64 - Linux kernel 2.6 image on AMD64
linux-image-2.6-amd64-generic - Linux 2.6 image on all x86-64 - transition package
linux-image-2.6-amd64-k8 - Linux 2.6 image on AMD64 K8 machines - transition package
linux-image-2.6-amd64-k8-smp - Linux 2.6 image on AMD64 K8 SMP machines - transition package
linux-image-2.6-em64t-p4 - Linux 2.6 image on Intel em64t P4 machines - transition package
linux-image-2.6-em64t-p4-smp - Linux 2.6 image on Intel em64t P4/Xeon SMP - transition package
linux-image-2.6-vserver-amd64 - Linux kernel 2.6 image on AMD64
linux-image-2.6-vserver-amd64-k8-smp - Linux 2.6 image on AMD64 K8 SMP machines - transition package
linux-image-2.6-vserver-em64t-p4-smp - Linux 2.6 image on Intel em64t P4/Xeon SMP - transition package
linux-image-2.6-xen-amd64 - Linux kernel 2.6 image on AMD64
linux-image-2.6-xen-vserver-amd64 - Linux kernel 2.6 image on AMD64
linux-image-amd64 - Linux kernel image on AMD64
linux-image-vserver-amd64 - Linux kernel image on AMD64
linux-image-xen-amd64 - Linux kernel image on AMD64
linux-image-xen-vserver-amd64 - Linux kernel image on AMD64
alsa-base - ALSA driver configuration files
linux-headers-2.6.18-4-amd64 - Header files for Linux 2.6.18 on AMD64
linux-headers-2.6.18-4-vserver-amd64 - Header files for Linux 2.6.18 on AMD64
linux-headers-2.6.18-4-xen-amd64 - Header files for Linux 2.6.18 on AMD64
linux-headers-2.6.18-4-xen-vserver-amd64 - Header files for Linux 2.6.18 on AMD64
linux-headers-2.6.18-5-amd64 - Header files for Linux 2.6.18 on AMD64
linux-headers-2.6.18-5-vserver-amd64 - Header files for Linux 2.6.18 on AMD64
linux-headers-2.6.18-5-xen-amd64 - Header files for Linux 2.6.18 on AMD64
linux-headers-2.6.18-5-xen-vserver-amd64 - Header files for Linux 2.6.18 on AMD64
linux-headers-2.6.18-6-amd64 - Header files for Linux 2.6.18 on AMD64
linux-headers-2.6.18-6-vserver-amd64 - Header files for Linux 2.6.18 on AMD64
linux-headers-2.6.18-6-xen-amd64 - Header files for Linux 2.6.18 on AMD64
linux-headers-2.6.18-6-xen-vserver-amd64 - Header files for Linux 2.6.18 on AMD64
linux-image-2.6.18-4-amd64 - Linux 2.6.18 image on AMD64
linux-image-2.6.18-4-vserver-amd64 - Linux 2.6.18 image on AMD64
linux-image-2.6.18-4-xen-amd64 - Linux 2.6.18 image on AMD64
linux-image-2.6.18-4-xen-vserver-amd64 - Linux 2.6.18 image on AMD64
linux-image-2.6.18-5-amd64 - Linux 2.6.18 image on AMD64
linux-image-2.6.18-5-vserver-amd64 - Linux 2.6.18 image on AMD64
linux-image-2.6.18-5-xen-amd64 - Linux 2.6.18 image on AMD64
linux-image-2.6.18-5-xen-vserver-amd64 - Linux 2.6.18 image on AMD64
linux-image-2.6.18-6-amd64 - Linux 2.6.18 image on AMD64
linux-image-2.6.18-6-vserver-amd64 - Linux 2.6.18 image on AMD64
linux-image-2.6.18-6-xen-amd64 - Linux 2.6.18 image on AMD64
linux-image-2.6.18-6-xen-vserver-amd64 - Linux 2.6.18 image on AMD64
linux-tree-2.6.18 - Linux kernel source tree for building Debian kernel images
linux-image-2.6.24.2dedibox-r8-1-smp-x64 - Linux kernel binary image for version 2.6.24.2dedibox-r8-1-smp-x64
Installation du nouveau kernel
sd-13032:~# apt-get install linux-image-2.6-amd64-generic
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Les paquets supplémentaires suivants seront installés :
  linux-image-2.6-amd64 linux-image-2.6.18-6-amd64
Paquets suggérés :
  linux-doc-2.6.18
Les NOUVEAUX paquets suivants seront installés :
  linux-image-2.6-amd64 linux-image-2.6-amd64-generic linux-image-2.6.18-6-amd64
0 mis à jour, 3 nouvellement installés, 0 à enlever et 20 non mis à jour.
Il est nécessaire de prendre 16,9Mo dans les archives.
Après dépaquetage, 67,6Mo d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer [O/n] ?
Réception de : 1 http://ftp.fr.debian.org etch/main linux-image-2.6-amd64 2.6.18+6etch3 [2292B]
Réception de : 2 http://ftp.fr.debian.org etch/main linux-image-2.6-amd64-generic 2.6.18+6etch3 [2252B]
Réception de : 3 http://security.debian.org etch/updates/main linux-image-2.6.18-6-amd64 2.6.18.dfsg.1-18etch4 [16,9MB]
16,9Mo réceptionnés en 4s (3812ko/s)
Préconfiguration des paquets...
Sélection du paquet linux-image-2.6.18-6-amd64 précédemment désélectionné.
(Lecture de la base de données... 24826 fichiers et répertoires déjà installés.)
Dépaquetage de linux-image-2.6.18-6-amd64 (à partir de .../linux-image-2.6.18-6-amd64_2.6.18.dfsg.1-18etch4_amd64.deb) ...
Done.
Sélection du paquet linux-image-2.6-amd64 précédemment désélectionné.
Dépaquetage de linux-image-2.6-amd64 (à partir de .../linux-image-2.6-amd64_2.6.18+6etch3_amd64.deb) ...
Sélection du paquet linux-image-2.6-amd64-generic précédemment désélectionné.
Dépaquetage de linux-image-2.6-amd64-generic (à partir de .../linux-image-2.6-amd64-generic_2.6.18+6etch3_amd64.deb) ...
Paramétrage de linux-image-2.6.18-6-amd64 (2.6.18.dfsg.1-18etch4) ...

 Hmm. The package shipped with a symbolic link /lib/modules/2.6.18-6-amd64/source
 However, I can not read the target: Aucun fichier ou répertoire de ce type
 Therefore, I am deleting /lib/modules/2.6.18-6-amd64/source

Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
W: mdadm: falling back to emergency procedure in initramfs.
Running postinst hook script /usr/sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-2.6.24.2dedibox-r8-1-smp-x64
Found kernel: /vmlinuz-2.6.18-6-amd64
Updating /boot/grub/menu.lst ... done


Paramétrage de linux-image-2.6-amd64 (2.6.18+6etch3) ...
Paramétrage de linux-image-2.6-amd64-generic (2.6.18+6etch3) ...
Configuration de boot pour votre nouveau kernel

On modifié le kernel lancé au démarrage en passant default de 0 à 2 ( le 1er kernel de la liste et le 3eme ). Et par la même occasion pourquoi attendre 5 secondes au démarrage puisque l'on a pas la main dessus ? Alors on réduite le timeout à 1 seconde.

sd-13032:~# vim /boot/grub/menu.lst

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default         2

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout         1

...

## ## End Default Options ##

title           Debian GNU/Linux, kernel 2.6.24.2dedibox-r8-1-smp-x64
root            (hd0,0)
kernel          /vmlinuz-2.6.24.2dedibox-r8-1-smp-x64 root=/dev/sda2 ro
savedefault

title           Debian GNU/Linux, kernel 2.6.24.2dedibox-r8-1-smp-x64 (single-user mode)
root            (hd0,0)
kernel          /vmlinuz-2.6.24.2dedibox-r8-1-smp-x64 root=/dev/sda2 ro single
savedefault

title           Debian GNU/Linux, kernel 2.6.18-6-amd64
root            (hd0,0)
kernel          /vmlinuz-2.6.18-6-amd64 root=/dev/sda2 ro
initrd          /initrd.img-2.6.18-6-amd64
savedefault

title           Debian GNU/Linux, kernel 2.6.18-6-amd64 (single-user mode)
root            (hd0,0)
kernel          /vmlinuz-2.6.18-6-amd64 root=/dev/sda2 ro single
initrd          /initrd.img-2.6.18-6-amd64
savedefault

### END DEBIAN AUTOMAGIC KERNELS LIST
On redémarre la Dedibox
sd-13032:~# reboot
Victoire, on à la main dessus et le kernel lancé est le nouveau
sd-13032:~# uname -a
Linux sd-13032 2.6.18-6-amd64 #1 SMP Thu May 8 06:49:39 UTC 2008 x86_64 GNU/Linux
sd-13032:~# dmesg
Linux version 2.6.18-6-amd64 (Debian 2.6.18.dfsg.1-18etch4) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Thu May 8 06:49:39 UTC 2008
Bilan

3 heures de recherches et 3 minutes de mises à jour !

Merci à Ghost pour son aide, et également au lien Kernel Linux pour Dedibox (Installation du nouveau kernel)