Re: Silent installation or progress bar

2010-03-24 Diskussionsfäden Thomas Lange
 On Wed, 24 Mar 2010 14:14:31 +0100, david touzeau 
 david.touz...@fr.kaspersky.com said:

 I would like to know how to remove /change events that are displayed
 when installing system trough CD using fai-cd
All messages that appear on the screen are the output of the commands
executed by FAI and some extra FAI messages.

 When FAI start to format disks it sould be take a long time and
 sometimes users think there is a bug because nothing happen during the
 disk format process.
It will not be easy to make the partitioning tool more verbose during
creating file systems. mke2fs for e.g. does not has a progress bar.

 This an example but it will be cool to provide a kind of screen that
 display a progress bar during the setup.
There's a packages called goto-fai-progress, which provides a progress
bar, when you are using FAI in context of GOsa (www.gosa-project.org).
I never tried it and I do not know if it only works when using GOsa.

I once tried to do something simple using dialog, but it was not a
progress bar but just a list of task that got an OK button, when this
task was finished. Like faimond-gui, but only text/curses GUI and for
the install client.

You may get a silent installation, if you switch the terminal using
the command chvt.

-- 
regards Thomas


Re: fai-setup teething trouble

2010-03-24 Diskussionsfäden Thomas Lange
 On Wed, 24 Mar 2010 15:33:46 +, Jonathan Morrison 
 j...@srl.cam.ac.uk said:

 Mounting /files/scratch/debmirror to 
 /srv/fai/nfsroot/live/filesystem.dir//media/mirror.
 mount: you must specify the filesystem type
 ERROR: Can't mount /files/scratch/debmirror to 
IIRC this only works when using NFS.

-- 
regards Thomas


Re: Anatomy of an FAI run?

2010-03-25 Diskussionsfäden Thomas Lange
 On Thu, 25 Mar 2010 09:40:30 +0100, Andreas Schuldei 
 andreas+linux-...@schuldei.org said:

 for a high-level overview for your colleagues, you might be interested
 in this poster: www.informatik.uni-koeln.de/fai/poster_a4.pdf

 is that gone again? i would like to see it too.
Have a look at http://www.informatik.uni-koeln.de/fai/poster/
-- 
regards Thomas


FAI 3.3.5 released

2010-04-05 Diskussionsfäden Thomas Lange
I just released FAI version 3.3.5 which fixes some security bugs in
install_packages, because it write some files to world-writeable
directories. These bugs are only a problem if you are using dirinstall
or if you are using dselect-upgrade in packages_config during
softupdate.

You can get the newest version by adding this line to sources.list

deb http://www.informatik.uni-koeln.de/fai/download lenny koeln

-- 
regards Thomas


FAI Workshop 2010

2010-04-20 Diskussionsfäden Thomas Lange
Es ist wieder mal Zeit fuer einen FAI Workshop.

Von Freitag 2.Juli bis zum Sonntag 4.Juli 2010 koennen wir im
Linuxhotel in Essen wieder eifrig an FAI arbeiten. Zielgruppe fuer
dieses Treffen sind Leute, die schon Erfahrung mit FAI gemacht haben
und bereit sind an dem Wochenende an FAI mitzuarbeiten.

Dies sind Vorschlaege fuer einige Themen

- Gemeinsam Bugs fixen
- FAI mit squeeze testen
- neue Features planen, diskutieren und testen

Wer Interesse hat dabei zu sein, schicke bitte eine kurze Mail an
mich.

Kosten: Ich werde versuchen fuer Unterkunft und Essen einen Sponsor
zu finden. Ob Reisekosten erstattet werden koennen, kann ich zur Zeit
nicht sagen, jeder muss seine Reisekosten also erstmal selber tragen.

-- 
viele Gruesse Thomas


Re: Howto use actual FAI 3.3.5 instead of 3.2.17 while creating nfs-root-filesystem?

2010-04-27 Diskussionsfäden Thomas Lange
 On Tue, 27 Apr 2010 15:17:47 +0200, Jens Abromeit j...@abromeit.info 
 said:

 But with this setting, the default FAI-packages from the stable release
 (lenny), are used for making the nfs-root-filesystems. Snippet from
 /var/log/fai/make-fai-nfsroot.log:

   Setting up fai-client (3.2.17~lenny1) ...
   Setting up fai-nfsroot (3.2.17~lenny1) ...

 Because there are no packages[.*] files in the download directory of the
 FAI project, I used apt-mirror to download the files to

There _are_ Packages[.*] files. Just add this line to
/etc/fai-i386/apt/sources.list:

deb http://www.informatik.uni-koeln.de/fai/download lenny koeln

then you will get the newest FAI version 3.3.5.

-- 
regards Thomas


Re: Failed to obtain UUID (RAID, no LVM)

2010-05-04 Diskussionsfäden Thomas Lange
 On Tue, 4 May 2010 11:01:29 -0400, David Ward anson...@gmail.com said:

 Hi, I'm trying a basic raid 1 config with no LVM and I get this error when
 running fai-cd -
fai-cd? Are you sure?

 PS - Here's a link to the console screenshot -
 
https://docs.google.co/leaf?id=0B0w1B2FR89n3ZWFmZjA5Y2QtMzJkNS00YzUzLTgzMGQtMGE0ZTNiZmY3OGE1hl=en

1) This link is broken!
2) Why do you use a screenshot and do not provide the log output. For
   example part of fai.log or format.log?

Please do not use screenshots and force us to click on a google link,
if a simple ASCII text file should do the same job!

-- 
regards Thomas


Re: fai-setup crashed existing tftp-server

2010-05-11 Diskussionsfäden Thomas Lange
 On Tue, 11 May 2010 14:20:37 +0200, Martin Schulte 
 schulte-mar...@web.de said:

Please do not write to f...@informatik
Writing to linux-fai is sufficient.

 Some ideas for a workaround?
Use a tftp client for debugging. Have a look at the tftp daemon log
files. Maybe you should disable all the mcast features.
-- 
regards Thomas


Re: make /var/lib/dpkg a ramdisk :(

2010-05-18 Diskussionsfäden Thomas Lange
 On Tue, 18 May 2010 17:28:38 +0200, Juergen Kahnert 
 juergen.kahn...@desy.de said:

 any idea why this:
 # make /var/lib/dpkg a ramdisk
 mkramdisk $target/var/lib/dpkg
 was added into /usr/lib/fai/subroutines?
This makes the installation much faster (on machine which have enough
memory).

 Not every device being installed with FAI has so much memory...
You can write a hook and redefine mkramdisk as a noop subroutine.  A
future version of FAI will have a variable, which holds a list of all
directories that will be put into a ramdisk. If this list is empty, no
ramdisk will be created. But it's not yet implemented.

 Filling up the memory also prevents the error.log being written, which
 causes a reboot (no errors found) running into a non-working system.

-- 
regards Thomas


Re: DHCP environment prepared?

2010-05-18 Diskussionsfäden Thomas Lange
 On Tue, 18 May 2010 18:54:18 +0300, Toomas Tamm tt-...@kky.ttu.ee said:

 During fai-setup, the following message is always printed:

 DHCP environment prepared. If you want to use it, you have to enable the 
dhcpd and the tftp-hpa daemon.

 What is the meaning behind the DHCP environment prepared.?
It means, that the pxelinux/cfg ditrectory is created and the kernel,
the initramfs and pxelinux.0 is copied to the tftp directory.
You are right, the DHCP daemon itself is not set up.

 I have so far always configured my DHCP server manually. Does this
 message imply that there is an easier way?
No. I think it's not easy to configure the DHCP by FAI. I guess people
have very different and maybe complicated DHCP setups, so it's easier
to let people to this instead of a script that will break an existing
dhcpd.conf. Btw, the next FAI version will have a simple script, that
helps adding/removing host entries to/from your dhcpd.conf.

-- 
regards Thomas


My plans for travel and conferences

2010-05-18 Diskussionsfäden Thomas Lange
Hi folks,

these are my travel/conference plans for the next months. If you like
to meet me, drop me a mail, or just join the event :-)

From may 25-28 I'll be at the FFG (Frühjahrsfachgespräch of the
German Unix User Group) in cologne. I will give a talk about 10 years
of the FAI project.

Next, you can meet me in Berlin at the Linuxtag (june 9-12). No talk,
but I'll be at the Debian booth.

Then I'll give a talk at the Open Source Data Center Conference (OSDC)
in Nuremberg (23rd and 24th June).

From july 2-4 the FAI developers workshop will be held in Essen and
sure I'll be there :-)

Later I'll attend the DebCamp and DebConf in New York (july 25th - aug
7th) where I will work a lot on FAI.

After that I'll be traveling from Albuquerque to California for
vacation. I'm leaving the USA at the beginning of september. But if
you like to meet me somewhere on my trip, we may try to arrange
something.

-- 
regards Thomas (Mrfai)



Re: FAI ainsl exit code, softupdate, scripts/FAIBASE/10-misc

