Fai installation failing on permissions
Leen Smit
Leen at service2media.com
Wed Jan 7 23:26:08 CET 2009
Dear All,
At work we have a debianetch FAI enviroment to deploy debian etch. I never worked with fai before, and all of a sudden I had to dive in at the deep end.
Now, I @work im fine, since all I have to do is to create classes for new machines, which in itself isn't all that hard I found.
But, since we use it alot, I decided to setup my own FAI server @home, in order to get to know FAI better..
This, it turned out, is quite a quest. I cannot get seem to get this up and running on my ubuntu machine.
I've spent the last several weeks reading several guides and messages from this mailing list (and rebooting my client alot), all to no avail.
What I did:
installed the following packages with apt:
ii fai-client 3.2.4+svn4837-0ubuntu2
ii fai-doc 3.2.4+svn4837-0ubuntu2
ii fai-quickstart 3.2.4+svn4837-0ubuntu2
ii fai-server 3.2.4+svn4837-0ubuntu2
- edited make-nfs-root, ran fai-setup without any errors.
- created a tftp root, based on what we use @work (I already had a pxe server)
- touched a .THIS_IS_THE_FAI_NFSROOT file
- didnt change any of the default /srv/fai/config files, apart from disklayout
At this point I can:
- boot over pxe, get a selection menu and load the kernel
- chroot to the nfsdir and create files as I please
- mount the nfs share from other location and get rw access
My problem: NFS keeps complaining that it cant mount
nfsacl: not responding, timed out.
after that i get a mount i/o error.
Whats weird : if I move /srv/fai/nfsroot/live/filesystem.dir/* to /srv/fai/nfsroot/
- I dont get mount errors, but I do end up with permission errors.
- It finishes the /scripts/init-bottom , but just when it enters init, I get all kind of permission errors on chown/chgrp/mkdir on /tmp and /var.
- Most notably I get an error in red "/usrlib/fai/prcopyleft: line 16: cannot create file). I end up with more and more errors since things dont exist, a shell and thats it.
Further more, I cant seem to remote monitor the proccess with fai-mond. When I lauch it, it just sits there. At what point of the FAI should I get output here?
Im getting quite frustrated with it all, especially since I'm quite comfortable by now with the whole /config/ structure and creating hosts as I want them, but I simply dont seem capable or setting this up from scratch. Any help with this would be greatly appreciated.
Leen
OS: Ubuntu 8.10 Intrepid
Kernel: 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux
tftp boot parms:
MENU LABEL FAI Ubuntu
KERNEL vmlinuz-2.6.24-22-generic
APPEND initrd=initrd.img-2.6.24-22-generic ip=dhcp FAI_CONFIG_SRC=nfs://192.168.1.34/srv/fai/config FAI_ACTION=install root=/dev/nfs nfsroot=192.168.1.34:/srv/fai/nfsroot FAI_FLAGS=verbose,sshd
/etc/exports (made these RW in the hope of solving the issue):
/srv/fai/config *(async,rw,no_subtree_check)
/srv/fai/nfsroot *(async,rw,no_subtree_check,no_root_squash)
tfpt started with:
/usr/sbin/in.tftpd -s /srv/tftp/fai/
More information about the linux-fai
mailing list