fai-setup always problem

mamadou diop diopmodou8 at gmail.com
Sun Aug 29 22:17:48 CEST 2010


Hello. I recome after trying solutions. I have changed my Ubuntu release.
Now I have no more 9.04 but 8.04 because I believed
that the wrong of fai-setup was due to the Ubuntu jaunty which is unstable.
The script I am using to create my mirror is fai-mirror.
I remember that i am a student and my memory subject is remote deployment of
systems. I have successfully deployed Windows XP and there are
the systems Ubuntu left.
The end of my fai-mirror processus is:

install_packages: executing  true
install_packages: executing  true
install_packages: executing  true
Adding packages of /etc/fai/NFSROOT.
WARNING: /srv/fai/nfsroot/live/filesystem.dir/var/tmp/packages.nfsroot does
not exists.
Can't add those packages. Maybe the nfsroot is not yet created.
Adding packages from base.tgz.
WARNING: /srv/fai/nfsroot/live/filesystem.dir/var/tmp/base-pkgs.lis does not
exists.
Can't add those packages. Maybe the nfsroot is not yet created.
Calling apt-move
/usr/bin/fai-mirror finished.
Mirror size and location: 389M /files/scratch/debmirror/

My fai-setup is:


root at faiserver:~# fai-setup

Creating FAI nfsroot in /srv/fai/nfsroot/live/filesystem.dir.

By default it needs more than 330 MBytes disk space.

This may take a long time.

/srv/fai/nfsroot/live/filesystem.dir already exists. Removing
/srv/fai/nfsroot/live/filesystem.dir

Creating base system using debootstrap version

Calling debootstrap hardy /srv/fai/nfsroot/live/filesystem.dir
http://10.10.1.200/debmirror

chroot: cannot run command `apt-get': No such file or directory

Creating base.tgz

Upgrading /srv/fai/nfsroot/live/filesystem.dir

mount: mount point /srv/fai/nfsroot/live/filesystem.dir/dev/pts does not
exist

chroot: cannot run command `apt-get': No such file or directory

chroot: cannot run command `aptitude': No such file or directory

chroot: cannot run command `apt-get': No such file or directory

dpkg-divert: cannot open diversions: No such file or directory

dpkg-divert: cannot open diversions: No such file or directory

chroot: cannot run command `apt-get': No such file or directory

install_packages: reading config files from directory /etc/fai

Adding additional packages to /srv/fai/nfsroot/live/filesystem.dir:

nfs-common fai-nfsroot module-init-tools dhcp3-client ssh rdate lshw portmap
bootpc rsync lftp less dump reiserfsprogs ext2resize usbutils hwinfo psmisc
pciutils hdparm smartmontools parted mdadm lvm2 dnsutils ntpdate dosfstools
cvs jove xfsprogs xfsdump sysutils dialog discover mdetect console-tools
console-common expect iproute udev subversion sysvinit upstart-
live-initramfs linux-image-generic cfengine2 libapt-pkg-perl grub lilo
read-edid

install_packages: reading config files from directory /etc/fai

chroot: cannot run command `apt-get': No such file or directory

ERROR: 32512 32512

ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir apt-get clean return code
127

chroot: cannot run command `aptitude': No such file or directory

ERROR: 32512 32512

ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir aptitude -R -y -o
Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"
install nfs-common fai-nfsroot module-init-tools dhcp3-client ssh rdate lshw
portmap bootpc rsync lftp less dump reiserfsprogs ext2resize usbutils hwinfo
psmisc pciutils hdparm smartmontools parted mdadm lvm2 dnsutils ntpdate
dosfstools cvs jove xfsprogs xfsdump sysutils dialog discover mdetect
console-tools console-common expect iproute udev subversion sysvinit
upstart- live-initramfs linux-image-generic cfengine2 libapt-pkg-perl grub
lilo read-edid return code 127

chroot: cannot run command `apt-get': No such file or directory

ERROR: 32512 32512

ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir apt-get clean return code
127

chroot: cannot run command `apt-get': No such file or directory

ERROR: 32512 32512

ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir apt-get clean return code
127

4 errors during executing of commands

install_packages exit code: 3

chpasswd: can't open password file

cp: la cible `/srv/fai/nfsroot/live/filesystem.dir/etc/fai' n'est pas un
répertoire

/usr/sbin/make-fai-nfsroot: line 232:
/srv/fai/nfsroot/live/filesystem.dir/etc/fai/fai.conf: Aucun fichier ou
dossier de ce type

chroot: cannot run command `shadowconfig': No such file or directory

ln: création d'un lien symbolique `etc/init.d/rcS': Le fichier existe

cp: ne peut évaluer `/srv/fai/nfsroot/live/filesystem.dir/boot/vmlinuz-*':
Aucun fichier ou dossier de ce type

cp: ne peut évaluer
`/srv/fai/nfsroot/live/filesystem.dir/boot/initrd.img-*': Aucun fichier ou
dossier de ce type

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

ERROR: live-initramfs was not installed inside the nfsroot.

Log file written to /var/log/fai/make-fai-nfsroot.log

Aborting

dpkg-divert: cannot open diversions: No such file or directory

umount: /srv/fai/nfsroot/live/filesystem.dir/dev/pts: n'a pas été trouvé

Log file written to /var/log/fai/make-fai-nfsroot.log

 * Re-exporting directories for NFS kernel daemon...                     [
OK ]

FAI setup finished.

Log file written to /var/log/fai/fai-setup.log

root at faiserver:~#

I ask if you have successfully installed Ubuntu with fai, what script have
you used to create your local debian mirror?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20100829/d6160f4b/attachment.htm 


More information about the linux-fai mailing list