Re: fai for ubuntu intrepid 8.10 clients?

2008-11-26 Diskussionsfäden Adrian Gibanel Lopez

 I've already checked in launchpad that ubuntu's intrepid's fai
 package
 has been updated to gutsy. But hardy ?


 For what it's worth, I took the Lenny packages from Tomas Lange's
website (3.2.14) and adapted it for Hardy.  Works fine, but it did
require some massaging to alter the package names (for example, the aufs
packages in Ubuntu are provided by linux-ubuntu-modules and it's ilk),
kernel names, and other differences.
Thank you for your work. I'll use it if I do not manage to setup 8.10 in
the client.

 Once fai-setup -v is finished I try to boot the client.

 * It fetches ok kernel and initrd. I think it mounts the nfs ok.

 However I am not very about itbecause it often outputs:

 mount: error while loading share libraries: libsepol.so.1

 I have checked the NFSROOT interpretation by make-fai-nfsroot and libsepol
 seems to be installed ok so I do not understand why that happens.


 Are libsepol1 and libsepol1-dev both installed?
libsepol1 it is. libsepol1-dev I will check it.

 * It outputs wc not found but coreutils seems to be installed. Is there
any place where might I check the PATH?


 Is the wc problem in the config space or in the client (/target) space?
It is something that client outputs but I do not know if it is before
mounting the system by nfs or before.

 You can chroot into the nfsroot on your FAI server to find out
 pre-installation if it's in the nfsroot, and drop to a busybox shell
with a ctrl+c during the installation to find out if wc is present in
the client space.
Just to be sure, what would be the default path on which I should chroot?

So If I am in the client and I think that installation has begun (How do I
know that it has begun by the way?) I press CTRL+C and get a busybox. Ok.
Thank you for the TIP.

 * It outputs grep: error while loading libpcre.so.3. What's the associate
 package for that?


 Do an 'apt-cache search libpcre'; the answer should be self-evident.
I just used the search option (Both package name and description) in
Synaptic and nothing appeared. I will try your command (I should have
tried it too. ;) )


 * It outputs complaints about perl because of en_US.UTF_8 locale not being
 correctly installed. How do I fix it? (It is very annoying).


 This is because the locale is not being set during the installation.
Make sure belocs-locales-bin, locales, and util-linux-locales are in the
list of packages installed to the client
Ok. I'll check them.
.  You can then make a custom
 script that executes something like the following to make sure it's the
default locale when you reboot:

 $ROOTCMD bash -x -c echo \LANG='en_US.UTF-8'
 LANGUAGE='en_US.UTF-8' LC_CTYPE='en_US.UTF-8'
 LC_NUMERIC='en_US.UTF-8'
 LC_TIME='en_US.UTF-8'
 LC_COLLATE='en_US.UTF-8'
 LC_MONETARY='en_US.UTF-8'
 LC_MESSAGES='en_US.UTF-8'
 LC_PAPER='en_US.UTF-8'
 LC_NAME='en_US.UTF-8'
 LC_ADDRESS='en_US.UTF-8'
 LC_TELEPHONE='en_US.UTF-8'
 LC_MEASUREMENT='en_US.UTF-8'
 LC_IDENTIFICATION='en_US.UTF-8'\  /etc/environment
Ok. Thank you.

 That's just off the top of my head, so there may be typos :P
;)

 I also, just as an extra precautionary measure, install postgres like
this in Hardy,
Wait a moment. I want intrepid on my clients. Just to be sure that I
understand what's my target.

 And finally (not related to the client boot) I have also seen that when
parsing NFSROOT file is not finding any ext2resize package.

 Is it a problem? How do I solve it?

 If you want ext2resize in your nfsroot, put it in /etc/fai/NFSROOT and
run make-fai-nfsroot -k
I will have to check what -k means.

What it is funny about ext2resize is that I have download the whole
intrepid repository (or I think so), 47,6 GB and there is no ext2resize
package nowhere.

 Respectfully,
 Ryan

Thank you for all your suggestions, now, let's see if your suggestions
apply all for intrepid too or not. ;)

-- 
Firma Automática 1:
-
Adrian Gibanel Lopez
Estudiante de Ingenieria de Informatica de Sistemas en la Universitat de
LLeida.
Firma Automática 2:
-
Participante en el III Concurso Universitario de Software Libre.
Proyecto: Desdeslin. http://desdeslin.wordpress.com



