LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-07-2007, 09:32 AM   #1
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Diskless and per host configuration.


Hi there !

Here's the plan:
I want to have a PXE/NFS/DHCP... server and about ~15 diskless machines.
I need a different hostname per diskless, ie.: 01 02 03 04 etc...
That's easy with the DHCP server and MAC addresses.

Less easy is that i want a different .xinitrc and/or /etc/X11/xdg/xfce4/xinitrc for each station and maybe some other files (but i assume the work will be the same as xinitrc).
These xinitrc-per-host will be on the server.

So how can i do that ?
 
Old 05-08-2007, 10:51 AM   #2
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
The easiest thing probably would be to have seperate root directories for each workstation, and then mount common directories via nfs. For example, the etc/fstab entry might look something like:
Code:
server:/shares/roots/root13   /     defaults 0 0
server:/shares/common/home    /home defaults 0 0
server:/shares/common/usr     /usr  defaults 0 0
 
Old 05-08-2007, 03:23 PM   #3
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
But where is the per host config that i need ? The image uploaded via PXE will be the same. So i need something to distinguish station.
Something related to MAC adresses of course. I though of something dirty through the nfs exports file, specifiying different /home per IP. It will work but maybe there's something more clever.
Thanks anyway, IsaacKuo.
 
Old 05-08-2007, 03:34 PM   #4
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Oh, I thought you already knew how to configure that part (since you already know about configuring DHCP for the individual MAC addresses).

First off, here's a link to a how-to I put together for how I did things in Debian: http://wiki.linuxquestions.org/wiki/...ss_Workstation

I actually need to edit that entry, since I learned a lot of stuff about what happens when you need to mix and match different architectures, kernels, and initrd's. But my wiki account doesn't seem to be working. Oh well...

Anyway, the relevant thing is setting up the /tftpboot/pxelinux.cfg/01-aa-bb-cc-dd-ee-ff files. Basically, PXE bootup will look for file names based on the MAC address. Make sure to remember the preceding "01-" and that all letters should be lowercase.

The contents of the file will be something like this:
Code:
LABEL linux
KERNEL vmlinuz-2.6.15-1-486
APPEND root=/dev/nfs initrd=initrd.img.netboot nfsroot=192.168.1.4:/mnt/hda5/yuki ip=dhcp rw
The relevant thing you'll want to customize for each workstation is nfsroot. For example, for workstation 13 you might want something like nfsroot=192.168.1.4:/shares/roots/root13
 
Old 05-09-2007, 02:27 AM   #5
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Thank again !! But i already knew that ! The problem isn't doing the PXE and making the stuff work.
The problem is just making some files on diskless different on each machines without doing 15 nfsroots.

I had another idea with a rc.local line "grepping" the last part of local ip and doing modifications based on this.
 
  


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
client and host computer internet connection sharing configuration in redhat 9 raport Linux - General 1 12-20-2005 05:54 AM
Multiple-host wireless networking configuration with YaST-Suse using one card roaneb Linux - Wireless Networking 1 10-15-2004 08:09 PM
Sendmail and Host Configuration Chiabert Linux - Networking 2 10-15-2003 05:46 AM
Apache Virtual Host Configuration Crashed_Again Linux - Networking 1 12-18-2002 01:20 AM
/etc/host configuration problem Stephanie Linux - General 7 07-24-2002 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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