View Issue Details

IDProjectCategoryView StatusLast Update
0000241Kali LinuxKali Package Bugpublic2015-03-15 19:09
Reporterxunil Assigned Torhertzog  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
Platformx86, amd64OSKali LinuxOS Version1.0.2
Summary0000241: NFS kernel modules not in initrd.img
Description

When attempting to boot Kali over PXE using NFS it will attempt to mount the NFS share after when booting from the initrd.img system. However the nfs kernel modules are not installed in the initrd.img so it errors with a "Protocol not supported" and is unable to boot.

Steps To Reproduce

Setup a basic PXE boot server using tftp to host the live/initrd.img and live/vmlinuz files.

Use the following boot options: setting the correct paths for initrd and nfsroot
LABEL 1
MENU LABEL Kali 1.0.2 i386
LINUX Kali/1.0.2/i386/vmlinuz
APPEND noconfig=sudo username=root hostname=kali root=/dev/nfs boot=live netboot=nfs nfsroot=10.3.3.2:/PXE/Kali/1.0.2/i386 initrd=Kali/1.0.2/i386/initrd.img

Attempt to boot through PXE and it will fail after trying to mount the NFS drive. It will try to do this 60 times before erroring out (The 60 times comes from the /lib/live/boot/9990-mount-nfs.sh in the initrd.img).

Additional Information

To fix this problem, you simply need to add the following kernel modules into the initrd.img.

nfs, nfsv4, auth_rpcgss, lockd, sunrpc, dns_resolver, fscache

I have already done the packaging and uploaded it to

https://www.hashdump.org/files/initrd.img

We also have more docs on https://wiki.hashdump.org/index.php/PXE::Kali

Activities

rhertzog

rhertzog

2013-07-09 09:35

administrator   ~0000617

I'm wondering why are you trying to reuse the official images for this instead of trying to use live-build to build your own images for network boot.

live-build seems to have proper support for this:
http://live.debian.net/manual/stable/html/live-manual.en.html#235

Maybe you could contribute an HOWTO that explains this procedure that we could then integrate into docs.kali.org.

rhertzog

rhertzog

2014-12-04 15:48

administrator   ~0002857

Without any confirmation that using live-build's dedicated method to build netboot images does not work, there's no point to keep this bug open.

Issue History

Date Modified Username Field Change
2013-04-05 05:06 xunil New Issue
2013-04-05 20:08 rhertzog Assigned To => rhertzog
2013-04-05 20:08 rhertzog Status new => assigned
2013-04-05 20:22 rhertzog Additional Information Updated
2013-07-09 09:35 rhertzog Note Added: 0000617
2013-07-09 09:37 rhertzog Status assigned => feedback
2014-12-04 15:48 rhertzog Note Added: 0002857
2014-12-04 15:48 rhertzog Status feedback => closed
2014-12-04 15:48 rhertzog Resolution open => won't fix