Re: Diskless: Howto create a root-disk image
- From: "Balwinder S \"bsd\" Dheeman" <bsd.SANSPAM@xxxxxxxxxxxxxxxxx>
- Date: 25 Sep 2006 22:47:06 +0200
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/
.
- References:
- Diskless: Howto create a root-disk image
- From: Andy
- Diskless: Howto create a root-disk image
- Prev by Date: Re: ping problem ...
- Next by Date: Re: Network connection diagnostics
- Previous by thread: Diskless: Howto create a root-disk image
- Next by thread: [PXE + NFS-Root] No Permissions?!
- Index(es):