2010-06-01 Diskussionsfäden Thomas Lange
 On Mon, 24 May 2010 17:11:07 -0500, Rob rclem...@booksys.com said:

 This is because ainsl returns an error (1) if the line is already in the 
  exit 1 if $found; # nothing to append
I've changed this to 0 in the svn trunk. Thanks for the hint.

 The return values of ainsl are not documented on the ainsl manpage.
Feel free to send a patch for the man page. I will apply it
immediately.

 Thank you for FAI and your help and ideas!
You're welcome.
-- 
regards Thomas


Re: setting up Debian Squeeze with a Debian Lenny fai server

2010-06-18 Diskussionsfäden Thomas Lange
 On Fri, 18 Jun 2010 16:58:06 +0200, Stefan Pampel 
 spamtest-eir1beu...@asp4.polyformal.de said:

 I run fai-setup -vC /srv/nfs-root-squeeze and many errors came up, like

 chroot: cannot run 'apt-get' ..
It's a broken package mirror. I guess it's already debootstrap (which
is called by make-fai-nfsroot, which is called my fai-setup) which
causes this error.

-- 
regards Thomas


new initramfs-tools package in the koeln repository

2010-06-30 Diskussionsfäden Thomas Lange
I just put the new package initramfs-tools version 0.97 into the FAI
package repository. It fixes bug #58159 and several other bugs. It's
also working with lenny.

Add this line to the sources.list file and you will get the newest FAI
version for lenny:

deb http://www.informatik.uni-koeln.de/fai/download lenny koeln

-- 
regards Thomas


RE: new initramfs-tools package in the koeln repository

2010-06-30 Diskussionsfäden Thomas Lange
Ooops, a mistake. It was bug #581596 not #58159.
-- 
regards Thomas


Re: Type YES before install

2010-06-30 Diskussionsfäden Thomas Lange
 On Wed, 30 Jun 2010 14:22:36 +0200, Mark Eisenblaetter 
 mark.eisenblaet...@gmail.com said:

 i am searching for a way to let the user type YES before install.
 I hoped there were a FAI_ACTION but i found none.
The fai-cd asks for typing in: installme

Have a look at 
http://www.informatik.uni-koeln.de/fai/download/misc/30menu.source

It's an example how to prompt for user input at the console.


 www.gl-systemhaus.de
Hey, a company in cologne.
I'm always very interested in user experiences with FAI. Can you
please fill out the FAI questionnaire
http://www.informatik.uni-koeln.de/fai/questionnaire
and send it back to me when you finished a project with fai.

-- 
regards Thomas


Re: partitioning bug?

2010-07-06 Diskussionsfäden Thomas Lange
 On Tue, 6 Jul 2010 12:26:13 +0100 (GMT+01:00), 
 webanmeld...@backenhoernchen.de said:


 As I would think of the setup-storage program, it should exit with an 
error on 100% if it is not possible to create such a partition, because there 
are already others or what ever. 0- instead would run through, even there is 
not 100% of the disk size available.

 In my opinion the implementation you use should be considered a bug since 
it is not what a user expects and additionally seems to brake under certain 
conditions (like mine).

IMO this is only a minor bug. If you specify 99%- and no other
partition, then setup-storage will put the whole disk size into 
this partition. People know, that you cannot use 100% of a disk,
since there's always some overhead. Even the MBR is sort of
overhead. You will also not get 100% inside your file system. 

@Michael: I think it should be ok, to document that people should use
99%- instead of 100%.

-- 
regards Thomas


Re: FAI 3.3.5 for Ubuntu Lucid

2010-07-15 Diskussionsfäden Thomas Lange
 On Tue, 13 Jul 2010 08:33:34 +0200, Stephan Hermann s...@sourcecode.de 
 said:

 On Mon, 2010-07-12 at 17:47 +0200, Robert Markula wrote:
  I'm curious; what are the main differences to stock FAI?
 
  actually nothing special.
Is there a URL to the diffs between the Debian and Ubuntu package? I
do not mean the diffs between the old and new Ubuntu packages.

-- 
regards Thomas


Re: FAI_NORAMDISK seems to be ignored

2010-07-16 Diskussionsfäden Thomas Lange
 On Fri, 16 Jul 2010 09:33:00 +0200, Adrien Desprez 
 adrien.desp...@gmail.com said:

 I have defined FAI_NORAMDISK=1 in FAIBASE.var.

 I can see effectively that this variable is defined in fai.log:
 Calling task_defvar
 ++ FAI_NORAMDISK=1

 Nevertheless, FAI uses a ramdisk (fai.log again):
 Ramdisk mounted onto /target/var/lib/dpkg

 Have I missed something?
You have hit #583289, which is not fixed in 3.3.5.
Here's the patch for it:
http://lists.alioth.debian.org/pipermail/fai-commit/2010-May/002873.html
-- 
regards Thomas


Re: FAI 3.3.5 for Ubuntu Lucid

2010-07-16 Diskussionsfäden Thomas Lange
 On Fri, 16 Jul 2010 11:45:09 +0200, Stephan Hermann s...@sourcecode.de 
 said:

 If everything works correctly (dns etc.) you should find the debdiff
 under http://fai-development.sourcecode.de/fai-packages
Works perfectly. Only 71 lines of diff! If I only cound the real diffs,
it's only 21 lines including 6 lines of comments.
Great to see that FAI on Ubuntu only needs that tiny changes.

Thanks a lot for your work Stefan.

-- 
regards Thomas


Re: FAI and yaml [Work in progress]

2010-07-19 Diskussionsfäden Thomas Lange
 On Mon, 19 Jul 2010 19:19:21 +, Thomas Neumann 
 blacky+...@fluffbunny.de said:

Have a look at 
http://faiwiki.informatik.uni-koeln.de/index.php/FaiTemplates

This may help you.

 Wouldn't it be a better idea to use json arrays representation?
No. I also prefer yaml over json.
And have a look at :
http://faiwiki.informatik.uni-koeln.de/index.php/FaiTemplates

-- 
regards Thomas


Re: FAI and yaml [Work in progress]

2010-07-20 Diskussionsfäden Thomas Lange
 On Tue, 20 Jul 2010 08:38:52 +0200, Stephan Hermann s...@sourcecode.de 
 said:

 Such a templating system would make sense for FAI...if we could now find
 a templating system which is language neutral...
What do you mean by language neutral?
Yaml is better than json, because json is only a subset of yaml. Every
json document is also a valid yaml document. And there are yaml
bindings for almost every programming language.

-- 
regards Thomas


Re: Unattended install without boot control

2010-07-22 Diskussionsfäden Thomas Lange
 On Wed, 21 Jul 2010 23:54:16 +0200, Olivier Parisy 
 olivier.par...@gmail.com said:

 I would like to use FAI in order to standardize hosted servers 
 installation and, if needed, perform disaster recovery.

 Their specificity is that the only way I can boot those servers is on 
 their hard disks, or on predefined, host-provided installation ISOs. 
 Network boot is out of question.
First, there's the fai-cd. This would be perfect if you can boot from
an ISO. Especially for your disaster recovery environment, in which
you will not be able to boot from local disk, I guess.

Another approach is to create a special boot partition, which includes a boot
loader (using a special config file), the kernel and its initrd. Using
this components, you are able to boot the kernel which mounts the FAI
nfsroot via network card, like in a normal FAI installation.

-- 
regards Thomas


Re: fai_action

2010-08-06 Diskussionsfäden Thomas Lange
 On Fri, 6 Aug 2010 10:42:56 +, mamadou diop diopmod...@gmail.com 
 said:

 Hello members, how to postion FAI_ACTION to sysinfo or to install.
Read the man page of fai-chboot. There's a flag wich sets the variable 
FAI_CACTION.
-- 
regards Thomas


Re: boot failed

2010-09-09 Diskussionsfäden Thomas Lange
 On Thu, 9 Sep 2010 14:16:55 +, mamadou diop diopmod...@gmail.com 
 said:

 Trying to load : pxelinux.cfg/.
 Trying to load : pxelinux.cfg/00
 .
 .
 Unable to locate configuration file

 I remember that the directory /srv/tftp/fai/pxelinux.cfg is empty.
Use fai-chboot for creating the config for your install clients. Also
read man fai-chboot.
-- 
regards Thomas


Re: problem connecting to the new system installed

2010-09-21 Diskussionsfäden Thomas Lange
 On Tue, 21 Sep 2010 14:11:36 +, mamadou diop diopmod...@gmail.com 
 said:

 Hello, after successfully installing ubuntu 8.04 with fai, i have two
 problems:
 the first one is to connect to the new system installed. I have tried the
 combinations 'log:fai, pwd:fai',
 'log:statd, pwd:fai', 'log:statd, pwd:statd' but the system diplays 'login
 incorrect'.
Try use root with password fai, or user demo with password fai.

 The second one is that there isn't any graphical environnement.