-- 
Firma Automática 1:
-
Adrian Gibanel Lopez
Estudiante de Ingenieria de Informatica de Sistemas en la Universitat de
LLeida.
Firma Automática 2:
-
Participante en el III Concurso Universitario de Software Libre.
Proyecto: Desdeslin. http://desdeslin.wordpress.com


Re: fai for ubuntu intrepid 8.10 clients?

2008-11-26 Diskussionsfäden Ryan Steele

Achim Bohnet wrote:


Am 25.11.2008 um 20:32 schrieb Ryan Steele:


Adrian Gibanel Lopez wrote:

Hi list,


   This is my first message. I am trying to setup FAI so that it serves
Ubuntu 8.10 as the client system.
   I've already checked in launchpad that ubuntu's intrepid's fai 
package

has been updated to gutsy. But hardy ?



For what it's worth, I took the Lenny packages from Tomas Lange's 
website (3.2.14) and adapted it for Hardy.  Works fine, but it did 
require some massaging to alter the package names (for example, the 
aufs packages in Ubuntu are provided by linux-ubuntu-modules and it's 
ilk), kernel names, and other differences.


The ubuntu fai pkgs are build for an lauchpad bzr repo:  lp:fai/ubuntu
See https://code.launchpad.net/fai.   You can compare to lp:fai branch
with correponds to the debians code or build the ubuntu fai package.
The diff.gz will contain the ubuntu changes.

Would be nice if you could merge your changes.  Or sent the diff
compared to debians sources.


Well, my installation is kind of hacked up now; I've completely removed 
the FAIBASE, GERMAN, and other classes that I never use.  And, 
unfortunately, my FAI server isn't even Hardy yet, I'm just using it to 
install Hardy clients.  So it wouldn't be a very pristine diff - 
definitely not representative of a stock installation.  But, if you give 
me a week or two (perhaps over this holiday weekend I can find some 
time), I can try to grab a virgin copy of 3.2.14 on a Hardy box and 
generate a diff.  Are the Intrepid packages much different than the 
Hardy packages?  I admit, I'm guilty of not having looked at the repo in 
quite some time, since I needed a more bleeding edge version than what 
was available from those repo's when I constructed my FAI server.





   Here there are some of the things that I have done so far:

- Added 192.168.1.5 demohost line to /etc/hosts line.
- Setup /etc/fai/apt/sources.list to intrepid
- Setup /etc/default/tftpd-hpa to my config.
- Idem with /etc/dhpc3/dhcp.conf
- Modified:
   FAI_DEBOOTSTRAP=intrepid
file:/home/ubuntu_mirrors/us.archive.ubuntu.com/ubuntu

and:

FAI_DEBOOTSTRAP_OPTS=--exclude=dhcp-client,info
--include=aptitude,fontconfig,defoma,belocs-locales-bin

in /etc/fai/make-fai-nfsroot.conf.

First line is obvious.

The second line tried to fix a bug about aptitute command not being 
found
(now it is found) and the fontconfig,deforma,belocs-locales-bin 
tried to
fix some lack of packages on the client (I think so) because of some 
error

that I have.


Ah that's interesting.


If that's something folks are hitting, we should probably get some more 
detail about what the user did to resolve the problem.







- Modified NFSROOT so that: console-tools and sysvinit are not 
installed
and upstart is installed. (I thought that it was the origin of the 
client

problems but I am not sure any more.)

- Followed the quick-start guide (copied the examples and so on)

Once fai-setup -v is finished I try to boot the client.

* It fetches ok kernel and initrd. I think it mounts the nfs ok.

However I am not very about itbecause it often outputs:

mount: error while loading share libraries: libsepol.so.1

I have checked the NFSROOT interpretation by make-fai-nfsroot and 
libsepol

seems to be installed ok so I do not understand why that happens.



Are libsepol1 and libsepol1-dev both installed?


I run into the sam problem.  It's not missing or wronge packages.
For whatever reason most path include a /root prefix so binaries
and libs are ther but not found.

