LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-08-2012, 07:38 AM   #1
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Rep: Reputation: 68
Slackware diskless clients anyone?


I'm trying to setup Slackware as a server for diskless clients with NFS root. I'm aware of the LTSP and DRBL projects - but they seem to be quite distribution specific. I would like to turn Slackware into a server for diskless clients using rather more standard tools - so that I can apply the procedure to other distros - if necessary - but mainly so that I can use Slackware :-) for it.

I've followed the various online howtos and I've setup pxelinux, tftp, dhcp and nfs - and it all seems to work fine - sort of :-).

The stumbling block is the initrd - which in Slackware (and maybe elsewhere?) doesn't have support for dhcp - and it doesn't seem to be possible to create an initrd image using mkinitrd which includes dhcp support. Thus the client machine boots, loads the kernel, hands over to initrd, which loads the NIC driver and does whatever else it does - but when trying to mount the NFS share for the root partition - it fails as there is no network/IP setup.

Has anybody managed to set Slackware up as a server for diskless clients? Maybe by hacking the initrd image included with the Slackware CD-rom and making their own custom scripts for network support? Any other ideas?

From looking around on the Internet, I have to conclude that diskless clients are not exactly popular with Linux nowadays - outside of the LTSP and DRBL projects. Am I wrong?
 
Old 04-08-2012, 09:42 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
I have not tried this myself, but from /usr/lib/setup/SeTnet in the Slackware installer
Quote:
# This script will be called with the single argument of "boot" during the
# system startup, to allow for unattended network configuration.
# For this to work, all required information must be passed on the commandline.
# Two parameters, 'kbd=' and 'nic=' must be used to supply this information.
# kbd=<keyboard_layout>
# nic=<driver>:<interface>:<dhcp|static>[:ipaddr:netmask[:gateway]]
 
Old 04-08-2012, 11:07 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by allend View Post
I have not tried this myself, but from /usr/lib/setup/SeTnet in the Slackware installer
That's unreated to this question. The Slackware installer has network support of course. The OP's question was how to add network support to the initrd which you create after installation, using mkinitrd.

Eric
 
Old 04-08-2012, 01:51 PM   #4
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Original Poster
Rep: Reputation: 68
Yes - that's correct - I was trying to use the standard mkinitrd to get nfs root working in Slackware. I think I would also need udev support in initrd - as I tried hacking the init script and it couldn't find the network device to use it for dhcp (although the kernel module was loaded) - probably because udev didn't create the device under /proc/net/dev (there is nothing there). I've tried using the udev option in /etc/mkinitrd.conf - but still didn't make a difference.

I didn't realise that nfs root booting, and diskless setups in general are such a non-standard affair. Although there seem to be a myriad of ways and tools to do it - aside from LTSP and DRBL - there is little in the way of minimally modifying a standard distro to make it work in a diskless setup.
 
  


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
Limit on number of diskless clients? (slackware 12.2, kernel 2.6.27.7-smp) Sam_Enkidu Linux - Server 2 09-05-2009 08:09 AM
Diskless clients veeruk101 Linux - Networking 1 07-18-2007 04:52 PM
Booting diskless clients veeruk101 Red Hat 0 11-21-2006 08:53 PM
diskless clients restart problems ph0enix Linux - Software 1 07-15-2003 08:28 AM
Application Server for Diskless Clients. messer Linux - General 2 09-13-2001 05:17 AM

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

All times are GMT -5. The time now is 11:54 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