If you have installed the DEMO class, there's no graphical
environnement. Use class GNOME to get nice graphics.
-- 
regards Thomas


Re: user 'demo' is not in the sudoers file

2010-09-22 Diskussionsfäden Thomas Lange
 On Wed, 22 Sep 2010 11:28:37 +, mamadou diop diopmod...@gmail.com 
 said:

 i cannot connect to it as root. if i do 'sudo -i' and put the password
 'fai', the system displays:
 demo is not in the sudoers file.   This incident will be reported.
Why don't you just login as root, without doing sudo? This will work.
In the default FAI examples sudo is not configured.
-- 
regards Thomas


Re: /etc/fai/NFSROOT

2010-09-22 Diskussionsfäden Thomas Lange
 On Wed, 22 Sep 2010 11:57:38 +, mamadou diop diopmod...@gmail.com 
 said:

 Hello, i want to install the packages 'x-window-system-core', 
'gnome','gdm'
 and 'python'. May i put them at
 the top group of /etc/fai/NFSROOT and recreate the nfsroot?
No. You should read the FAI guide, before changing the
configuration. It seems, that you did not yet understand some FAI
basics, so the best it to read the whole FAI guide and some man pages.
-- 
regards Thomas


Re: installation pb with fai 2.4.2 (BUG?)

2010-09-25 Diskussionsfäden Thomas Lange
 On Sat, 25 Sep 2010 13:55:22 +0200, william Famy 
 william.f...@laposte.net said:

I hope you are running 3.4.2, not 2.4.2 ;-)


 FAI_CONFIG_SRC=nfs://192.168.100.251/srv/fai/config
TRhis semms to be fine.

 make-fai-nfsroot.conf:
 FAI_CONFIGDIR=/srv/fai/config
Did you create your config space on your install server and put the
simple example into it?

 fai-setup -v
Did you get any errors here?


 FAI_CONFIG_SRC is set to nfs://192.168.100.251/srv/fai/config
 mount.nfs: mount point /var/lib/fai/config does not exist.
 error in task confdir traceback: task_error main
Your config sspace does not exists on the install server.

 So let's try to create the directory
 under chroot
Don't do this.

-- 
regards Thomas


Re: installation pb with fai 2.4.2 (BUG?)

2010-09-25 Diskussionsfäden Thomas Lange
 On Sat, 25 Sep 2010 14:25:53 +0200, william Famy 
 william.f...@laposte.net said:


 ls /srv/fai/nfsroot/live/filesystem.dir/var/lib/fai/config
 class  debconf  disk_config  files  hooks  package_config  scripts  tests
This is completetly wrong. Yoiu must not create those subdirectories
inside the nfsroot.


 ls /srv/fai/config/
 class  debconf  disk_config  files  hooks  package_config  scripts  tests
Looks good. Did you NFS exported this directory?


-- 
regards Thomas


Re: HP BL460c G6 - Any one got this working??

2010-10-04 Diskussionsfäden Thomas Lange
 On Mon, 4 Oct 2010 17:04:13 +0200, Leen Smit l...@service2media.com 
 said:

   Hello All,
 We just got a bunch of new blades in. Lucky for me they are a new 
 generation: G6.
 I'm struggling to get these things installed, so I'm hoping some one 
 here has experience with these.

 The problem lies with the bnx2x network cards, which is not in my 
 current FAI config.
 I have tried lots of different options, and I keep running into a wall.

Have a look at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578407
and http://layer-acht.org/fai-irc/fai.log.20090916.html

There's also a firmware-bnx2x (0.24~bpo50+1) package in lenny
backports. Maybe this helps.
-- 
regards Thomas


detailed article in German about the FAI project

2010-10-05 Diskussionsfäden Thomas Lange
I just put a detailed article in German about 10 years FAI project on
the web. It was published in may 2010 in the Uptimes magazine of the
German Unix User Group. This article describes the FAI software itself
and also my experiences in 10 years of the FAI project.

You can get it here:

http://fai-project.org/doc/10-jahre-fai.pdf

-- 
regards Thomas


FAI 3.4.4

2010-10-18 Diskussionsfäden Thomas Lange
I just pushed FAI 3.4.4 into the squeeze repository at fai-project.org.

Add this line to your sources.list files:

deb http://fai-project.org/download squeeze koeln

-- 
regards Thomas


Re: debootstrapping multidistributions

2010-10-20 Diskussionsfäden Thomas Lange
 On Wed, 20 Oct 2010 11:40:20 +, mamadou diop diopmod...@gmail.com 
 said:

 Hello. How to create multi-nfsroots for differents distributions on a FAI
 server?
 For example, if the FAI server is Ubuntu hardy, is it possible to
 debootstrap lucid or even Debian squeeze?
Yes. Different basefiles are what you need. Have a look at 
http://fai-project.org/fai-guide/ar01s07.html

That way you can install different distributions but only using the
same nfsroot.
-- 
regards Thomas


Re: FAI 3.4.4

2010-10-22 Diskussionsfäden Thomas Lange
 On Fri, 22 Oct 2010 08:40:02 +0200, Andreas Heinlein aheinl...@gmx.com 
 said:

 deb http://fai-project.org/download squeeze koeln
 
 
 Could you tell me why the squeeze repository does not contain any
 linux-image-...-grml anymore, like the lenny repository did? Official
The grml kernel will be added in the future. I have to ask Mika what
other packages are needed when using the newer grml kernels. Then I
have to do a little test. But you will see an announcement if the grml
kernel is available.

-- 
regards Thomas


Re: Recursive fcopy and permissions

2010-10-22 Diskussionsfäden Thomas Lange
 On Fri, 22 Oct 2010 08:42:34 +0200, Andreas Heinlein aheinl...@gmx.com 
 said:

 fcopy -Bir -m root,root,0777

 only applies the permissions to files, but not to directories, right? I
Yep. #484666: fcopy: file-modes do not yet work for directories

Patches are welcome :-)
-- 
regards Thomas


How to define additional classes on the kernel command line

2010-10-28 Diskussionsfäden Thomas Lange
This is how you can define FAI classes on the kernel command line.

If you add the string below to the kernel command line, a variable
ADDCLASSES will be defined by FAI. Later the command fai-class(1) uses
this variable to define additional classes A, C and B.

Example: ADDCLASSES=A,C,B
-- 
regards Thomas


grml kernel 2.6.33 and 2.6.35 available in the FAI repository

2010-10-28 Diskussionsfäden Thomas Lange
If you have hardware which requires newer a kernel version for booting
FAI, you can use the grml kernels. I've just put versions 2.6.33 and
2.6.35 into the squeeze repository of the FAI project.

If you add the line below to your /etc/fai/apt/sources.list file, you
can replace linux-image-486 with linux-image-2.6.35-grml in your
/etc/fai/NFSROOT and after calling make-fai-nfsroot you will have the
2.6.35 grml kernel inside your nfsroot. Don't forget to call
fai-chboot(1) otherwise, you may boot the old kernel. The amd64
version is called linux-image-2.6.35-grml64.

deb http://fai-project.org/download squeeze koeln

This works using FAI 3.4.4 with squeeze and lenny.
-- 
regards Thomas


Re: I need some netboot help

2010-10-28 Diskussionsfäden Thomas Lange
 On Fri, 22 Oct 2010 09:31:56 +0200, Markus Wigge mar...@cultcom.de said:

 For paravirtualised VMs XenServer is aware of the Debian repository
 architecture and tries to boot the kernel and initrd in
 dists/lenny/main/installer-i386/current/images/netboot/xen, so I built
 my own repository infrastructure and put the original Xen-Kernel there
 with a custom netboot inirtd.
Please boot the Debian kernel, that is inside the nfsroot. You may
want to put a xen version into the nfsroot.

 Unfortunately it does not work as expected yet. For some reason the
 netboot initrd image I tried is unable to mount the nfsroot. 
Do not boot the netboot image. You must boot a kernel which can mount
the root file sys tem via NFS. I guess the netboot image can't do
this.

-- 
regards Thomas


Re: documentation / improvement of FAI_RAMDISKS?

2010-10-29 Diskussionsfäden Thomas Lange
 On Wed, 13 Oct 2010 12:20:15 +0100, Michael Tautschnig m...@debian.org 
 said:

 I briefly looked at the code myself and I completely agree that for
 FAI_RAMDISKS to be called a drop-in replacement of FAI_NORAMDISK there 
really
 should be both a proper documentation and a handling of a special value 
(maybe
 -, assuming that nobody would name a directory like this). I would, 
however,
 like to see Thomas' input on this issue, but he's on vacation until the 
end of
 this week.
I would suggest to use NONE. I just documented this at
http://wiki.fai-project.org/wiki/Variables

-- 
regards Thomas


Re: gpg errors

2010-11-10 Diskussionsfäden Thomas Lange
 On Wed, 10 Nov 2010 09:47:00 +0100, Andreas Heinlein aheinl...@gmx.com 
 said:

 installed any kernels in the nfsroot. It just means the script tries to
 copy kernels from the nfsroot to your tftp-dir and cannot find one.
 Actually, even that is no real failure, as you could as well provide the
 kernel and initrd by some other means.
