make boot cdrom pb:

Jean-Paul BALOCHE jpbaloche at alcidian.net
Fri Nov 9 16:24:32 CET 2007


Hi,

I contact the mailling list because I'm steel unable to boot on nfsroot
with a cdrom.
Here is the error message when I'm booting from cdrom with dhcp,nfs choice :
Begin: Mounting root file system
/init: .:150: Can't open file system... ...
kernel panic - not syncing: Attempetd to kill init!
I've got the same error message when I'm choosing demohost installation
from the cdrom.

Here is my configuration :
*** /etc/exports :
/srv/fai/config 192.168.1.0/24(async,ro,no_subtree_check)
/srv/fai/nfsroot 192.168.1.0/24(async,ro,no_subtree_check,no_root_squash)

*** /etc/dhcp3/dhcpd.conf :
#deny unknown-clients;
option dhcp-max-message-size 2048;
use-host-decl-names on;
subnet 192.168.1.0 netmask 255.255.255.0 {
   range 192.168.1.234 192.168.1.240;
   option routers 192.168.1.2;
   option domain-name-servers 192.168.1.2;
   option time-servers 192.168.1.2;
   option ntp-servers 192.168.1.2;
   server-name faiv4;
   filename "pxelinux.0";
}

*** /etc/fai/menu.lst :
title boot from local disk
rootnoverify (hd0)
chainloader +1
title Fully Automatic Installation - dhcp, nfsroot
kernel /boot/vmlinuz ip=dhcp root=/dev/nfs
nfsroot=192.168.1.204:/srv/fai/nfsroot boot=live
FAI_FLAGS="verbose,sshd,createvt" FAI_ACTION=install
initrd /boot/initrd.img

title Fully Automatic Installation - static, nfsroot
kernel /boot/vmlinuz ip=192.168.1.251::192.168.1.2:255.255.255.0::eth0:on
root=/dev/nfs nfsroot=192.168.1.204:/srv/fai/nfsroot boot=live
FAI_FLAGS="verbose,sshd,createvt" FAI_ACTION=install
initrd /boot/initrd.img

title Fully Automatic Installation - demohost (pw: installme)
password installme
kernel /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt"
FAI_ACTION=install ip=192.168.1.1:::::eth0:off hostname=demohost
initrd /boot/initrd.img

*** here is the command I use to create the cdrom :
fai-cd -f -m /srv/fai/debmirror/ cd_boot_4.1.6.iso

*** When I look into the faiserver logs, I have nothing in syslog
regarding dhcp or nfs mount whereas I know they works because I'm able to
have a dhcp lease with another computer and I can mount nfs directory with
mount -t nfs 192.168.1.204:/srv/fai/nfsroot /tmp/temp

So, I don't understand what's going on. Have you got an idea ?

thanks for your help.

JPB



>> >
>> >
>> >
>> Hi,
>>
>> I have tried this method but it doesn't work. Maybe I'm doing something
>> wrong ?
>> Here is what I did :
>> My fai server is : 192.168.1.204
>> I Add in the /etc/fai/menu.lst those lines :
>>
>> title Fully Automatic Installation - dhcp, nfsroot
>> kernel /boot/vmlinuz ip=dhcp root=/dev/nfs
>> nfsroot=192.168.1.204:/srv/fai/nfsroot boot=live
>> FAI_FLAGS="verbose,sshd,createvt" FAI_ACTION=install
>> initrd /boot/initrd.img
>>
>> title Fully Automatic Installation - static, nfsroot
>> kernel /boot/vmlinuz ip=192.168.1.251:::::
>> root=/dev/nfs nfsroot=192.168.1.204:/srv/fai/nfsroot boot=live
>> FAI_FLAGS="verbose,sshd,createvt" FAI_ACTION=install
>> initrd /boot/initrd.img
>>
>> I don't use for the moment a local debian mirror, so I create an empty
>> directory :
>> /srv/fai/debmirror/
>>
>> Then I ran this command :
>> fai-cd -f -m /srv/fai/debmirror/ cd_boot_fai.iso
>>
>> I burned the iso image on a cdrom and then boot with this cd-rom on the
>> client machine.
>>
>>
>> When I boot with this cd-rom on the client computer,  I have this
>> message :
>> IP-Config: eth0 Complete (from 192.168.1.204)
>> address : 192.168.1.240   broadcast: 192.168.1.255   netmask
>> 255.255.255.0
>> gateway : 192.168.1.2   dns0: 192.168.1.2    dns1:0.0.0.0
>> rootserver : 192.168.1.204   rootpath:
>> filename :
>> Begin : Running  /scripts/nfs-premount ...
>> Done.
>> nfsmount : need a path
>> Done.
>> Begin: Retrying nfs mount ...
>>
>> And it restart searching for an ip address and trying to mount nfs root.
>>
>> When I mount nfs root from my own computer it's ok : mount -t nfs
>> 192.168.1.204:/srv/fai/nfsroot /tmp/toto
>> ls /tmp/toto :
>> live
>>
>>
>> I don't understand what's going on, I also don't understand why there is
>> nothing after "rootpath" and "filename" ?
>>
>> Have you got an idea  ?
>>
>> thanks for your help,
>> Jean-Paul
>>
>
> Hi,
> please check you menu.lst file.
>
> title Fully Automatic Installation - dhcp, nfsroot
> kernel /boot/vmlinuz ip=dhcp root=/dev/nfs
> nfsroot=192.168.1.204:/srv/fai/nfsroot boot=live
> FAI_FLAGS="verbose,sshd,createvt" FAI_ACTION=install
> initrd /boot/initrd.img
>
>
>
> "title" is the first entry, "kernel" the second,  and "inird" the
> third. Every entry must be on separate line.
>
>
>
> regards
> Jan-Eric
>
>



More information about the linux-fai mailing list