Re: Using make-fai-bootfloppy on an Ubuntu Hoary 5.04 FAI nfsroot
Hy Martin, On Thu, 2005-04-21 at 22:58 +0200, Martin Tanzer wrote: > Doploying Ubuntu(Hoary) with FAI > > > Introduction > > The method discribed at > http://www.sprang.de/wiki/index.php/Ubuntu_install_with_FAI did not work > for me at all with the following spcifications: > > * FAI 2.8 > * Install Server: sarge > * Target System: Ubuntu hoary I admit and am aware of, my description is not tested with the newest FAI version and only with hoary about 4 weeks before release and I would have to look to say something about how up to date my sarge mirror is... (just added these words to my wiki page introduction :) ) > > /fai-setup/ does not finish, because there are lots of unresolvable > depencies und missing packages. Even if I tweaked in the /chroot/ and > installed missing packages from other distributions, I ran into perl > (and other) troubles ion the targetsystem. So I decided to change the > strategy. > This sounds really strange - did you do everything exactly as written and used the config files I provide for download? The standard FAI debootstrap command line has some includes which are not in hoary or only in universe, so you really need to use the config file provided by me, and/or add universe to the fai sources.list plus adjust the . > > The way it works > > * Install fai on a sarge system > * Run fai-setup and set it up to your needs > * Chose an install kernel - I think it is better to build it from > 2.6 because the target system will use a kernel 2.6 > * Run make-fai-bootfloppy > * Test it ;-) > * Move /usr/lib/fai/nfsroot to /usr/lib/fai/nfsroot.sarge If you run make-fai-bootfloppy before make-fai-nfsroot, you will end up with a bootfloppy matching "some" older nfsroot but not the one you will create later. I am not sure if this causes trouble in any cases, but it's just not the same. > * Install ubuntus debootstrap > * Set FAI_DEBOOTSTRAP="hoary http://$mirrorhost/ubuntu"; (or > something) in make-fai-nfsroot > * Set /etc/fai/source.list to ubuntu sources > * Run /make-fai-nfsroot/. If it fails, execute > > cd /usr/lib/fai/nfsroot > mount -t proc /proc proc > chroot . > > * Try to install the missing packages from where ever. Leave the > chroot with CTRL-D > * Rerun > > make-fai-nfsroot -v -r > > * As long as you don't get a message /Building base.tgz/ repeat the > chroot trick. For the first time, I had to do that also, that's why i provided the example configs. I tweaked FAI variable FAI_DEBOOTSTRAP_OPTS in /etc/fai/make-fai-nfsroot.conf (included in the download file) plus, instead of installing those packages manually from "where ever", I would guess to try adding universe and multiverse apt sources lines to /etc/fai/sources.list first. Some packages where simply not needed or at least my installs just ran even if they where removed. The example provided by me for download should really help here. > * Once base.tgz is buildt, you are done. Move nfsroot to nfsroot.hoary > * Move nfsroot.sarge back to nfsroot > * Copy the content of /nfsroot.hoary/var/tmp/ to /nfsroot/var/tmp/ > (base-pkgs.lis base.tgz packages.arch) > * Set /nfsroot/etc/apt/source.list/ to ubunto sources I don't understand why you needed to do these moving actions, I can't remember of doing this. The hoary nfsroot should have nothing to do and work completely independent of any other sarge nfsroot. If you want the hoary nfsroot just reside in another place like /usr/lib/fai/nfsroot-hoary you just need to change the correlating variables in /etc/fai (or, like I did put it in /etc/fai-hoary) and if you control your dhcp and NFS server on your own, you can easily tell each client to use a different nfsroot (which must be exported by nfs), with a dhcpd.conf paragraph like that, for my example files it should be: host montego { hardware ethernet 00:90:F5:2B:AB:37; fixed-address montego; option root-path "/usr/lib/fai/ubuntu-nfsroot,rsize=8192,wsize=8192,acregmin=1800,acregmax=1800,acdirmin=1800,acdirmax=1800"; } (attention the root-path line must be one line with the following variable, this is crippled by my mail program) You can adjust the location of your nfsroot easily here. > * Its safe to restart the nfs-server > * Change the kernel to /linux-image-686/ in DEFAULT > * To build a desktop system add somewhere the package /ubuntu-desktop/ Yes, agreed - in the fai-2.8 ubuntu package, I will change that so this will not be needed, the ubuntu package should be usable in sarge, too. > * Start the target system, get a bier and enjoy the unattended > installation. After a reboot your desktop should come up with a > configured xserver. Thanks for the feedback, I hope, with some other testers, we can get a kind of documentation together that works for more than just one or two people, and is good enough to get
Re: Using make-fai-bootfloppy on an Ubuntu Hoary 5.04 FAI nfsroot
On Fri, 2005-04-22 at 16:34 +0200, Thomas Lange wrote: > > On Thu, 21 Apr 2005 15:56:49 -0400, Andre Luis Lopes <[EMAIL > > PROTECTED]> said: > > > ls: /usr/lib/fai/ubuntu-nfsroot/boot/vmlinu?-*: No such file or > directory > There's no kernel image available inside the nfsroot. > Maybe make-fai-bootfloppy should check for it first. Anyone who likes > to send me a patch for this? I am working on a new patch for the ubuntu FAI package and as soon as I am clear and done I will report you my changes. For me, things look good without adding the kernel explicitly to the packages variable, i had to adjust the packages variable in other details, plus some of the debootstrap excludes/includes. Details when I've finished testing. Henning
Re: Using make-fai-bootfloppy on an Ubuntu Hoary 5.04 FAI nfsroot
> On Thu, 21 Apr 2005 15:56:49 -0400, Andre Luis Lopes <[EMAIL PROTECTED]> > said: > ls: /usr/lib/fai/ubuntu-nfsroot/boot/vmlinu?-*: No such file or directory There's no kernel image available inside the nfsroot. Maybe make-fai-bootfloppy should check for it first. Anyone who likes to send me a patch for this? -- regards Thomas
Re: Using make-fai-bootfloppy on an Ubuntu Hoary 5.04 FAI nfsroot
Hi all, Andre Luis Lopes wrote: Does someone have an idea on what I could be looking for solving this problem ? I was able to fix the problem by inserting kernel-image-2.6.8-fai into the "packages" variable defined into the make-fai-nfsroot.conf file. -- André Luís Lopes [EMAIL PROTECTED]
Re: Using make-fai-bootfloppy on an Ubuntu Hoary 5.04 FAI nfsroot
Sorry, this message was crap - I thought the message was from the client. m Martin Tanzer wrote: >II think its because you didn't change the kernel to an Ubuntu available >kernel in DEFAULTS, so there is no kernel installed. I had this pain >yesterday- see my last mail ;-) >martin > >Andre Luis Lopes wrote: > > > >>Hi all, >> >> After spending some time, I finally got make-fai-nfsroot to create >>an Ubuntu Hoary 5.04 nfsroot. The FAI server is an up-to-date (as of >>today) Sarge server. >> >> After creating the nfsroot sucessfully, I'm trying to generate a >>floppy to install the workstations. I'm stuck at this : >> >>bart:~# export LC_ALL=C >>bart:~# make-fai-bootfloppy -v >>"FAI_FLAGS=verbose,createvt,sshd,syslogd,reboot" "FAI_ACTION=install" >>Using configuration files from directory /etc/fai. >>ls: /usr/lib/fai/ubuntu-nfsroot/boot/vmlinu?-*: No such file or directory >>Creating an ext2 filesystem on floppy device /dev/fd0. >>Creating the boot floppy with grub. >>Copying the kernel /usr/lib/fai/ubuntu-nfsroot/boot/vmlinuz- to the >>floppy. >>cp: cannot stat `/usr/lib/fai/ubuntu-nfsroot/lib/grub/i386-pc/stage?': >>No such file or directory >>rmdir: `/media/floppy': Not a directory >>bart:~# >> >> Does someone have an idea on what I could be looking for solving >>this problem ? >> >>-- >>André Luís Lopes >>[EMAIL PROTECTED] >> >> > > >
Re: Using make-fai-bootfloppy on an Ubuntu Hoary 5.04 FAI nfsroot
II think its because you didn't change the kernel to an Ubuntu available kernel in DEFAULTS, so there is no kernel installed. I had this pain yesterday- see my last mail ;-) martin Andre Luis Lopes wrote: > Hi all, > >After spending some time, I finally got make-fai-nfsroot to create > an Ubuntu Hoary 5.04 nfsroot. The FAI server is an up-to-date (as of > today) Sarge server. > >After creating the nfsroot sucessfully, I'm trying to generate a > floppy to install the workstations. I'm stuck at this : > > bart:~# export LC_ALL=C > bart:~# make-fai-bootfloppy -v > "FAI_FLAGS=verbose,createvt,sshd,syslogd,reboot" "FAI_ACTION=install" > Using configuration files from directory /etc/fai. > ls: /usr/lib/fai/ubuntu-nfsroot/boot/vmlinu?-*: No such file or directory > Creating an ext2 filesystem on floppy device /dev/fd0. > Creating the boot floppy with grub. > Copying the kernel /usr/lib/fai/ubuntu-nfsroot/boot/vmlinuz- to the > floppy. > cp: cannot stat `/usr/lib/fai/ubuntu-nfsroot/lib/grub/i386-pc/stage?': > No such file or directory > rmdir: `/media/floppy': Not a directory > bart:~# > > Does someone have an idea on what I could be looking for solving > this problem ? > > -- > André Luís Lopes > [EMAIL PROTECTED]
Re: Using make-fai-bootfloppy on an Ubuntu Hoary 5.04 FAI nfsroot
Doploying Ubuntu(Hoary) with FAI Introduction The method discribed at http://www.sprang.de/wiki/index.php/Ubuntu_install_with_FAI did not work for me at all with the following spcifications: * FAI 2.8 * Install Server: sarge * Target System: Ubuntu hoary /fai-setup/ does not finish, because there are lots of unresolvable depencies und missing packages. Even if I tweaked in the /chroot/ and installed missing packages from other distributions, I ran into perl (and other) troubles ion the targetsystem. So I decided to change the strategy. The way it works * Install fai on a sarge system * Run fai-setup and set it up to your needs * Chose an install kernel - I think it is better to build it from 2.6 because the target system will use a kernel 2.6 * Run make-fai-bootfloppy * Test it ;-) * Move /usr/lib/fai/nfsroot to /usr/lib/fai/nfsroot.sarge * Install ubuntus debootstrap * Set FAI_DEBOOTSTRAP="hoary http://$mirrorhost/ubuntu"; (or something) in make-fai-nfsroot * Set /etc/fai/source.list to ubuntu sources * Run /make-fai-nfsroot/. If it fails, execute cd /usr/lib/fai/nfsroot mount -t proc /proc proc chroot . * Try to install the missing packages from where ever. Leave the chroot with CTRL-D * Rerun make-fai-nfsroot -v -r * As long as you don't get a message /Building base.tgz/ repeat the chroot trick. * Once base.tgz is buildt, you are done. Move nfsroot to nfsroot.hoary * Move nfsroot.sarge back to nfsroot * Copy the content of /nfsroot.hoary/var/tmp/ to /nfsroot/var/tmp/ (base-pkgs.lis base.tgz packages.arch) * Set /nfsroot/etc/apt/source.list/ to ubunto sources * Its safe to restart the nfs-server * Change the kernel to /linux-image-686/ in DEFAULT * To build a desktop system add somewhere the package /ubuntu-desktop/ * Start the target system, get a bier and enjoy the unattended installation. After a reboot your desktop should come up with a configured xserver. martin tanzer, [EMAIL PROTECTED]