Setup FAI to other distribution

Riza Nuari richie133 at gmail.com
Fri Jul 10 08:21:01 CEST 2009


I have server with ubuntu 8.04 LTS and i want to install ubuntu 9.04 and 
centos 5.3 to the client computer.
with guide on 
_http://faiwiki.informatik.uni-koeln.de/index.php/UbuntuJauntyInstallationHowTo_ 
i setup my fai server (on ubuntu 8.04).
In /etc/make-fai-nfsroot.conf , i find this line :
FAI_DEBOOTSTRAP="hardy http://archive.ubuntu.com/ubuntu"

and when i run fai-setup, the setup was successful. but when and i tried 
to change hardy to jaunty like this :

FAI_DEBOOTSTRAP="jaunty http://archive.ubuntu.com/ubuntu"

I have error message when i run fai-setup :

------------------------------------------------------------------------
Account $LOGUSER=fai already exists.
Make sure that all install clients can
log into this account without a password.
/var/log/fai/.ssh/known_hosts remained unchanged.
/var/log/fai/.ssh/authorized_keys created.
User account fai set up.
Using configuration files from /etc/fai
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 jaunty /srv/fai/nfsroot/live/filesystem.dir 
ftp://oss.tf.itb.ac.id/repository/ubuntu
E: No such script: /usr/share/debootstrap/scripts/jaunty
chroot: cannot run command `apt-get': No such file or directory
Creating base.tgz
/usr/sbin/make-fai-nfsroot: line 263: 
/srv/fai/nfsroot/live/filesystem.dir/var/tmp/base.tgz: No such file or 
directory
chroot: cannot run command `dpkg': No such file or directory
/usr/sbin/make-fai-nfsroot: line 277: var/tmp/base-pkgs.lis: No such 
file or directory
/usr/sbin/make-fai-nfsroot: line 288: etc/fstab: No such file or directory
/usr/sbin/make-fai-nfsroot: line 289: etc/raidtab: No such file or directory
/usr/sbin/make-fai-nfsroot: line 290: etc/default/ntp-servers: No such 
file or directory
/usr/sbin/make-fai-nfsroot: line 300: 
/srv/fai/nfsroot/live/filesystem.dir/etc/apt/apt.conf.d/10fai: No such 
file or directory
Upgrading /srv/fai/nfsroot/live/filesystem.dir
`/etc/resolv.conf' -> 
`/srv/fai/nfsroot/live/filesystem.dir/etc/resolv.conf-installserver'
`/etc/resolv.conf' -> `/srv/fai/nfsroot/live/filesystem.dir/etc/resolv.conf'
mount: mount point /srv/fai/nfsroot/live/filesystem.dir/proc does not exist
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
chroot: cannot run command `dpkg-divert': No such file or directory
chroot: cannot run command `dpkg-divert': No such file or directory
cp: accessing 
`/srv/fai/nfsroot/live/filesystem.dir/sbin/start-stop-daemon': Not a 
directory
chroot: cannot run command `apt-get': No such file or directory
chroot: cannot run command `dpkg': No such file or directory
/usr/sbin/make-fai-nfsroot: line 379: 
/srv/fai/nfsroot/live/filesystem.dir/var/tmp/packages.nfsroot: No such 
file or directory
Adding additional packages to /srv/fai/nfsroot/live/filesystem.dir:
cat: /srv/fai/nfsroot/live/filesystem.dir/var/tmp/packages.nfsroot: No 
such file or directory
install_packages: reading config files from directory /etc/fai
install_packages: read config file NFSROOT
install_packages: executing chroot /srv/fai/nfsroot/live/filesystem.dir 
apt-get clean
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
install_packages: executing 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
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 return code 127
install_packages: executing chroot /srv/fai/nfsroot/live/filesystem.dir 
apt-get clean
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
install_packages: executing chroot /srv/fai/nfsroot/live/filesystem.dir 
dpkg --configure --pending
chroot: cannot run command `dpkg': No such file or directory
ERROR: 32512 32512
ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir dpkg --configure 
--pending return code 127
install_packages: executing chroot /srv/fai/nfsroot/live/filesystem.dir 
dpkg -C
chroot: cannot run command `dpkg': No such file or directory
ERROR: 32512 32512
ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir dpkg -C return code 127
install_packages: executing chroot /srv/fai/nfsroot/live/filesystem.dir 
apt-get clean
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
6 errors during executing of commands
install_packages exit code: 3
chroot: cannot run command `chpasswd': No such file or directory
cp: target `/srv/fai/nfsroot/live/filesystem.dir/etc/fai' is not a directory
chroot: cannot run command `shadowconfig': No such file or directory
rm: cannot remove `etc/mtab': No such file or directory
ln: creating symbolic link `etc/init.d/rcS': No such file or directory
/usr/sbin/make-fai-nfsroot: line 331: etc/network/interfaces: No such 
file or directory
/usr/sbin/make-fai-nfsroot: line 333: root/.profile: No such file or 
directory
cp: cannot stat `/srv/fai/nfsroot/live/filesystem.dir/boot/vmlinuz-*': 
No such file or directory
cp: cannot stat 
`/srv/fai/nfsroot/live/filesystem.dir/boot/initrd.img-*': No such file 
or directory
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
Log file written to /var/log/fai/make-fai-nfsroot.log
chown: cannot access `.rhosts': No such file or directory
 * Re-exporting directories for NFS kernel daemon...       
[ OK ]
FAI setup finished.
------------------------------------------------------------------------


Is there are solution with my problem?
--------------------------------------------------------------------------------------------
And my other question.

Can i setup fai server to install centos on the client. Because i want 
my server (ubuntu 8.04) will be the installation server to install 
ubuntu 9.04 and centos 5.3

The simple output that i want is : When i turn on my client computer, it 
will be menu to choose what i want to install. And fai-server will 
perform installation with the distribution that i choice

Is that possible to install on client computer like that?

========
best regard
========


More information about the linux-fai mailing list