I've compared a lenny nfsroot/initrd with the ones from ubuntu
but could not find the reason :(


This is something that I never hit when converting the Lenny packages to 
Hardy.  But your explanation isn't very clear to me - what do you mean 
'most path include a /root prefix'?  I can interpret that in several ways.








* It outputs wc not found but coreutils seems to be installed. Is there
any place where might I check the PATH?



Is the wc problem in the config space or in the client (/target) 
space?  You can chroot into the nfsroot on your FAI server to find 
out pre-installation if it's in the nfsroot, and drop to a busybox 
shell with a ctrl+c during the installation to find out if wc is 
present in the client space.


Again wrong file path spec.   wc and libs are there.  Only not found.


Again, please clarify your statement above.



* It outputs grep: error while loading libpcre.so.3. What's the 
associate

package for that?



Do an 'apt-cache search libpcre'; the answer should be self-evident.

* It outputs complaints about perl because of en_US.UTF_8 locale not 
being

correctly installed. How do I fix it? (It is very annoying).



This is because the locale is not being set during the installation.  
Make sure belocs-locales-bin, locales, and util-linux-locales are in 
the list of packages installed to the client.  You can then make a 
custom script that executes something like the following to make sure 
it's 

Re: Which class gets applied first?

2008-11-26 Diskussionsfäden Ryan Steele

Thomas Lange wrote:

On Wed, 26 Nov 2008 09:56:56 -0500, Ryan Steele [EMAIL PROTECTED] said:



 Well, the packages might not always handle the order.  Using the locale 
 example again, a package might not 'require' locales to be configured, 
 if it can use 'POSIX' or 'C' - how is the package to know that you don't 
 want those?  It can't read your mind - it's going to use whatever is 
 there.  This is just one case where the package cannot predict 
 everything the user might want.


OK, now I understand. I've filed a bug report for this.
http://bugs.debian.org/506971

  

Cool, sounds good - thanks Thomas.

Regards,
Ryan





How to debug install_packages?

2008-11-26 Diskussionsfäden Thomas Neumann

hiya

How can I get more information on what's going on from install_packages? 
Is there a better way besides set -x and echo?


There's something fishy going on and I don't know what triggers it. 
During a Debian installation i_p tries to call yast and install 
kernel-xenpae. The only time this package is mentioned in my config 
space is in package_config/DEFAULT - but in a way that it should never 
be regarded as must install this for Debian (or Ubuntu).


tschüß
thomas


Re: How to debug install_packages?

2008-11-26 Diskussionsfäden Thomas Lange
 On Thu, 27 Nov 2008 00:41:30 +0100, Thomas Neumann [EMAIL PROTECTED] 
 said:

 How can I get more information on what's going on from install_packages? 
 Is there a better way besides set -x and echo?
if you add verbose to FAI_FLAGS, install_packages is called with -v.

 There's something fishy going on and I don't know what triggers it. 
 During a Debian installation i_p tries to call yast and install 
 kernel-xenpae. The only time this package is mentioned in my config 
 space is in package_config/DEFAULT - but in a way that it should never 
 be regarded as must install this for Debian (or Ubuntu).
Put your packages_config/DEFAULT and fai.log onto paste.debian.net and
we can help you.
-- 
regards Thomas


Re: How to debug install_packages?

2008-11-26 Diskussionsfäden Thomas Neumann

hiya

Thomas Lange schrieb:
There's something fishy going on and I don't know what triggers it. 
During a Debian installation i_p tries to call yast and install 
kernel-xenpae. The only time this package is mentioned in my config 
space is in package_config/DEFAULT - but in a way that it should never 
be regarded as must install this for Debian (or Ubuntu).



Put your packages_config/DEFAULT and fai.log onto paste.debian.net and
we can help you.


Actually I helped myself. Was a really stupid mistake. Somehow I got 
hold of an unpatched NFSroot. (Didn't include the and-patch.)


On the bright side:

[EMAIL PROTECTED]:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 8.10
Release:8.10
Codename:   intrepid

Full debootstrap from a lenny nfsroot, installation rules based on 
ubuntu hardy. Only changes I had to make:

  - add --include=aptitude to FAI_DEBOOTSTRAP_OPTS
  - rename /dev/hda to /dev/sda in menu.lst after grub has run

I LIKE THIS SHIT!   :p

tschüß
thomas