Etch-x64-base-2.0

From Grid5000

Jump to: navigation, search

This page describes the 2.0 version of the minimal environment (see the general strategy for reference images) based on Etch 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 Etch-x64-base-1.1

Contents

Identification sheet

Etch-x64-base-2.0

Kernel version 2.6.18-6-amd64 from Debian for amd64/em64t

Authentication

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

Applications

Misc

Build

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

Motd

Motd is updated :

cat > /etc/motd.tail <<EOF
Etch-x64-base-2.0 (image based on Debian version Etch 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, Carri System CS-5393B
Applications
 * Text: Vim, XEmacs, JED, nano, JOE
 * Script: Perl, Python, Ruby
 (Type "dpkg -l" to see complete installed package list)
Misc
 * 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/Etch-x64-base-2.0
EOF

Packages

Installed packages are upgraded to their last release:

aptitude update
aptitude full-upgrade

Drivers

New myrinet drivers are available.

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

Kernel has been updated (to the same version) so e1000 module should be regenerated.

cd /usr/local/src/e1000-7.6.15.4/src/
make install

Mark

Finally, the date of the release is updated.

date > /root/release

Environment

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 cconstantin@frontale:images/etch-x64-base-2.0.tgz

Creating postinstall's archive

Postinstall archive is based on etch-x64-base-1.0 postinstall. Proxy definitions are removed by default but apt is configured to use proxy.

mkdir postintall
cd postinstall
tar zxvf /grid5000/postinstalls/etch-x64-base-1.0-post.tgz
rm dest/etc/environment
mkdir -p dest/etc/apt/apt.conf.d/
cat > dest/etc/apt/apt/conf.d/proxy <<EOF
Acquire::http::Proxy "http://proxy.<[SITE]>.grid5000.fr:3128" ;
EOF
tar zcvf ../etch-x64-base-2.0-post.tgz

Recording environment

With kadeploy2

Recording environment can be done from a description file. So we create /grid5000/descriptions/etch-x64-base-2.0.dsc2:

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

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

karecordenv -fe etch-x64-base-2.0.dsc2

With kadeploy3

Recording environment can be done from a description file. So we create /grid5000/descriptions/etch-x64-base-2.0.dsc3:

name : etch-x64-base
version : 2
description : https://www.grid5000.fr/index.php/etch-x64-base-2.0
author : cyril.constantin@loria.fr
tarball : /grid5000/images/etch-x64-base-2.0.tgz|tgz
postinstall : /grid5000/postinstalls/etch-x64-base-2.0-post.tgz|tgz|traitement.ash /rambin
kernel : /boot/vmlinuz-2.6.18-6-amd64
initrd : /boot/initrd.img-2.6.18-6-amd64
fdisktype : 83
filesystem : ext3
visibility : public
environment_kind : linux

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

kaenv3 -o add -f etch-x64-base-2.0.dsc3
Personal tools
Wiki special pages