LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-21-2014, 12:10 PM   #1
xbrasilx
LQ Newbie
 
Registered: Nov 2013
Posts: 8

Rep: Reputation: Disabled
Slackware 14.1 (Kernel panic) PXE + DHCP + NFS


Hi guys,
i am a brazilian user of slackware since longe time ago.
This days i try to figure out a way to start a diskless Slackware 14.1 client from a PXE + DHCP + NFS, without success. I can do this using a specific old 2.6 kernel, but in Slackware 14.1, i can’t figure out a way.

My PXE config sounds like:
DEFAULT pxelinux.cfg/vmlinuz-2.6 ip=dhcp root=/dev/nfs nfsroot=192.168.0.80:/tftpboot/specific-distro vga=791 init=/etc/rc.d/rc.S quiet rw

So if i change the old specific kernel (vmlinuz-2.6) to the new one Slackware 14.1 kernel (vmlinuz-huge-3.10.17) on PXE server, clients cant start due to a kernel panic error.

In Slackware 14.1 i will need a initrd/ramdisk?

Using the old “vmlinuz-2.6″ i dont need any extra initrd/ramdisk, just the kernel.

Any possible solutions to this?

Thanks to you attention and sorry to my bad english.
 
Old 03-21-2014, 09:28 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Hard for me to help without more information about the kernel panic. The one time that I had set this up was to do the install over the network to a machine that didn't have a working CD-ROM drive.
 
Old 03-22-2014, 01:45 AM   #3
xbrasilx
LQ Newbie
 
Registered: Nov 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Richard Cranium View Post
Hard for me to help without more information about the kernel panic. The one time that I had set this up was to do the install over the network to a machine that didn't have a working CD-ROM drive.
If you need more details i can provide them to you. Just talk me what you need and i will do. Need to solve this, i am trying since 4 days ago.

Please help me with this.
 
Old 03-22-2014, 10:06 AM   #4
Nh3xus
Member
 
Registered: Jan 2013
Location: France
Distribution: Slackware 14.1 32 bits
Posts: 211

Rep: Reputation: 57
Hi,

You might need both NFS and TFTP services enabled and configured in order to achieve this project.

The last time that I tried booting a LiveCD over the network, I forgot the NFS part for example.
 
Old 03-22-2014, 04:07 PM   #5
xbrasilx
LQ Newbie
 
Registered: Nov 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Nh3xus View Post
Hi,

You might need both NFS and TFTP services enabled and configured in order to achieve this project.

The last time that I tried booting a LiveCD over the network, I forgot the NFS part for example.
All configuration part are correct. PXE, DHCP and NFS are correct. If i use the old kernel (like i said before), clients can boot normal from network. When i try to the new one Slackware 14.1 kernel (3.10.17), clients have a error.

So, if i use "vmlinuz-2.6" all is ok, if i change to the "bzImage-3.10-17", have a error. And yes, i put the correct name in the config file.

Someone can help me with this?
 
Old 03-22-2014, 06:45 PM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Please provide the error that you see.
 
Old 03-22-2014, 07:57 PM   #7
xbrasilx
LQ Newbie
 
Registered: Nov 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Richard Cranium View Post
Please provide the error that you see.
1) - Using PXE config (default) with the "vmlinuz-2.6" kernel, the client can successful boot from network (image1.png)

/tftpboot/pxelinux.cfg# ls -la
total 12276
drwxrwxrwx 2 1000 users 4096 Mar 22 21:36 ./
drwxrwxrwx 11 root root 4096 Apr 21 2010 ../
-rwxrwxrwx 1 root root 135 Sep 3 2008 default*
-rwxrwxrwx 1 root root 3278832 Jan 3 2008 vmlinuz-2.6*
-rwxrwxrwx 1 root root 3278832 Oct 12 2007 vmlinuz-2.6.21*
-rwxrwxrwx 1 root root 5995104 Oct 23 20:47 vmlinuz-huge-3.10.17*

/tftpboot/pxelinux.cfg# cat default
DEFAULT pxelinux.cfg/vmlinuz-2.6 ip=dhcp root=/dev/nfs nfsroot=192.168.0.80:/tftpboot/linux-distro vga=791 init=/etc/rc.d/rc.S quiet rw

---

2) - Using PXE config (default) with the "vmlinuz-huge-3.10.17" kernel, the client can't successful boot from network (image2.png)
/tftpboot/pxelinux.cfg# ls -la
total 12276
drwxrwxrwx 2 1000 users 4096 Mar 22 21:36 ./
drwxrwxrwx 11 root root 4096 Apr 21 2010 ../
-rwxrwxrwx 1 root root 135 Sep 3 2008 default*
-rwxrwxrwx 1 root root 3278832 Jan 3 2008 vmlinuz-2.6*
-rwxrwxrwx 1 root root 3278832 Oct 12 2007 vmlinuz-2.6.21*
-rwxrwxrwx 1 root root 5995104 Oct 23 20:47 vmlinuz-huge-3.10.17*

/tftpboot/pxelinux.cfg# cat default
DEFAULT pxelinux.cfg/vmlinuz-huge-3.10.17 ip=dhcp root=/dev/nfs nfsroot=192.168.0.80:/tftpboot/linux-distro vga=791 init=/etc/rc.d/rc.S quiet rw

---

I read some documents and some of this make reference to a special initrd when using new kernels. This is true?
Why i can boot without any initrd using the old "vmlinuz-2.6"?
How can i use the new one kernel "vmlinuz-huge-3.10.17" in this PXE setup without erros?
Attached Thumbnails
Click image for larger version

Name:	image1.png
Views:	60
Size:	108.2 KB
ID:	15034   Click image for larger version