Sure, this _is_ a real failure. If you have no kernel inside the
nfsroot, also won't have the kernel modules inside the nfsroot. Thus,
even if you boot a kernel it cannot load its modules and will likely
fail to continue with the installation.

-- 
regards Thomas


Re: gpg errors

2010-11-10 Diskussionsfäden Thomas Lange
 On Tue, 9 Nov 2010 21:45:05 +0100, Martin Konrad 
 kon...@ikp.tu-darmstadt.de said:


 cp: cannot stat `/srv/fai/nfsroot/live/filesystem.dir/boot/vmlinu?-*': No 
such 
 file or directory
 cp: cannot stat `/srv/fai/nfsroot/live/filesystem.dir/boot/initrd.img-*': 
No 
 such file or directory

Which FAI version are you using?


 It seems the keys are not available if I chroot to the NFSROOT. Maybe 
that's 
 why the script failes?
No, the script does not fail because of the GPG error.
Try make-fai-nfsroot -v and read the log file.

-- 
regards Thomas


Re: gpg errors

2010-11-10 Diskussionsfäden Thomas Lange
 On Wed, 10 Nov 2010 11:09:05 +0100, Martin Konrad 
 kon...@ikp.tu-darmstadt.de said:

 Which FAI version are you using?
 Sorry, I forgot: 3.4.4 on squeeze. I'm using FAI_ALLOW_UNSIGNED=0 to 
avoid 
 installation of untrusted packages.
FAI_ALLOW_UNSIGNED=0 does not work when calling make-fai-nfsroot. It
will be ignored. So the problem must be elsewhere.


 It tries to get the grml kernel from your repository which fails because 
of 
 the gpg issue. So this should be only a subsequent error.
I don't think so. Please show the parts from the logs.

-- 
regards Thomas


Re: Keyserver for v3.4.4?

2010-11-17 Diskussionsfäden Thomas Lange
 On Wed, 17 Nov 2010 14:37:16 -0800, Fred Aswad f...@wittyname.com said:

 What keyserver to use for v3.4.4? I keep getting a not found on 
keyserver
 error.
What are you not finding on keyserver? Please give a more detailed
problem description.

-- 
regards Thomas


Re: bad interaction between fai and mkconf (mdadm)

2010-11-22 Diskussionsfäden Thomas Lange
 On Mon, 22 Nov 2010 10:26:25 +0100, Rudy Gevaert rudy.geva...@ugent.be 
 said:

   mkconf uses the DEVICE variable.  During the fai install the DEVICE
   variable is set!
 Mmmm. I also can't find the DEVICE variable inside the FAI sources. We 
have
 $BOOT_DEVICE and $device, but not $DEVICE.
 
 Which version of FAI are you using? Which mdadm version?
 Maybe the lowecase version get converted to the uppercase variable?
Can anyone using FAI on Ubuntu check, if the DEVICE variable is set in
Ubuntu? Maybe a Ubuntu specific problem.

-- 
regards Thomas


Re: Let fcopy look for files containing more than one class name separated by dots

2010-11-25 Diskussionsfäden Thomas Lange
 On Thu, 25 Nov 2010 09:43:36 +0100, Johannes Plunien 
 johannes.plun...@xing.com said:

 want, by dots. The most specific wins. So if there's a file
 CLASS1.CLASS2.CLASS3, it will win over CLASS1.CLASS2 if the
 server is in all three classes. 
I wonder what happens if there's a file CLASS4.CLASS5.CLASS6 and the
client also belongs to those classes. Which file will fcopy choose
then?

-- 
regards Thomas


host does not boot with grub_pc and /dev/sdd as boot disk

2010-11-25 Diskussionsfäden Thomas Lange

I have following configuration:

four SATA disks, three times 1TB, one 80GB disk. This 80GB should be
my boot disk. The three disks will be part of a RAID0.

During installation the disks will be named:

   80  976762584 sda
   8   16  976762584 sdb
   8   32  976762584 sdc
   8   48   78150744 sdd

setup-storage creates all partitions softraid and file systems very
well. (Great work Michael!). This is my disk_var.sh

SWAPLIST=/dev/sdd5
BOOT_DEVICE=/dev/sdd
ROOT_PARTITION=UUID=55e150ff-0e7f-427b-ab82-0354e7515d8a
BOOT_PARTITION=/dev/sdd1


Later GRUB_PC/10-setup is called without any errors

=   shell: GRUB_PC/10-setup   =
Generating grub.cfg ...
cat: /boot/grub/video.lst: No such file or directory
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
done
Installation finished. No error reported.
GRUB_PC/10-setup OK.

But the host does not boot. No grub prompt, just nothing. First, I
thought is a buggy BIOS. But it's a bug in FAI IMO.

Let's have a look:

 cat /boot/grub/device.map 
(hd0)   /dev/disk/by-id/ata-ST31000524NS_9WK1MYSS
(hd1)   /dev/disk/by-id/ata-ST31000524NS_9WK1MYEJ
(hd2)   /dev/disk/by-id/ata-ST31000524NS_9WK1MYRA
(hd3)   /dev/disk/by-id/ata-SAMSUNG_HD080HJ_S08EJ1GYC01865

My boot disk is not hd0, but hd3 (that means sdd as in disk_var.sh).
But 10-setup just installs grub into hd0.

 cat GRUB_PC/10-setup:
#! /bin/bash
# support for GRUB version 2 (1.98-1)

error=0 ; trap error=$((error|1)) ERR

$ROOTCMD grub-mkdevicemap -n -m /boot/grub/device.map
$ROOTCMD grub-mkconfig -o /boot/grub/grub.cfg
$ROOTCMD grub-install --no-floppy (hd0)

exit $error

After manually calling $ROOTCMD grub-install --no-floppy (hd3)
everything works just fine.


Any comments?
-- 
regards Thomas


RE: FAI stable release 3.4.5 available

2010-12-01 Diskussionsfäden Thomas Lange
 On Wed, 1 Dec 2010 10:57:23 +0100, BITTNER Peter 
 peter.bitt...@thalesgroup.com said:

 will there be an ISO image of this release for download on the FAI 
website? As of today, there are version 3.3 images for i386/amd64 and a USB 
stick tar file available at http://fai-project.org/fai-cd/

Yes, I will create images including FAI 3.4.x and squeeze.
But currently there's no autobuild process for this, so I have to do
parts of it manually. I will do this if I have more time, at least
when squeeze becomes stable, but I hope to create the images before.

-- 
regards Thomas


Re: Current status of multi-homes machines

2010-12-01 Diskussionsfäden Thomas Lange
 On Wed, 1 Dec 2010 17:03:34 +0100, Carsten Aulbert 
 carsten.aulb...@aei.mpg.de said:

 One machine is multi-homed, i.e. has 3 NICs, two onboard e1000e and one 
10Gb 
 . , is there a way to know in the initrd 
 phase from which NIC the kernel and initrd were served (maybe just the 
MAC) 
 and try that device first to mount the NFSROOT from?
Use fai-chboot -P. The initrd code includes some code which evaluates
the BOOTIF kernel boot parameters. fai-chboot -P in cooperation with
pxelinux will set this variable.
-- 
regards Thomas


Re: probably no grub-install in FAI installation

2010-12-09 Diskussionsfäden Thomas Lange
 On Thu, 9 Dec 2010 10:47:45 +0100, Henning Fehrmann 
 henning.fehrm...@aei.mpg.de said:

 we are currently testing a FAI-Squeeze installation and struggled with 
the 
 grub2 installation. We are using the FAI-server v 3.4.5 and install the 
current 
 Squeeze grub-ps package v 1.98+20100804-8.
 After the installation the system does not boot from the hard drive. It 
turned
 out that '/usr/sbin/grub-install' never has being called in the postinst 
script 
 of the grub-pc package. 
The postinst does not need to call grub-install. If your client
belongs to the class GRUB_PC, the script GRUB_PC/10-setup will be
called and this script calls grub-install. I just tested it here
again, and it works like a charm. 
-- 
regards Thomas


Re: issue with $netdevices_up and squeeze

2010-12-13 Diskussionsfäden Thomas Lange
 On Sun, 12 Dec 2010 16:38:23 -0800, David Dreezer d...@socialstrata.com 
 said:


 In working through the upgrade to Squeeze however, this script is 
failing.  The problem is that with Squeeze $netdevices_up returns all devices 
except LO, up or not. 

 3: eth1: NO-CARRIER,BROADCAST,MULTICAST,UP mtu 1500 qdisc pfifo_fast 
state DOWN qlen 1000
 link/ether 00:30:48:72:21:d7 brd ff:ff:ff:ff:ff:ff

 As you can see device 3, eth1 has no cable plugged into it, thus 
NO-CARRIER and state DOWN but it is still returned.  On Lenny device 3, eth1 
wouldn't be returned.

I guess it's initramfs-tools or live-boot which puts all NIC's into
status up. Then the command ip link show up return all those
interfaces, even if they have no carrier. So, we could sway it's a bug
of the ip command. Or we could additionally check
/sys/class/net/eth0/carrier

-- 
regards Thomas


Re: issue with $netdevices_up and squeeze

2010-12-14 Diskussionsfäden Thomas Lange
 On Mon, 13 Dec 2010 20:50:58 -0800, David Dreezer d...@socialstrata.com 
 said:

 This did not work, unfortunately. I patched the get-boot-info
 script
Did you patched it inside the nfsroot?

-- 
regards Thomas


Re: $MAXPACKAGES

2010-12-16 Diskussionsfäden Thomas Lange
If you use NFS access to your Debian mirror, the packages will not need
any space under /var.
-- 
regards Thomas


Re: TEST: fai libeatmydata

2010-12-21 Diskussionsfäden Thomas Lange
 On Tue, 23 Nov 2010 18:13:33 +0100, Julien BLACHE jbla...@debian.org 
 said:

 On our standard-issue workstation with our standard software package
 (complete GNOME + KDE + a selection of scientific packages) [1], using
 libeatmydata for the instsoft task led to a 50% reduction of the
 deployment time.
 We went from 45 minutes down to somewhere around 22-25 minutes.
Hi folks,

I also did some tests with eatmydata. This really improves the
installation time if you use dpkg 1.15.8.5. If you use dpkg 1.15.8.7
from unstable using eatmydata does not help, since the installation time is
already fine. On my machine the installation time of 4.2GB of software
on an ext4 file on three disks in a software RAID0 system are:

Using dpkg 1.15.8.7 and eatmydata  246s.
Using dpkg 1.15.8.7 without eatmydata  248s.

Using dpkg 1.15.8.5 and eatmydata  251s.
Using dpkg 1.15.8.5 without eatmydata  391s.


So using dpkg 1.15.8.7 is prefered and I hope it will make it into squeeze.

P.S.: The machine has 48GB RAM and is a dual CPU hexa-core machine.
-- 
regards Thomas


Re: Timing issue with scripts (GRUB/10-setup runs last)

2010-12-30 Diskussionsfäden Thomas Lange
 On Thu, 30 Dec 2010 15:18:26 -0500, Allison, Brad 
 balli...@alertsite.com said:

 I don't think that would work because at the time it ran the current class
 would be GRUB since it's running out of GRUB/20-fix_grub_menulst,  so 
the
 logic would always return false for that if statement.
It will work, since the classes are defined during the whole time and
so the ifclass statement will return true in this case.


P.S.: Please do not cite the whole mail, if not needed. And you also
do not need to CC people, because the people are also subscribed to
the list. 

-- 
regards Thomas


Re: apt preferences and fai-mirror / fai 3.4.5

2011-01-01 Diskussionsfäden Thomas Lange
 On Fri, 31 Dec 2010 01:37:06 +0100, Piotr Kandziora ravee...@gmail.com 
 said:

 Is fai-mirror from FAI 3.4.5 on Debian Squeeze supporting apt
 preferences? If yes, how to use it?
 I've looked into fai-mirror code and unfortunately did not see support
 for this mechanism, Am I right?
I also do not see code supporting this. Do you have a patch for this?
-- 
regards Thomas


Re: mysql-server debconf password

2011-01-13 Diskussionsfäden Thomas Lange
 On Thu, 13 Jan 2011 22:15:27 +0100, Natxo Asenjo natxo.ase...@gmail.com 
 said:

 This is my first post to this list but I have been using FAI for quite
 a while, I am a happy user :-)
Great. I'm always very interested in user experiences with FAI. Can you
please fill out the FAI questionnaire http://fai-project.org/questionnaire
and send it back to me.

 Anyway, I need to install some servers with mysql-server, and would
 like to set the root mysql password from FAI.
AFAIK it's set in /etc/mysql/debian.cnf
But during a FAI installation no daemons are started. So, you cannot
feed the database with data durin FAI installation. Normally this is
done during the first boot using a script like
/etc/rc2.d/S99set-my-mysql.

-- 
regards Thomas


Re: Repairing a failed grub_pc installation

2011-01-18 Diskussionsfäden Thomas Lange
 On Tue, 18 Jan 2011 19:22:41 +0200, Toomas Tamm tt-...@kky.ttu.ee said:

 First, the sysinfo system had not mounted /usr, /var, etc under /target.
 Wasn't it the case some years ago that a system booted into FAI sysinfo
 automagically found the root partitition and used the /etc/fstab there
 to mount the remaining partitions under /target ? Has this functionality
 been lost somehow?
This should still work. But I'm not sure if it also works when usiong
lvm and raid.

 Once I manually had mounted /usr, I was met by an
 incomplete /target/dev. While the global /dev contains 176 entries,
 including /dev/sda, /dev/sda1, etc, the one at /target/dev has only 94
 entries, and is, in particular, missing the disk entries /dev/sda,
 /dev/sda1, etc. After some trial and error, I succeeded in creating
 these manually. Why were they missing?
Very strange. Are you booting an older kernel when using sysinfo?

-- 
regards Thomas


Re: Repairing a failed grub_pc installation

2011-01-21 Diskussionsfäden Thomas Lange
 On Tue, 18 Jan 2011 19:22:41 +0200, Toomas Tamm tt-...@kky.ttu.ee said:

 First, the sysinfo system had not mounted /usr, /var, etc under /target.
 Wasn't it the case some years ago that a system booted into FAI sysinfo
 automagically found the root partitition and used the /etc/fstab there
 to mount the remaining partitions under /target ? Has this functionality
 been lost somehow?
Yep. But I just fixed it:

http://lists.alioth.debian.org/pipermail/fai-commit/2011-January/003354.html

-- 
regards Thomas


Re: FAI to deploy CentOS

2011-01-25 Diskussionsfäden Thomas Lange
 On Tue, 25 Jan 2011 09:09:34 +0100, Thierry LAMOUREUX 
 thierry.lamour...@noveltis.fr said:

 I would like to use FAI to install and update computers/servers under 
Debian
 and CentOS (non Homogeneous IS).

 On your homepage it is specified that FAI could be use for both OS 
 Installs and updates Debian, Ubuntu, SuSe, RHEL, CentOS, Mandriva, 
Solaris,
 ...  but the installation documentation is only related to debian systems
 (FAI server and FAI clients).


 Do you have any documentation that could match with my needs ?
Hi Thierry,

you're right. The documentation about CentOS support is not that
good. My plans are, that FAI 4.x will support CentOS out-of-the-box
with a good documentation. Maybe you like to help testing and giving
feedback on this topic. But let's do this on the linux-fai mailing
list (see CC:).

Here's what has to be done:

