Re: LTSP NFS
Maxime Accadia <[email protected]> Thu, 7 Mar 2019 10:13:04 +0100 (CET)
| Newsgroups | gmane.linux.terminal-server.general |
|---|---|
| Message-ID | <1524991162.6699940.1551949984630.JavaMail.zimbra@univ-grenoble-alpes.fr> |
Hi, One more thing about LTSP NFS : it's possible to use a dedicated server which does only NFS. To that end, you need to configure the exports with specific options on the dedicated NFS server : /etc/exports ``` /ltsp *(ro,no_root_squash,async,no_subtree_check) ``` Then, you can copy the LTSP client rootfs (/opt/ltsp/amd64) on your NFS server and configure PXE boot : /var/lib/tftpboot/ltsp/amd64/pxelinux.cfg/default ``` [...] LABEL Linux Ubuntu 18.04 NFS KERNEL vmlinuz APPEND ro initrd=initrd.img init=/sbin/init-ltsp root=/dev/nfs ip=dhcp boot=nfs nfsroot=<NFS_server_IP>:/ltsp IPAPPEND 3 [...] ``` However, my tests show much slower boot with NFS for now. It might not be a good idea to use NFS after all. Maxime ----- Mail original ----- De: "MAXIME ACCADIA" <[email protected]> À: "ltsp-discuss" <[email protected]> Envoyé: Lundi 4 Mars 2019 08:53:47 Objet: Re: [Ltsp-discuss] LTSP NFS Thank you for the doc. My project with testing LTSP NFS is on standby for now. I'll let you know if I found anything interesting to note when I come back to it. Maxime ----- Mail original ----- De: "Dashamir Hoxha" <[email protected]> À: "ltsp-discuss" <[email protected]> Envoyé: Samedi 2 Mars 2019 10:43:05 Objet: Re: [Ltsp-discuss] LTSP NFS On Thu, Feb 7, 2019 at 12:39 PM Maxime Accadia < [ mailto:[email protected] | [email protected] ] > wrote: Thank you for the tip ! Good to know. I tested it with your instructions and with `unsquashfs` and it worked. I have described the NFS configration here: [ http://dashohoxha.fs.al/ltsp-scenarios/#org9be607e | http://dashohoxha.fs.al/ltsp-scenarios/#org9be607e ] Please let me know if I have missed anything that I should have mentioned. Dashamir ----- Mail original ----- De: "Alkis Georgopoulos" < [ mailto:[email protected] | [email protected] ] > À: "ltsp-discuss" < [ mailto:[email protected] | [email protected] ] > Envoyé: Jeudi 7 Février 2019 12:33:23 Objet: Re: [Ltsp-discuss] LTSP NFS You can also use 'unsquashfs` to uncompress a "chrootless" /opt/ltsp/amd64.img image into a /opt/ltsp/amd64 chroot, i.e. instead of using ltsp-build-client, to start the chroot with a snapshot of the server installation. On 2/7/19 12:55 PM, Maxime Accadia wrote: > Turns out I was missing a few things. First, NFS is not compatible with > chrootless which I was using. > > To turn my NDB installation into an NFS installation, I needed : > > ``` > sudo apt install nfs-kernel-server > sudo ltsp-config nfs > sudo systemctl restart nfs-server > sudo ltsp-build-client --purge-chroot --mount-package-cache # creates a > chrooted environment in /opt/ltsp/amd64 > sudo ltsp-chroot -m apt install gnome-session # I use gnome as desktop > environment > ``` > > And also had to modify /var/lib/tftpboot/ltsp/amd64/pxelinux.cfg/ltsp to > default to ltsp-NFS (there is probably a more conventional way to do this). > > You don't need `ltsp-build-image` if you're not using NBD. This is a > advantage for me as building the image can take quite some time with the > 100+ packages I install. > > _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: [ https://lists.sourceforge.net/lists/listinfo/ltsp-discuss | https://lists.sourceforge.net/lists/listinfo/ltsp-discuss ] For additional LTSP help, try #ltsp channel on [ http://irc.freenode.net/ | irc.freenode.net ] _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: [ https://lists.sourceforge.net/lists/listinfo/ltsp-discuss | https://lists.sourceforge.net/lists/listinfo/ltsp-discuss ] For additional LTSP help, try #ltsp channel on [ http://irc.freenode.net/ | irc.freenode.net ] _____________________________________________________________________ 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 _____________________________________________________________________ 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 _____________________________________________________________________ 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