Name:	image2.png
Views:	67
Size:	92.9 KB
ID:	15035  
 
Old 03-23-2014, 08:04 AM   #8
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
CONFIG_NFS_ROOT does not appear to be compiled into the Slackware64 14.1 huge kernels. (It wasn't built into the 13.37's huge-2.6.37.6 kernel, either.)

You'll have to compile your own or create an initrd that does the NFS mount for you.
 
1 members found this post helpful.
Old 03-23-2014, 11:32 AM   #9
xbrasilx
LQ Newbie
 
Registered: Nov 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Richard Cranium View Post
CONFIG_NFS_ROOT does not appear to be compiled into the Slackware64 14.1 huge kernels. (It wasn't built into the 13.37's huge-2.6.37.6 kernel, either.)

You'll have to compile your own or create an initrd that does the NFS mount for you.
Richard, i think this is not a x64 version of kernel, this is a x32 version. But anyway, this was the best information so far. I will try to compile the vmlinuz-huge-3.10.17 with CONFIG_NFS_ROOT enabled and configured. I will do this now!
I'll be back shortly with news.
 
Old 03-23-2014, 05:43 PM   #10
xbrasilx
LQ Newbie
 
Registered: Nov 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by xbrasilx View Post
Richard, i think this is not a x64 version of kernel, this is a x32 version. But anyway, this was the best information so far. I will try to compile the vmlinuz-huge-3.10.17 with CONFIG_NFS_ROOT enabled and configured. I will do this now!
I'll be back shortly with news.
Richard, after long time compiling the vmlinuz-huge-3.10.17, with CONFIG_NFS_ROOT=y actived, i have same error. See the image (image003.png).

below is the part of .config file used to compile the vmlinuz-huge-3.10.17 kernel:
---
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=y
CONFIG_NFS_V2=y
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
CONFIG_NFS_V4=y
CONFIG_NFS_ROOT=y
CONFIG_NFS_SWAP=y
# CONFIG_NFS_V4_1 is not set
# CONFIG_NFS_USE_LEGACY_DNS is not set
CONFIG_NFS_USE_KERNEL_DNS=y
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
CONFIG_NFSD_V4=y
# CONFIG_NFSD_FAULT_INJECTION is not set
---

Any trick to solve the problem?
Attached Thumbnails
Click image for larger version

Name:	image003.png
Views:	37
Size:	24.8 KB
ID:	15045  
 
Old 03-23-2014, 06:35 PM   #11
xbrasilx
LQ Newbie
 
Registered: Nov 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Reading some texts i discover that in the new kernels, the "CONFIG_NFS_ROOT" has changed to "CONFIG_ROOT_NFS". I will try it now.
 
Old 03-23-2014, 10:02 PM   #12
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Oops. My bad.

Sorry about that.
 
Old 03-24-2014, 01:22 AM   #13
xbrasilx
LQ Newbie
 
Registered: Nov 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Richard Cranium View Post
Oops. My bad.

Sorry about that.
The problem was SOLVED, need to recompile the kernel with things like:

CONFIG_BLK_DEV_LOOP
Build in support for the cient 's network card (Network device support ---> Select your card driver).
Build in support for the BOOTP protocol (Networking options ---> IP: kernel level autoconfiguration ---> IP: BOOTP support).
Build in support for NFS and root over NFS (File systems ---> Network File Systems ---> NFS file system support and File systems ---> Network File Systems ---> NFS file system support ---> Root over NFS).
Build in support for loopback devices (Block devices ---> Loopback device support).
IP Kernel level Autoconfiguration

Thanks to all replys, i hope this can help other peoples with same problem.
 
Old 05-19-2014, 07:37 AM   #14
linq
Member
 
Registered: May 2010
Location: Russia
Distribution: Slackware 1.0,...64-14.2..
Posts: 48

Rep: Reputation: 4
Exactly the same problem, but CONFIG_BLK_DEV_LOOP=y didn't help me. Here is the portion of my config:

CONFIG_BLK_DEV_LOOP=y
CONFIG_VIA_RHINE=y
CONFIG_IP_PNP_DHCP=y
CONFIG_NFS_FS=y
CONFIG_NFS_V2=y
CONFIG_NFS_V3=y
CONFIG_NFS_V4=y
# CONFIG_NFS_V4_1 is not set
CONFIG_ROOT_NFS=y

Could you post the complete config ?
 
Old 05-19-2014, 10:47 AM   #15
linq
Member
 
Registered: May 2010
Location: Russia
Distribution: Slackware 1.0,...64-14.2..
Posts: 48

Rep: Reputation: 4
Wow ! It should be "root=/dev/nfs", not "root=/dev/nfsd" in kernel boot options (PXE). But it worked before !?
Anyway, no CONFIG_BLK_DEV_LOOP=y is required. The only 5 changes to config-huge-3.10.17 are:

Network Support - Network Options (* IP: kernel level autoconfiguration ; * IP: DHCP support)
Device Drivers - Network Device Support - Ethernet Driver support (* Via Rhine support) - my Ethernet adapter
File Systems - Network File Systems (* Root file system on NFS)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware PXE - cannot ping the dhcp server. Lockywolf Linux - Networking 3 08-16-2011 09:37 PM
Kernel panic when using NFS! cs-e9302_user Linux - Embedded & Single-board computer 2 06-23-2009 03:15 PM
NFS/PXE Boot on Linux Kernel kushalkoolwal Linux - Kernel 3 02-05-2008 05:46 PM
Kernel panic while PXE booting RH MarkGaleck Red Hat 0 05-09-2007 03:07 PM
pxe nfs boot, kernel panic - portmap error davidcollins001 Linux - Networking 0 04-29-2007 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration