From Grid5000
Jump to: navigation, search

Warning.png Warning

This environment has been marked as deprecated since 3 June 2013. Please consult the Environment_Management#Deletion_and_Deprecation to know what it means for this environment.

This page describes the 1.0 version of the minimal environment based on Lenny version of Debian distribution for AMD64/EM64T machines. It intends to explain how this environment was built and how to use it with Kadeploy. This page is inspired from Lenny-x64-base-0.9


Identification sheet


Kernel version 2.6.26-2-amd64 from Debian for amd64/em64t


  • Remote console: enabled on ttyS0 at 34800 bps
  • Services: ldap:no, nfs:no
  • Accounts: root:grid5000, g5k:grid5000




Here are explanations on how the system was installed and tuned.


Motd is updated :

cat > /etc/motd.tail <<EOF
Lenny-x64-base-1.0 (image based on Debian version Lenny/stable for AMD64/EM64T)
Maintained by Cyril Constantin <cyril.constantin@loria.fr>
Valid on Dell {PE1855, PE1950}, HP {DL140G3, DL145G2, DL385G2}, 
      IBM {e325, e326, e326m}, Sun {V20z, X2200 M2, X4100},
      Altix Xe 310, Carry CS-5393B
 * Text: Vim, XEmacs, JED, nano, JOE
 * Script: Perl, Python, Ruby
 (Type "dpkg -l" to see complete installed package list)
 * i386 shared libraries are available
 * SSH has X11 forwarding enabled
 * Max open files: 8192
 * TCP bandwidth: for 1Gbs
 More details: https://www.grid5000.fr/index.php/Lenny-x64-base-1.0


Sources.list is updated :

cat > /etc/apt/sources.list <<EOF
deb http://ftp.fr.debian.org/debian lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib
deb http://apt.nancy.grid5000.fr/debian sid main

Installed packages are upgraded to their last release:

apt-get update

Apt packages are signed. Add debian-keyring package will avoid security advertisement.

apt-get install debian-keyring

Now the big upgrade.

apt-get upgrade
apt-get dist-upgrade

It correct automatically the openssl vulnerability.

Adding packages

The nscd package is added to resolve the bug #1336 [1].

apt-get install nscd
cat > /etc/nscd.conf <<EOF
enable-cache            passwd          yes
positive-time-to-live   passwd          600
negative-time-to-live   passwd          20
suggested-size          passwd          211
check-files             passwd          no
persistent              passwd          no
shared                  passwd          yes
enable-cache            group           yes
positive-time-to-live   group           3600
negative-time-to-live   group           60
suggested-size          group           211
check-files             group           no
persistent              group           no
shared                  group           yes
enable-cache            hosts           yes
positive-time-to-live   hosts           3600
negative-time-to-live   hosts           20
suggested-size          hosts           211
check-files             hosts           no
persistent              hosts           no
shared                  hosts           yes


To not be impacted by the bug #1404 [2], tgz-g5k is upgraded.

Udev create problem with network interface order. Remove rules avoid problem.

rm /etc/udev/rules.d/*persistent-net*.rules


Kernel upgrade

The official lenny kernel package support all hardware, so it can now be installed.

apt-get install linux-image-2.6.26-2-amd64 linux-headers-2.6.26-2-amd64

The previous kernel is unnecessary as capricorne hardware has been corrected.

apt-get remove linux-image-

Modules to be included in initrd need to be adapted. amd74xx may now be in module and e1000e replace e1000. Changes are made in /etc/initramfs-tools/modules.


Debian Lenny now provide broadcom firmware by a additionnal non-free package

apt-get install firmware-bnx2

Load of this firmware in initrd doesn't work, so we have to adapt the modules configuration by move bnx2 from initrd modules to userspace module

sed -i -e '/^bnx2$/d' /etc/initramfs-tools/modules

initrd have to be regenerated

update-initramfs -u -k all

bnx2 should be added in modules

echo "bnx2" >> /etc/modules


Openfabrics Infiniband userspace is needed.

apt-get install libmlx4-1 libmlx4-dev

Infiniband support module load need to be explicit.

echo "mlx4_ib" >> /etc/modules


New myrinet drivers are available.

cd /usr/local/src/
tar xvfz mx_1.2.9.tar.gz
cd mx-1.2.9
./configure --prefix=/usr/local --enable-64b --enable-10g --enable-2g
make install


Finally, the date of the release is updated.

date > /root/release


Creating image's archive

Now, a valid minimal environment has been build. Its corresponding image file has to be generated. At this point, the environment contains configuration files that depends of the site which installs it. These files must be excluded from image archive to stay as neutral as possible.

System archive creation and retrieving is now an easy task:

tgz-g5k login@frontend:lenny-x64-base-1.0.tgz

Creating postinstall's archive

Postinstall archive is the etch-x64-base-1.0 postinstall.

Recording environment

Recording environment can be done from a description file. So we create lenny-x64-base-1.0.dsc:

name = lenny-x64-base-1.0
description = https://www.grid5000.fr/index.php/Lenny-x64-base-1.0
author = cyril.constantin@loria.fr
filebase = file:///grid5000/images/lenny-x64-base-1.0.tgz
filesite = file:///grid5000/postinstalls/lenny-x64-base-1.0-post.tgz
size = 1000
initrdpath = /boot/initrd.img-2.6.26-2-amd64
kernelpath = /boot/vmlinuz-2.6.26-2-amd64
fdisktype = 83
filesystem = ext3

With kaenvironments, the new environment can be known by Kadeploy:

kaenvironments --add /grid5000/images/lenny-x64-base-1.0.dsc
Personal tools

Public Portal
Users Portal
Admin portal
Wiki special pages