Re: fai-mirror for CentOS: WARNING: Unknow action yumgroup after PACKAGES

2013-01-23 Diskussionsfäden Thomas Lange
> On Sat, 19 Jan 2013 12:56:23 +0100, David Touzeau 
>  said:

> I'm trying to setup a CentOS client trough FAI 4.0.5
For 4.0.5 you do not need the fai4-config.tar.gz file. This FAI
version includes already the config space which works with CentOS.

-- 
regards Thomas


fai 4.0.5: dracut boot ends with kernel panic

2013-01-23 Diskussionsfäden Nicolas Courtel

Hello,

I'm trying to use dracut in FAI 4.0.5 on a wheezy 64bits server, and the 
initial boot on nfsroot quickly goes into kernel panic:


[   11.578824] dracut: Mounted root filesystem 
a.b.c.d:/srv/fai/wheezy/nfsroot-amd64
[   11.581213] aufs: module is from the staging directory, the quality 
is unknown, you have been warned

[   11.582117] aufs 3.2-20120827
warning: can't open /etc/fstab: No such file or directory
[   12.010629] aufs test_add:261:mount[366]: uid/gid/perm /live/image 
65534/65534/0755, 0/0/01777
[   12.015811] type=1702 audit(1358959337.356:2): op=follow_link 
action=denied pid=371 comm="ls" path="/sysroot/initrd.img" dev="aufs" 
ino=149
[   12.015995] type=1702 audit(1358959337.356:2): op=follow_link 
action=denied pid=371 comm="ls" path="/sysroot/vmlinuz" dev="aufs" ino=165
/init: 42://lib/dracut/hooks/pre-pivot/50mount-usr.sh: cannot open 
/sysroot/etc/fstab: No such file

[   12.260523] dracut: Switching root
 pcbind: rpcbind terminating on signal. Restart with "rpcbind -u"
switch_root: failed to execute /sbin/init: Not a directory
[   12.262090] Kernel panic - not syncing: attempting to kill init!


nfsroot has been successfully built using fai-chboot -SFv, and only 
contains an empty /etc/fstab, and no /sysroot directory or link.


I initially thought that the problem was caused by nfs4 use of 
nobody:nogroup to mount the nfsroot, but forcing the use of nfs3 is useless.


Could someone help me figure out what I am doing wrong?

Thanks,

--
Nicolas


Re: fai 4.0.5: dracut boot ends with kernel panic

2013-01-23 Diskussionsfäden Sven Schumacher
Hello Nicolas,

It looks very similar to my first steps using FAI:

So you tried already adding :vers=3 to your cmdline after the 
root=a.b.c.d:/srv/fai/nfsroot in your /srv/tftp/fai/pxelinux.cfg/HOSTNAME
which you created using fai-chboot ?

Is the nfs-server the same as the tftp?

Are you able to mount the nfsroot, when you booted via live-cd that particular 
client? so /etc/exports is set up correct on the nfs-server?

I hope, it helps tracking down the panic

Sven 


Am 23.01.2013 um 19:43 schrieb Nicolas Courtel :

> Hello,
> 
> I'm trying to use dracut in FAI 4.0.5 on a wheezy 64bits server, and the 
> initial boot on nfsroot quickly goes into kernel panic:
> 
> [   11.578824] dracut: Mounted root filesystem 
> a.b.c.d:/srv/fai/wheezy/nfsroot-amd64
> [   11.581213] aufs: module is from the staging directory, the quality is 
> unknown, you have been warned
> [   11.582117] aufs 3.2-20120827
> warning: can't open /etc/fstab: No such file or directory
> [   12.010629] aufs test_add:261:mount[366]: uid/gid/perm /live/image 
> 65534/65534/0755, 0/0/01777
> [   12.015811] type=1702 audit(1358959337.356:2): op=follow_link 
> action=denied pid=371 comm="ls" path="/sysroot/initrd.img" dev="aufs" ino=149
> [   12.015995] type=1702 audit(1358959337.356:2): op=follow_link 
> action=denied pid=371 comm="ls" path="/sysroot/vmlinuz" dev="aufs" ino=165
> /init: 42://lib/dracut/hooks/pre-pivot/50mount-usr.sh: cannot open 
> /sysroot/etc/fstab: No such file
> [   12.260523] dracut: Switching root
> pcbind: rpcbind terminating on signal. Restart with "rpcbind -u"
> switch_root: failed to execute /sbin/init: Not a directory
> [   12.262090] Kernel panic - not syncing: attempting to kill init!
> 
> 
> nfsroot has been successfully built using fai-chboot -SFv, and only contains 
> an empty /etc/fstab, and no /sysroot directory or link.
> 
> I initially thought that the problem was caused by nfs4 use of nobody:nogroup 
> to mount the nfsroot, but forcing the use of nfs3 is useless.
> 
> Could someone help me figure out what I am doing wrong?
> 
> Thanks,
> 
> -- 
> Nicolas