- create a base.tgz of Centos (tools: rinse, maybe mach, see
  http://wiki.fai-project.org/wiki/Development_plan)
- name this tarbar CENTOS5_I386.tar.gz for example
- put it into /srv/fai/config/basefiles
- add class CENTOS5_I386 to your client
- write a hook prepareapt.CENTOS5_I386 which includes code to set up
  access to the centos package repository

If you finished those parts the package installation should
work. Then, the customization scripts have to be checked for Debian
specific things, for e.g. how to setup the boot loader.

I you need any help, please contact me on the mailing list, or on
IRC. I really like to get CentOS work with FAI. Please give us
feedback on your progress.
-- 
regards Thomas


Do not cite the whole mail if not needed

2011-01-26 Diskussionsfäden Thomas Lange
Hi guys,

more often people post to this list and cite the whole posting when
answering a mail. Sometimes this is done in several levels of citation
of a citation of a 
Please do not do this. Instead cite only the parts that are relevant
to get the context, or maybe the subject is enough to get the mail
thread.

thanks for keeping an eye on this
-- 
regards Thomas


Re: Ubuntu karmic no vmlinuz after installation

2011-01-31 Diskussionsfäden Thomas Lange
 On Mon, 31 Jan 2011 15:28:20 +, mamadou diop diopmod...@gmail.com 
 said:

 Hello, i have successfully installed ubuntu karmic with FAI.
Really? Did you check all logs files? Did you have installed a
linux-image package?

-- 
regards Thomas


Re: /scripts/live not found

2011-02-02 Diskussionsfäden Thomas Lange
 On Wed, 2 Feb 2011 16:30:34 +0100, Tobias Michelis 
 miche...@mi.uni-erlangen.de said:

 I'm trying to setup a fai-install server under Ubuntu lucid 10.04.01
 LTS. The following error occured. 
 When I want to boot the to b installed machine I get the following
 error.

 init: line 238 can't open /scripts/live 
I guess you did not install the package live-initramfs into the
nfsroot.

-- 
regards Thomas


Re: [0]Re: /scripts/live not found

2011-02-02 Diskussionsfäden Thomas Lange
 On Wed, 2 Feb 2011 17:36:23 +0100, Tobias Michelis 
 miche...@mi.uni-erlangen.de said:

 According to the logfile fai-setup.log it is installed. The only strange
 thing abiut the installation of it is
   Setting up live-initramfs (1.215.1-1grml.01) ...
   ls: cannot access /boot/vmlinu*: No such file or directory
Is a kernel package installed and an initrd created? Maybe put you
fai-setup.log on paste.debian.net, so I can look at it. Or join the
#fai IRC channel tomorrow to get more help.
-- 
regards Thomas


Re: New Errors after updating nfsroot from lenny to squeeze.

2011-02-02 Diskussionsfäden Thomas Lange
 On Wed, 02 Feb 2011 17:55:54 +0100, Andreas Schockenhoff a...@gmx.li 
 said:

 this error messages are in my error.log with squeeze nfsroot on lenny
 fai-server.

 dmesg.log:[   14.643449] aufs: module is from the staging directory, the
 quality is unknown, you have been warned.
You can ignore this.

 fai.log:dpkg: warning: obsolete option
 '--print-installation-architecture', please use '--print-architecture'
 instead.
I guess you have some old fai scripts. grep for the old options and
replace it by the new one.

 fai.log:insserv: warning: script 'nis' missing LSB tags and overrides
A problem of the nis package. Can be ignored, or write a patch and
submit it to the Debian BTS.

-- 
regards Thomas


Re: faimond doesn't work

2011-02-04 Diskussionsfäden Thomas Lange
 On Fri, 4 Feb 2011 12:42:47 +, mamadou diop diopmod...@gmail.com 
 said:

 Hello, i have run faimond during installation and here's the output:
 root@faiserver:~# faimond |faimond-gui -
 Can't locate Tk.pm in @INC (@INC contains: /etc/perl
You have to install the package perl-tk.

-- 
regards Thomas


Re: debian 6

2011-02-04 Diskussionsfäden Thomas Lange
 On Fri, 4 Feb 2011 14:41:42 +0100, Natxo Asenjo natxo.ase...@gmail.com 
 said:

 with debian 6 releasing this weekend, what is the best strategy for
 upgrading a stock lenny fai server?
You have to distinguish between upgrading the server OS itself, and
upgrading to a new FAI version including the FAI nfsroot and
configuration space. It also depends if you still like to install
lenny clients but using a squeeze install server, or if you mean how
to migrate your config space + nfsroot for lenny installation to
installations of squeeze clients.

My strategy is to still use a lenny install server but I upgraded my
lenny config space to support lenny and squeeze installation. This
needed some time but in the end is wasn't that much to change or add.
I also have different nfsroots one for lenny (using 3.4.5) and one for
squeeze (using 3.4.7).

-- 
regards Thomas


Re: debian 6

2011-02-04 Diskussionsfäden Thomas Lange
 On Fri, 4 Feb 2011 15:42:28 +0100, Natxo Asenjo natxo.ase...@gmail.com 
 said:

 so if I run apt-get dist-upgrade, it will not automatically update the
 nfsroot for lenny?
No. You have to run make-fai-nfsroot -v.


  Looking at packages.debian.org, the fai-nfsroot and
 fai-server packages versions for lenny and squeeze are 3.2.17 vs 3.4.7
 respectively. So I assumed that upgrading the os would also upgrade
 those packages.
Yes they will be upgraded, but not inside the nfsroot.

 I'll obviously have to test this before running the upgrade :)
Good idea.

P.S: I'm always very interested in user experiences with FAI. Can you
please fill out the FAI questionnaire http://fai-project.org/questionnaire
and send it back to me when you finished a project with fai.

-- 
regards Thomas


Re: fai-cd memtest86+.bin typo

2011-02-04 Diskussionsfäden Thomas Lange
 On Thu, 03 Feb 2011 21:50:16 +0100, Jurrie Overgoor jur...@stillus.nl 
 said:

 I don't know if this is the correct place to submit patches. If not, can 
 somebody point me to the correct place?
You cn always use the Debian BTS bugs.debian.org. But for such a small
patch it's also fine to send it to f...@fai-project.org.


I've attached a patch that fixes this 
Thanks for the patch. I will apply it next week.

BTW, I'm always very interested in user experiences with FAI. Can you
please fill out the FAI questionnaire http://fai-project.org/questionnaire
and send it back to me when you finished a project with fai.

-- 
regards Thomas


Re: Ubuntu natty: debootstrap doesn't install aptitude

2011-02-07 Diskussionsfäden Thomas Lange
 On Mon, 7 Feb 2011 15:37:37 +0100 (MET), Andreas Sindermann 
 sin...@thp.uni-koeln.de said:

 On the other hand it might be a good idea to generally switch to
 apt-get. But my suggestion would be to do this in the Debian packages.
In the past we switched from apt-get to aptitude, so I will not return
to apt-get. IMO aptitude works fine on the command line, and all
examples in FAI are using aptitude since a long time.

-- 
regards Thomas


Re: Ubuntu natty: debootstrap doesn't install aptitude

2011-02-07 Diskussionsfäden Thomas Lange
 On Mon, 07 Feb 2011 17:41:03 +0100, Stephan Adig s...@sourcecode.de 
 said:

 We do a debootstrap of variant=minbase (imho) I don't find the default
 right now.
 For minbase there was a patch for debian SID which explicitly stated
 apt as base package.

 Could it be, that somehow aptitude has the same impact?
I guess aptitude is installed because it has priority important in
Debian. Maybe Ubuntu changed this.


-- 
regards Thomas


Re: Ubuntu natty: debootstrap doesn't install aptitude

2011-02-08 Diskussionsfäden Thomas Lange
 On Tue, 08 Feb 2011 07:54:25 +0100, Stephan Adig s...@sourcecode.de 
 said:

 So, right, aptitude was degraded to optional and is not going to be
 installed inside the natty chroot.

 I would like to change the NFSROOT package list to install, if noone
 objects.
The resulting list of packages may differ when using install. AFAIK
apt-get and aptitude uses different dependency resolvers.  But this
may not be a problem at all.

-- 
regards Thomas


Re: How to automatically boot from the local HDD after installation?

2011-02-14 Diskussionsfäden Thomas Lange
 On Mon, 14 Feb 2011 16:06:39 +0900, Huioon Kim pcandme...@gmail.com 
 said:

 I'm a Korean user and this is my first post. :D
Hi Huioon, welcome on our mailing list.

 The client is booted via PXE when the installation is performed, so now I
 should manually make the client to be booted from its local hard disk 
using
 fai-chboot -o hostname command at a FAI server.
IF you call fai-chboot -o default on your install server, every
machine, that does not have a special PXE configuration, will get the
pxelinux config to bott from local disk. Normally each client calls
fai-chboot -d in the task chboot, so the client itself disables its own
configuration on the install server and then the default configuration
is used. If this does not work, check the log file, if something went
wrong in the task chboot.

-- 
regards Thomas


Re: Lenny-Server and Squeeze-Client - hard link problem?

2011-02-17 Diskussionsfäden Thomas Lange
 On Thu, 17 Feb 2011 17:00:51 +0100, Dirk Geschke d...@lug-erding.de 
 said:

 I'm still trying to use a lenny server to install via FAI a debian
 squeeze. I think the setup is correct, but I still run in problems.
 

 maybe the problem is somewhere else. At the end of the init sript
 
run-init /sbin/init

 Then I get a message saying something like

using makefile-style concurrent boot ...
Ouch. I guess fai is not working with init.d scripts run in parallel.
I wonder why whis happens. I should not.

I also have a lenny install server with a squeeze nfsroot, and my
squeeze installations works fine. I just installed my workplace with squeeze.


 is invoked and then I see a message, that /etc/init.d/rcS can not be
 started, fai-nfsroot seems to remove this:

diverted by fai-nfsroot to: /etc/init.d/rcS.distrib
That's ok.
-- 
regards Thomas


Re: setting the default backgrounds on GNOME clients

2011-02-18 Diskussionsfäden Thomas Lange
 On Fri, 18 Feb 2011 11:13:10 +, mamadou diop diopmod...@gmail.com 
 said:

 whose default image is the same used in Debian. Is it possible to use 
fcopy
 to change
 the default backgrounds and give to each release its own backgrounds and
 themes?

Use something like this to activate a different background image.

gconftool-2 --type string --set /apps/gnome-session/options/splash_image 
/path/to/image.ext

-- 
regards Thomas


Re: setup-storage: preserve partitions until the layout changes

2011-02-24 Diskussionsfäden Thomas Lange
 On Thu, 24 Feb 2011 09:56:20 +, Michael Tautschnig m...@debian.org 
 said:

 setup-storage: the problem is the very very small differences in the 
semantics
 of the various preserve* options, which make it prone to both subtle
 implementation errors and misunderstandings on the user side. 
+1 from me.

-- 
regards Thomas


Re: setup-storage: preserve partitions until the layout changes

2011-02-24 Diskussionsfäden Thomas Lange

 I include separate options for fresh installs in my pxe configs that
 boot FAI with the initial flag or whatever it is.

I filed a wishlist bug (#614914) for adding a new option to 
fai-chboot for setting this flag. Shouldn't be that hard to
implement. 

-- 
regards Thomas


Re: Fai do nothing......

2011-02-24 Diskussionsfäden Thomas Lange
 On Thu, 24 Feb 2011 14:05:32 +0100, Robert Ressl r...@canus.at said:

 i try to install the demohost, but fai do nothing.
 Waths the problem?

 root@demohost:/tmp/fai# cat fai.log
  -
Fully Automatic Installation  -  FAI

FAI 3.4.7, 24 Dec 2010   (c) 1999-2010
Thomas Lange  la...@informatik.uni-koeln.de
  -

 Calling task_confdir
 Kernel currently running: Linux 2.6.32-5-amd64 x86_64 GNU/Linux
 Kernel parameters: initrd=initrd.img-2.6.32-5-amd64 ip=dhcp
 root=/dev/nfs nfsroot=/srv/fai/nfsroot boot=live
 FAI_FLAGS=verbose,sshd,createvt FAI_ACTION=sysinfo

FAI does the sysinfo action. If you want an installation, call
fai-chboot with option -I instead of -S. Then you will get
FAI_ACTION=install 

-- 
regards Thomas


Re: chboot sub disable question/issue

2011-03-09 Diskussionsfäden Thomas Lange
 On Wed, 9 Mar 2011 12:20:52 -0800, David Dreezer d...@socialstrata.com 
 said:

 I'll have to think about the best way to get that from the client to the 
server and then make the file name change.

 Thoughts? Am I headed the right way? Making it too difficult?
Here's some code that someone send me a long time ago. Maybe it
helps you to write a patch. This is subroutines-linux that needs to be
modified. fai-chboot already supports the use of the MAC address
instead of a hostname or IP address in hex.


 # Get monitoring IP
 monip=`LANG=en host $SERVER | awk '{ print $4; }' | grep '[0-9\.]'`
 # Get route interface - MAC
 sndmac=$(LANG=en ip link show `ip route get to $monip | head -n1 | awk '{ 
print $3; }'` | tail -n1 | awk '{ print $2; }')
 sndpxe=01-$(echo $sndmac | tr : -)

-- 
regards Thomas


FAI meeting

2011-03-18 Diskussionsfäden Thomas Lange
Hi Michael,

hast du auch schon deine Reise nach Koeln gebucht? Ich freue mich
schon auf das Treffen im April.
-- 
Gruss Thomas


Has anyone experiences using Ubuntu 11.04/natty?

2011-04-03 Diskussionsfäden Thomas Lange
I aks everybody that already tested FAI with the upcomming Ubuntu
11.04 release to post success stories and problems on this list.
We need this information to get the FAI packages in proper shape for
the next Ubuntu release.

-- 
regards Thomas


Re: where to insert a pre-partioning script

2011-04-05 Diskussionsfäden Thomas Lange
 On Tue, 5 Apr 2011 10:26:36 +0100, Michael Tautschnig m...@debian.org 
 said:

 touch $LOGDIR/skip.partition
Instead, you should use this:

skiptask partition

-- 
regards Thomas


Re: the multi-nic issue...

2011-04-08 Diskussionsfäden Thomas Lange
 On Fri, 08 Apr 2011 12:35:03 +0200, Stephan Adig s...@sourcecode.de 
 said:

 You should try to use some magic from pxelinux.

 IPAPPEND 2 in your pxelinux.cfg files, and you should get on the kernel
fai-chboot -P will add IPAPPEND 3 to the kernel command line. This
will also work.

-- 
regards Thomas


Re: mysql-server debconf password

2011-04-13 Diskussionsfäden Thomas Lange
 On Mon, 17 Jan 2011 11:15:36 +0100, Natxo Asenjo natxo.ase...@gmail.com 
 said:

 On Thu, Jan 13, 2011 at 10:31 PM, David Dreezer d...@socialstrata.com 
wrote:

 In $FAI/config/debconf/YOURCLASS
 
 mysql-server mysql-server/root_password password myrootpassword
 mysql-server mysql-server/root_password_again password myrootpassword

 just another question about this:

 is it possible to escape a '$' or '#'in the password field? If I try
 with a '\' in front of those, it does not work.

 Just curious, this is no show stopper, I can change the passwords with
 cfengine later.
I just reviewd the FAI code. It just uses
debconf-set-selections  $filename
So no special tratment of the content from the FAI point of view. If $
and # can be added (or should be escaped) is decided by the
debconf-set-selections command itself. 
-- 
regards Thomas


Re: Restart a FAI installation without reboot

2011-05-09 Diskussionsfäden Thomas Lange
 On Fri, 6 May 2011 18:29:13 +0200 (CEST), Patrick Cervicek 
 patr...@failist.spamtrap.hs-esslingen.de said:

 Is there an easy method to restart a FAI Installation without rebooting 
 the target machine?

 Is there an easier solution availabe? e.g fai-restart-installation ?
No, currently this is not supported.
I also guess it's not that easy to implement a proper restart
installation button ;-).
-- 
regards Thomas


New FAI user reports

2011-05-11 Diskussionsfäden Thomas Lange
Hi all,

I am happy to announce the addition of some interesting FAI user reports.

StayFriends, a social network platform based in Germany, reported[1]
that they have installed more than 300 hosts using FAI.

LVM, a insurance company in Germany, deployed nearly 10,000
machines using FAI[2]. 7,000 machines of their field staff at 2,200
agencies and 3,000 machines at their head office are now running
Ubuntu.

A huge installation was reported by some anonymous company in the
financial industry. They have installed 32,000 hosts in batches of ~30
to ~700. 

Now we have more than 250 detailed user reports, all available at: 

   http://fai-project.org/reports/index.html

If you like to join the list of FAI users, please fill out the FAI
questionnaire[3].


[1]: http://fai-project.org/reports/index.html#stayfriends
[2]: http://fai-project.org/reports/index.html#lvm
[3]: http://fai-project.org/questionnaire/

-- 
regards Thomas


Re: Webpage and Wiki down

2011-05-15 Diskussionsfäden Thomas Lange
 On Sat, 14 May 2011 13:52:22 +0200, Michael Prokop m...@grml.org said:

 as it popped up on IRC and it seems to be more than just for a few
 hours I just wanted to report that http://fai-project.org/ and
 http://wiki.fai-project.org/ are down.

 Thomas, are you aware of it?
Yep. I will fix this on monday.

-- 
regards Thomas


Re: no IP address

2011-06-19 Diskussionsfäden Thomas Lange
 On Fri, 17 Jun 2011 14:49:01 -0500, John G. Heim jh...@math.wisc.edu 
 said:

 into an FAI install? I have a test machine that boots into linux and gets 
an 
 IP address via DHCP. But when i boot into an FAI install via a CDROM, it 
 drops into the initramfs shell and says it couldn't find a live file 
system. 
Mmm. do you have more detailed error messages? Have a look at
live.log. Is this the original FAI CD from the project web page? Which
FAI version?

-- 
regards Thomas


Re: no IP address

2011-06-21 Diskussionsfäden Thomas Lange
 On Tue, 21 Jun 2011 14:36:39 -0500, John G. Heim jh...@math.wisc.edu 
 said:

 Its the FAI version from debian testing, 3.4.8. I generated an iso file 
via 
 the fai-cd command because I need to modify the
 initrd to load a speakup screen reader module.
Hi John,

yep, I remember that you need the speakup module. In 3.4.8 we changed
the menu.lst for the fai CD. Before it contained the parameters:

ip=192.168.1.1:eth0:off

or similar. But the ip= parameter did not worked with new
live-boot versions, so it was completely removed. Now we also use
grub2 and grub.cfg.

I hope this helps for now
-- 
regards Thomas


Re: PACKAGES remove

2011-06-30 Diskussionsfäden Thomas Lange
 On Wed, 29 Jun 2011 17:53:49 +0200, Thilo Uttendorfer 
 t.uttendor...@linux-ag.com said:

 I have a problem concerning PACKAGES remove in package_config files. I 
want 
 some packages to be removed, lets say p1, p2 and p3. This works as 
expected 
 as long as the mirror knows about all these packages. But if the mirror 
does 
 not include one of these packages (which makes sense because I don't want 
to 
 install them), I get the error E: Couldn't find package p1. The problem 
is, 
 that apt-get in this case won't uninstall p2 or p3 either, even if the 
mirror 
 knows about these packages. I have this problem especially on CD-installs 
 where you usually don't have a complete mirror.
IMO this is a misbehaviour of apt-get. Also when trying to install
packages which are not known (for e.g.  because of a typo), the
installation of all packages is aborted. This is because apt-get 
does not handle unknown package names. It would be nice
to have a flag like --ignore-wrong-package-names for apt-get. 


 My workaround for now is to add a aptitude-remove-command to 
 install_packages because aptitude does not stop if one of the packages 
does 
 not exist. 
This works, because aptitude does it better than apt-get.
I will think about switching the remove command in install_package to
aptitude. It would be nice if you could file a wishlist/minor bug
report for this and add your patch. That way, your patch will not be forgotten.
-- 
regards Thomas


Re: PACKAGES aptitude

2011-07-08 Diskussionsfäden Thomas Lange
 On Fri, 8 Jul 2011 10:11:22 -0500, John G. Heim jh...@math.wisc.edu 
 said:

 Does it make any difference what order the packages are listed in a 
package 
 config file? I like to sort my lists of packages to make it easier to 
avoid 
 mistakes. But I'm not sure I should be doing that.
I'm not sure if aptitude's dependency resolver cares about the order
of package names. I would not try to sort them alphabetical. Inside
the packages_config files I sort them by topics. I group my base
packages and some additional network packages and my Debian tools, and
so on. 

-- 
regards Thomas


Re: grub problem in CENTOS installation

2011-07-21 Diskussionsfäden Thomas Lange
 On Thu, 21 Jul 2011 08:37:18 -0700, srivatsan s srivatsan@gmail.com 
 said:

 I have issues in installing CENTOS using FAI. I have created a local 
mirror
 of CENTOS and continued the installation.(CENTOS6)
Which FAI version are you using?

Please try FAI 3.4.8 and get the config space
http://fai-project.org/download/misc/fai4-config.tar.gz
This works with CentOS 5 and 6.
-- 
regards Thomas


Re: grub problem in CENTOS installation

2011-07-21 Diskussionsfäden Thomas Lange
 On Thu, 21 Jul 2011 13:24:03 -0700, srivatsan s srivatsan@gmail.com 
 said:

  do you mean i need to do this in 50-host-classes?

 #(ifclass I386 || ifclass AMD64)  echo GRUB_PC
 (ifclass I386 || ifclass AMD64)
 exit 0
 i have commented the echo GRUB_PC.
I'm not sure what you have done. Please check fai.log to which classes
your install client belongs.


 currently my client is getting installed based on
  *)
 echo FAIBASE CENTOS 
  ;; # CentOS does not use the GRUB class;;

