Re: Deprecating NBD in favor of squashfs-over-NFS

Alkis Georgopoulos <[email protected]> Fri, 17 May 2019 12:49:15 +0300
Newsgroups gmane.linux.terminal-server.general
Message-ID <[email protected]>
Indeed the file will be overwritten, unless you do what I said in the 
first mail:


On 5/17/19 10:52 AM, Alkis Georgopoulos wrote:
 > The change will be overwritten the next time you run ltsp-update-image;
 > so if you're happy with the change and you want to make it stick,
 > the "default" file there is a symlink to "ltsp";
 > remove the default symlink and run `cp ltsp default`.
 >
 > (longer explanation: ltsp-update-kernels creates symlinks for the latest
 > kernel, so "vmlinuz-generic" is a symlink to the latest kernel,
 > and it only updates the pxelinux.cfg/ltsp file, not the "default",
 > so this allows us to maintain pxelinux.cfg/default manually without LTSP
 > overwriting it)
 >


Let me say it again with commands.
If someone has amd64 clients, he should replace i386 with amd64:

=======
sudo -i
apt install --yes nfs-kernel-server
ltsp-config nfs
rm /var/lib/tftpboot/ltsp/i386/pxelinux.cfg/default

text='default ltsp-NFS
ontimeout ltsp-NFS

label ltsp-NFS
menu label LTSP, using NFS
kernel vmlinuz-generic
append ro initrd=initrd.img-generic init=/sbin/init-ltsp forcepae 
root=/dev/nfs nfsroot=/opt/ltsp/images ltsploop=i386.img
ipappend 3'

echo "$text" >/var/lib/tftpboot/ltsp/i386/pxelinux.cfg/default
=======

The way that this file is regenerated is rather complicated;
it involves editing $CHROOT/etc/ltsp/update-kernels,
running chroot $CHROOT/usr/share/ltsp/update-kernels,
then ltsp-update-image, etc etc,
and it's so confusing that it won't be used in the next ltsp version.

So don't bother with the regeneration; just do the commands that I said 
above, so that the symlink is replaced by a file that you can manually 
edit whenever you want.



On 5/17/19 12:17 PM, relosrl wrote:
> Il 17/05/2019 09:52, Alkis Georgopoulos ha scritto:
>> So, if anyone wants to switch NBD to NFS now, aiming for better 
>> performance and stability, he'd need to do these:
>>
>> sudo apt install --yes nfs-kernel-server
>> sudo ltsp-config nfs
>> sudo gedit /var/lib/tftpboot/ltsp/amd64/pxelinux.cfg/default
>>
>> and in that file, replace lines 13-14 from something like this:
>> kernel vmlinuz-4.15.0-45-generic
>> append ro initrd=initrd.img-4.15.0-45-generic init=/sbin/init-ltsp 
>> forcepae root=/dev/nbd0
>>
>> to something like this:
>> kernel vmlinuz-generic
>> append ro initrd=initrd.img-generic init=/sbin/init-ltsp forcepae 
>> root=/dev/nfs nfsroot=/opt/ltsp/images ltsploop=amd64.img
> I installed it a long time ago. Server Ubuntu 16.04 amd64, client i386.
> 
> My /var/lib/tftpboot/ltsp/i386/pxelinux.cfg/default is a symlink to ltsp 
> in same directory in attachment.
> 
> File start with:
> # This file is regenerated when update-kernels runs.  Do not edit
> # directly, edit the client's /etc/ltsp/update-kernels.conf instead.
> 
> If it is regenerated, will the manual change be overwritten at the next 
> update-kernels?
> 
> Rodolfo



_____________________________________________________________________
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