Networking Forums

Networking Forums > Computer Networking > Linux Networking > Diskless: Howto create a root-disk image

Reply
Thread Tools Display Modes

Diskless: Howto create a root-disk image

 
 
Andy
Guest
Posts: n/a

 
      09-25-2006, 01:06 PM
I have a simple 2-PC LAN at home. I want to make one of them boot from
the other over the network. I am trying this out because I plan to
write some basic provisioning and maintenance routines for hardware
which can be run on individual server over the network without booting
them with their Disk OS.

I have come across enough HOWTOs over the internet describing how to
setup DHCP on the boot server or how to configure NFS share to share
the root-disk image. What I cannot make out however is how to create a
root disk image which can be used by the diskless PC as a read-only
disk source of OS files and utilities.

I tried installing RedHat Enterprise Linux 4.3 for this purpose using
"--root <netboot_root>" switch on rpm. But it did not work out. There
seemed to be too many cyclic dependencies between packages and even
when the packages did get installed, they threw %post(...) errors, and
sometimes failed with %pre errors. Not sure where I am going wrong. I
am really looking for a standard HOWTO or manual which describes
setting up such a root-disk image.

I know that the technique of doing this could vary from one OS to
another but any OS would do if it gives me an idea. I prefer specific
tips on how to do it for RHEL.

Please help.

Cheers,
Andy


P.S. The specs of the two PCs
-----------------------------------
Boot server: PIII 733 MHz w/ 133 MHz FSB, 512 Megs SDRAM @133MHz, 40
Gigs hard drive - Linux on (hd0,1). Dual boots to FreeBSD 6.1 and RHEL
4u3.

Client: PIV 2.4 GHz, 512 MB DDR SDRAM, 40 Gigs hard drive - Linux on
(hd0, 1). Dual boots to Win2k AS and Fedora Core 2.

Connected via a small 5-port switch using 100T network cables.

 
Reply With Quote
 
 
 
 
Balwinder S \bsd\ Dheeman
Guest
Posts: n/a

 
      09-25-2006, 08:47 PM
On 09/25/2006 06:36 PM, Andy wrote:
> I have a simple 2-PC LAN at home. I want to make one of them boot from
> the other over the network. I am trying this out because I plan to
> write some basic provisioning and maintenance routines for hardware
> which can be run on individual server over the network without booting
> them with their Disk OS.
>
> I have come across enough HOWTOs over the internet describing how to
> setup DHCP on the boot server or how to configure NFS share to share
> the root-disk image. What I cannot make out however is how to create a
> root disk image which can be used by the diskless PC as a read-only
> disk source of OS files and utilities.
>
> I tried installing RedHat Enterprise Linux 4.3 for this purpose using
> "--root <netboot_root>" switch on rpm. But it did not work out. There
> seemed to be too many cyclic dependencies between packages and even
> when the packages did get installed, they threw %post(...) errors, and
> sometimes failed with %pre errors. Not sure where I am going wrong. I
> am really looking for a standard HOWTO or manual which describes
> setting up such a root-disk image.
>
> I know that the technique of doing this could vary from one OS to
> another but any OS would do if it gives me an idea. I prefer specific
> tips on how to do it for RHEL.


IHMO, a quick, simple and, or working solution is you boot off from a
Knoppix LiveCD, run Knoppix terminal server, test boot your other
machine with the help of PXE enabled NIC and, or Etherboot floppy (newer
versions of Etherboot are PXE compliant).

If the etherboot.nbi on Knoppix terminal server does not boots the
remote machine, execute the following:

# ln -sf /tftpboot/pxelinux.0 /tftpboot/etherboot.nbi

and test boot again.

You may need to copy and, or customize the following files from a
working Knoppix terminal server system to your RHEL filesystem:

/etc/dhcp3/dhcpd.conf
/etc/exports
/tftpboot/*

Booting and, or running Knoppix from LiveCD is somewhat slow; to make it
faster you may copy all the files from a mounted Knoppix LiveCD to
/cdrom (which is exported as per /etc/exports).

In addition to above I use syslinux to provide a decent menu and
multiple boot options for client hosts.

Hope that helps, if you still want to create the boot/root image, initrd
and, or all the needed config file from scratch your mileage may vary.

--
Dr Balwinder S "bsd" Dheeman Registered Linux User: #229709
Anu's Linux@HOME Machines: #168573, 170593, 259192
Chandigarh, UT, 160062, India Distros: Ubuntu, Fedora, Knoppix
Home: http://cto.homelinux.net/~bsd/ Visit: http://counter.li.org/
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RIS service: how to deploy SCSI disk drivers to work with RIS image? Andreja Martonja Windows Networking 1 09-23-2004 09:15 PM
RIS service: how to deploy SCSI disk drivers to work with RIS image? Andreja Martonja Windows Networking 0 09-19-2004 06:58 PM
create a disk image HernАn Castelo Windows Networking 3 05-31-2004 01:38 PM
How to create BOOTP image file? Konstantin Korolyoff Windows Networking 0 12-01-2003 04:44 PM
disk image creation & restauration Antoine Logean Linux Networking 20 08-09-2003 05:25 PM



1 2 3 4 5 6 7 8 9 10 11