It should also belongto the class CENTOS6_32 or CENTOS6_64.

P.S.: Please do NOT cite my whole message. Just cite the lines that are needed.

-- 
regards Thomas


Re: grub problem in CENTOS installation

2011-07-21 Diskussionsfäden Thomas Lange
First of all, turn of the debug flag.  Your log files are too big and
do not contains the information we need. Then check again what is not
working. You say, there are no errors now, but what do you mean by this?

 installation has not loaded
 the grub. when i check /boot/grub, it is empty

Did you try to boot then newly installed system?

Again, do not cite the whole mails when responding to mails and please
turn off HTML mails!
-- 
regards Thomas


FAI workshop at Linuxhotel

2011-08-02 Diskussionsfäden Thomas Lange
Hi all,

the next FAI workshop will be held from Friday 21 October to Sunday 23
October 2011 at the Linuxhotel in Essen, Germany.

This year, we will focus on preparing the 4.0 release. The necessary
work focusses on testing, updating documentation, fixing bugs, and
getting the Ubuntu package in a better shape. Everybody is welcome to
help with these tasks! 

Given that this meeting will mostly be about improving the quality of
the existing code base and preparation of a release, we would prefer
to postpone work on new features or graphical front ends to a later
meeting. As always, there will be ample time for informal discussions.

