demohost install (task_chboot)

Jan Blasche ja.bla at web.de
Tue May 13 23:52:16 CEST 2008


Hi,

i have a problem with the demohost install. The demohost boot over PXE, 
then run the install (without errors), the demohost reboot and install 
again and install again...
How can i define the task_chboot or how can i fix this?



My fai version is: FAI 3.2.5
And here is my faiserver setup on debian blank image:


    # edit apt
    echo "" >> /etc/apt/sources.list
    echo "# FAI" >> /etc/apt/sources.list
    echo "deb http://www.informatik.uni-koeln.de/fai/download etch
    koeln" >> /etc/apt/sources.list
    aptitude update
    aptitude -y install debian-keyring
    gpg --keyserver wwwkeys.eu.pgp.net --recv-keys AB9B66FD
    gpg --export AB9B66FD | apt-key add -
    aptitude update && aptitude upgrade
    aptitude -y install fai-quickstart live-initramfs

    sed
    's#http://ftp.debian.org/debian#http://ftp.de.debian.org/debian#' -i
    /etc/fai/apt/sources.list
    hostname
    sed 's#^.*NFSROOT_ETC_HOSTS.*$#NFSROOT_ETC_HOSTS="192.168.0.31
    bootsrv02"#' -i /etc/fai/make-fai-nfsroot.conf
    sed
    's#http://ftp.debian.org/debian#http://ftp.de.debian.org/debian#' -i
    /etc/fai/make-fai-nfsroot.conf

    fai-setup
    /etc/init.d/nfs-kernel-server reload

    # edit dhcpd
    cp /usr/share/doc/fai-doc/examples/etc/dhcpd.conf /etc/dhcp3/dhcpd.conf
    sed 's#subnet 192.168.1.0#subnet 192.168.0.0#' -i /etc/dhcp3/dhcpd.conf
    sed 's#192.168.1.250#192.168.0.31#' -i /etc/dhcp3/dhcpd.conf
    route | grep default | awk '{print $2}'
    sed 's#option routers .*$#option routers 192.168.0.10;#' -i
    /etc/dhcp3/dhcpd.conf
    sed 's#domain-name "beowulf"#domain-name "local"#' -i
    /etc/dhcp3/dhcpd.conf
    sed 's#domain-name-servers .*$#domain-name-servers 
    217.115.138.24;#' -i /etc/dhcp3/dhcpd.conf
    sed 's#faiserver#bootsrv02#g' -i /etc/dhcp3/dhcpd.conf
    sed 's#0:2:a3:b5:c5:41#00:0c:29:48:5b:30#' -i /etc/dhcp3/dhcpd.conf
    /etc/init.d/dhcp3-server restart

    # edit hosts
    echo "" >> /etc/hosts
    echo "192.168.0.101   demohost.local demohost" >> /etc/hosts

    # edit tftp
    sed 's#/var/lib/tftpboot#/srv/tftp/fai#' -i /etc/inetd.conf
    /etc/init.d/openbsd-inetd restart


    fai-chboot -IBv demohost



More information about the linux-fai mailing list