2008/5/29 Steve Cayford <[EMAIL PROTECTED]>:
> Well, this is a bit old, but here are my notes to myself from a little over
> a year ago -- I don't know how much still applies since the new system uses
> nbd and squashfs instead of nfs. I'll be upgrading this system soon so I'll
> probably find out shortly.
>
> In any case, I doubt you should need to recompile the kernel, you just need
> to get the right settings in the initrd.
>
> *** Begin notes from 2007-03:
>
> I'm using alternate DHCP ports 1067-1068. This comes up in three places:
>
> 1. Etherboot: downloaded an etherboot image from http://rom-o-matic.net/
> with the alternate ports, set the alternate ports on the server in
> /etc/ltsp/dhcpd.conf (local-port and remote-port) and opened firewall holes.
Oh, I didn't know about local-port and remote-port: I'd been changing
the port in the init script.
> 2. Kernel bootup: after etherboot gets the kernel with tftp, and it
> begins to boot it will ask dhcp for an address and location for the nfs
> root. This is controlled in the /scripts/nfs file in the client's initrd.
> * on the server, chroot /opt/ltsp/i386
> * edit /usr/share/initramfs-tools/scripts/nfs and change the line
/usr/share/initramfs-tools/scripts/ltsp_nbd
contains this:
if [ -n "$dhcpport" ]; then
DHCPPORT="$dhcpport"
fi
which makes me think there must be another way of setting the port.
I found this: https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/198356
which suggests that the port can be specified in the lts.conf file.
So I changed the port in /usr/share/initramfs-tools/conf.d/ltsp
> ipconfig ${DEVICE} to ipconfig -p 1068 ${DEVICE}
> * create a new initrd with update-initramfs -c -k
> {kernel-version-number eg. 2.6.7-10-386}. You might want to save a copy of
> the original first.
> * make a new nbi image combining the kernel and initrd with mkelf-linux
> --output=/boot/nbi.img-2.6.17-10-386 vmlinuz-2.6.17-10-386
> initrd.img-2.6.17-10-386 (using the appropriate kernel version numbers)
mv /boot/nbi.img-2.6.24-16-generic /boot/nbi.img-2.6.24-16-generic.org
mkelfImage --kernel=/boot/vmlinuz-2.6.24-16-generic
--ramdisk=/boot/initrd.img-2.6.24-16-generic
--output=/boot/nbi.img-2.6.24-16-generic
> * exit the chroot
> * copy the new initrd and nbi.img from /opt/ltsp/i386/boot into
> /var/lib/tftpboot/i386 so tftp will serve it out.
>
> 3. After booting, the dhcp client will maintain the network ip (TODO: I
> haven't figured out if this is necessary yet).
>
> *** End notes
Unfortunately the client still requests DHCP info on port 67.
I also tried adding the following after those lines in ltsp_nbd:
DHCPPORT="1068"
But the dhclient still requests on port 67.
I tried editing /usr/share/initramfs-tools/scripts/nfs (then
mkelfImage, and cp ...), but that didn't make any difference either.
The datestamp is updated and the file size of the nbi.img and
initrd.img files is changed, so mkelfImage does seem to be doing
something.
Steve, please let me know when you update your system. I've obviously
done something incorrectly.
Thank you,
Sean
--
Sean Carte
esAL Library Systems Manager
+27 72 898 8775
+27 31 373 2490
fax: 0866741254
http://esal.dut.ac.za/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net