If you would like to participate, please do not hesitate to send an email to
f...@fai-project.org.

We will try to get some sponsors for covering the costs of Linuxhotel
and possibly also for money for travel sponsorship. At this point,
however, none of this should be taken for granted.


Best regards,
   Thomas, in behalf of the FAI team


CentOS and Scientific Linux Cern installations with FAI

2011-09-15 Diskussionsfäden Thomas Lange

I'm very happy to announce, that FAI now can install and configure CentOS
and Scientific Linux Cern (SLC). You can use a Debian FAI server for
installing CentOS version 5 and 6 or SLC 5 and 6.

As an example I've also built a FAI multi-distribution CD which
installs those three different Linux distributions with different
configurations. Get this ISO image from

http://fai-project.org/fai-cd/


This installation is very quick. I've done a CentOS 6.0 installation
(with graphical desktop) in 199 seconds (in a kvm instance on a
quad-core 3.2GHz, hard disk in RAM) and it only needs 490 seconds on
the real hardware when installing from CD.

Below is a short description how to install CentOS or SLC via network
from your FAI server.

Feedback is always welcome. Please send your feedback to the linux-fai 
mailing list
 https://lists.uni-koeln.de/mailman/listinfo/linux-fai/

Best regards,
   Thomas, in behalf of the FAI team



--
How to install CentOS or Scientific Linux Cern using FAI 3.4.8

- install FAI 3.4.8 on your Debian install server (squeeze)

- create the nfsroot as usual

- get the config space examples from FAI 4.x
  http://fai-project.org/download/misc/fai4-config.tar.gz
  (or svn co svn://svn.debian.org/svn/fai/trunk/examples/simple config)

- get the basefile for CentOS/SLC version 5 or 6 for your architecture
  at http://fai-project.org/download/basefiles/ and put it into
  your-config-space/basefiles

- echo USE_SETUP_STORAGE=1  your-config-space/class/CENTOS.var

- add your install client to the class CENTOS and one of these classes:
  CENTOS6_32
  CENTOS6_64
  SLC6_32
  SLC6_64

  Edit class/50-host-classes. A host named slchost or centos will get
  these classes automatically.

- If you would like to install a graphical desktop onto your install
  clients, add the class XORG. This works similar for CentOS 5 and 
  SLC 5 (uncomment relevant line in package_config/CENTOS).

Enjoy the non-Debian installation.


Re: fai log permissions

2011-09-27 Diskussionsfäden Thomas Lange
 On Tue, 27 Sep 2011 11:35:45 +0200, Natxo Asenjo natxo.ase...@gmail.com 
 said:

 hi,
 maybe this is addressed in a later version (I am still on the lenny
 fai version, the upgrade is planned).

 The standard fai log permissions are too generous: 644 for all the log
 files in /var/log/fai/localhost/install-date. If you use debconf to
 set passwords, then those passwords are readable to anyone with shell
 access.
After a look into the Changelog file
http://packages.debian.org/changelogs/pool/main/f/fai/current/changelog
I found this:


fai  (3.2.2) 
.
.
change permissions of LOGDIR (closes: #445276)


@Toomas: You can change this using a hook.

-- 
regards Thomas


Re: fai 3.4.8

2011-09-30 Diskussionsfäden Thomas Lange
 On Fri, 30 Sep 2011 15:50:52 +0200, Natxo Asenjo natxo.ase...@gmail.com 
 said:

 I copied the /etc/fai folder to /etc/fai.squeeze, edited
 make-fai-nfsroot.conf to point to a config.squeeze and nfsroot.squeeze
 folder, exported those folders in nfs.

 Something that surprises me is that during the installation I can read
 the FAI header and the version is not 3.4.8, but 3.4.7. Maybe is this
 the problem? Why is it using 3.4.7 when I upgraded to 3.4.8?
Have you updated /etc/fai/apt/sources.list?
  ^^^
You need an entry there for getting the 3.4.8 version inside the nfsroot.
-- 
regards Thomas


Re: apt-key add inside the chroot

2011-10-11 Diskussionsfäden Thomas Lange
 On Tue, 11 Oct 2011 22:28:01 +0200, Natxo Asenjo natxo.ase...@gmail.com 
 said:

 after importing the gpg key as indicated in
 http://fai-project.org/download/ I saw in the log that in the nfsroot
 the key was not present::

 W: GPG error: http://www.informatik.uni-koeln.de squeeze Release: The
 following signatures couldn't be verified because the public key is
 not available: NO_PUBKEY DC13E54EAB9B66FD

 Is there a way of getting the key in there?
You are right. Currently make-fai-nfsroot does not add apt keys. You
may want to file a wishlist bug report for this. But I propose to just
ignore the warning. 
-- 
regards Thomas


Re: CentOS and Scientific Linux Cern installations with FAI

2011-10-15 Diskussionsfäden Thomas Lange
 On Sat, 15 Oct 2011 10:35:16 +0200, Natxo Asenjo natxo.ase...@gmail.com 
 said:

 done, should I replace my files in /srv/fai/config.squeeze with those?
Yes.

 - get the basefile for CentOS/SLC version 5 or 6 for your architecture
  at http://fai-project.org/download/basefiles/ and put it into
  your-config-space/basefiles

 ok, this is where you lost me. Where is your-config-space/basefiles
 ? /srv/fai/config.squeeze/ ?
It's /srv/fai/config.squeeze/basefiles in your case.

-- 
regards Thomas


<    1   2   3   4   5   6   7   8   9   10   >