Discussion:
[Ltsp-discuss] Two versions of LTSP on one server
Rolf-Werner Eilert
2014-12-18 09:37:34 UTC
Permalink
Hi folks,

I would like to have an LTSP 5 alongside with an LTSP 4.2 on the same
server. Long time ago, I had this running. But I do not remember every
detail, and answers in the net are either outdated or too unfocused.

As far as I understand, the only glitch is getting dhcp to hand out the
data for either of the two LTSP breeds according to the MAC address of
the terminals.

Here is some basic data of the server's /etc/dhcpd as it works now. This
is an LTSP-4.2-only system and it has been running like this for years:

option subnet-mask 255.255.255.0;
option broadcast-address 192.168.10.255;
option routers 192.168.10.2;
option domain-name-servers 192.168.10.103;
option domain-name "eilert";
option root-path "192.168.10.103:/opt/ltsp-4.2u4/i386";
option option-128 code 128 = string;
option option-129 code 129 = text;


ddns-update-style none;
default-lease-time 21600;
max-lease-time 21600;
shared-network WORKSTATIONS {
subnet 192.168.10.0 netmask 255.255.255.0 {
}
}
group {
option log-servers 192.168.10.103;
use-host-decl-names on;
next-server 192.168.10.103;

host ws001 {
hardware ethernet 00:B0:D0:66:3A:36;
fixed-address 192.168.10.111;
filename "/lts/2.6.17.8-ltsp-1/pxelinux.0";
}

host ws002 {
hardware ethernet 00:B0:D0:B8:B9:96;
fixed-address 192.168.10.112;
filename "/lts/2.6.17.8-ltsp-1/pxelinux.0";
}


and so on. As you can see, there is only one group without a name. To
add LTSP 5, would I have to add another group? (Or is there another way
to do that?)

For establishing another group, which options would have to be put into
the LTSP 4 and the LTSP 5 groups and which options may remain at the top
for both?

Thanks for any advice!

Rolf

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_____________________________________________________________________
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
Horst Prote
2014-12-18 10:23:19 UTC
Permalink
Hi Rolf-Werner,
Post by Rolf-Werner Eilert
and so on. As you can see, there is only one group without a name. To
add LTSP 5, would I have to add another group? (Or is there another way
to do that?)
Although all my LTSP 4 machines are scrapped I still have the config
in my dhcpd.conf file.
Post by Rolf-Werner Eilert
For establishing another group, which options would have to be put into
the LTSP 4 and the LTSP 5 groups and which options may remain at the top
for both?
I have no root-path option at the top and placed the LTSP 5 pxelinux.0
in the tftp root. Then there are two groups in dhcpd.conf:
group { # LTSP 5
filename "/pxelinux.0";
next-server <Server-IP>;

host theolite00 {
hardware ethernet <MAC>;
fixed-address <Client-IP>;
}
host ...
}

group { # LTSP 4
option root-path "<Server-IP>:/opt/ltsp-4.2/i386";
filename "/pxelinux.0";
next-server <Server-IP>;

host theolite10 {
hardware ethernet <MAC>;
fixed-address <Client-IP>;
}
host ...
}

I would expect that an "option root-path" in a group overwrites the
root-path given at the top but haven't tried it.

Regards,
Horst

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_____________________________________________________________________
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
Rolf-Werner Eilert
2014-12-18 17:33:22 UTC
Permalink
Post by Horst Prote
Hi Rolf-Werner,
Post by Rolf-Werner Eilert
and so on. As you can see, there is only one group without a name. To
add LTSP 5, would I have to add another group? (Or is there another way
to do that?)
Although all my LTSP 4 machines are scrapped I still have the config
in my dhcpd.conf file.
Post by Rolf-Werner Eilert
For establishing another group, which options would have to be put into
the LTSP 4 and the LTSP 5 groups and which options may remain at the top
for both?
I have no root-path option at the top and placed the LTSP 5 pxelinux.0
group { # LTSP 5
filename "/pxelinux.0";
next-server <Server-IP>;
host theolite00 {
hardware ethernet <MAC>;
fixed-address <Client-IP>;
}
host ...
}
group { # LTSP 4
option root-path "<Server-IP>:/opt/ltsp-4.2/i386";
filename "/pxelinux.0";
next-server <Server-IP>;
host theolite10 {
hardware ethernet <MAC>;
fixed-address <Client-IP>;
}
host ...
}
I would expect that an "option root-path" in a group overwrites the
root-path given at the top but haven't tried it.
Regards,
Horst
Thanks a lot for these hints, Horst, I hope I find the time to look
through this and try it on my system tomorrow. The files for LTSP 5
still are there, as it had been installed once. I even found a
dhcpd.conf for LTSP 5 which I had spared for this case. But it's been
more than 2 years ago...

Regards
Rolf

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_____________________________________________________________________
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
Rolf-Werner Eilert
2014-12-19 12:03:14 UTC
Permalink
Post by Horst Prote
Hi Rolf-Werner,
Post by Rolf-Werner Eilert
and so on. As you can see, there is only one group without a name. To
add LTSP 5, would I have to add another group? (Or is there another way
to do that?)
Although all my LTSP 4 machines are scrapped I still have the config
in my dhcpd.conf file.
Post by Rolf-Werner Eilert
For establishing another group, which options would have to be put into
the LTSP 4 and the LTSP 5 groups and which options may remain at the top
for both?
I have no root-path option at the top and placed the LTSP 5 pxelinux.0
group { # LTSP 5
filename "/pxelinux.0";
next-server <Server-IP>;
host theolite00 {
hardware ethernet <MAC>;
fixed-address <Client-IP>;
}
host ...
}
group { # LTSP 4
option root-path "<Server-IP>:/opt/ltsp-4.2/i386";
filename "/pxelinux.0";
next-server <Server-IP>;
host theolite10 {
hardware ethernet <MAC>;
fixed-address <Client-IP>;
}
host ...
}
I would expect that an "option root-path" in a group overwrites the
root-path given at the top but haven't tried it.
Regards,
Horst
Hi Horst,

yes, this was the way to do it. Runs well like this. The only problem
remaining is the configuration of the rest of the services which I had
tailored to LTSP 4.2. For instance, KDM is coming up, it doesn't find
the graphics drivers etc. But it helped a lot.

Regards
Rolf

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_____________________________________________________________________
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
Horst Prote
2014-12-19 13:38:43 UTC
Permalink
Hi Rolf-Werner,
Post by Rolf-Werner Eilert
yes, this was the way to do it. Runs well like this. The only problem
remaining is the configuration of the rest of the services which I had
tailored to LTSP 4.2. For instance, KDM is coming up, it doesn't find
the graphics drivers etc. But it helped a lot.
If I get you right you mount the same root filesystem to both the 4.2
and 5 clients? I can' recall anymore how I did this years ago with
LTSP 4.2 and 5 in parallel (maybe I then had two LTSP Servers) but I
think you could adopt my solution for the two CPU architectures (486
VIA and x86 Intel Atoms; also they have a different graphic chip/card)
in my client pool.

I use Gentoo Linux and its LTSP 5 package which comes with some
scripts to create Chroots for the client root filesystem. So I set up
two Chroots for my two client variants where I installed a tailored
Gentoo Linux for them.
My /var/lib/tftpboot/pxelinux.0 is the pxelinux.0 from the syslinux
package and in /var/lib/tftpboot/pxelinux.cfg/ I have two menu files
for the syslinux bootloader that define the kernel and root filesystem
to boot (the "menu" funtionality is disabled and it just boots the
default kernel). For example:
--------------------------------- file ----------------------------
# see /usr/share/doc/syslinux-x.xx/syslinux.txt.bz2
# and /usr/share/doc/syslinux-x.xx/menu.txt.bz2 for help

# Use the menu system.
UI vesamenu.c32

# Display the boot: prompt only if the Shift or Alt key
# is pressed, or Caps Lock or Scroll lock is set.
PROMPT 0

# Ignore the Shift/Alt/Caps Lock/Scroll Lock escapes.
# So, with the above, the menu system is started.
NOESCAPE 1

# Exit the menu system immediately unless either the Shift
# or Alt key is pressed, or Caps Lock or Scroll Lock is set.
MENU SHIFTKEY

# Timeout for both the syslinux boot: prompt and the menu.
TIMEOUT 50

# Replaces the message "Automatic boot in # second{,s}...".
MENU AUTOBOOT Starting Gentoo Thinclient in # second{,s}

# Menu title
MENU TITLE PXELinux Boot Menu

# --------------------------------------------------------
# The menu entries:
LABEL 3.14.16-ION-NVIDIA
MENU LABEL Gentoo Thinclient 3.14.16-ION-NVIDIA
KERNEL ltsp/x86/kernel-genkernel-x86-3.14.16-gentoo-ION-NVIDIA
APPEND root=/dev/nfs ip=dhcp nfsroot=<Server-IP>:/opt/ltsp/x86 noht real_init=/sbin/init-ltsp
INITRD ltsp/x86/initramfs-genkernel-x86-3.14.16-gentoo-ION-NVIDIA

LABEL 3.12.21-gentoo-r1-ION-NVIDIA
MENU LABEL Gentoo Thinclient 3.12.21-gentoo-r1-ION-NVIDIA
KERNEL ltsp/x86/kernel-genkernel-x86-3.12.21-gentoo-r1-ION-NVIDIA
APPEND root=/dev/nfs ip=dhcp nfsroot=<Server-IP>:/opt/ltsp/x86 noht real_init=/sbin/init-ltsp
INITRD ltsp/x86/initramfs-genkernel-x86-3.12.21-gentoo-r1-ION-NVIDIA

#LABEL BIOS Update
# MENU LABEL Zotac IONITX-F-E BIOS Update
# KERNEL ltsp/memdisk
# APPEND initrd=ltsp/AFUDOS.img root=/dev/hda1
------------------------------- file end --------------------------

The file for the other client arch has different kernel and nfsroot
paths.

As you can see I once even used this setup to boot a BIOS update image
for my thin client boards.

Regards,
Horst

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_____________________________________________________________________
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
Rob Owens
2014-12-18 16:11:16 UTC
Permalink
Post by Rolf-Werner Eilert
Hi folks,
I would like to have an LTSP 5 alongside with an LTSP 4.2 on the same
server. Long time ago, I had this running. But I do not remember every
detail, and answers in the net are either outdated or too unfocused.
I had documented this on the LTSP wiki years ago, but I see the wiki has
changed. (It was running twiki back in those days). Anyway, I found
this documentation in the list archives:

http://marc.info/?l=ltsp-discuss&m=120129081210241&w=2

-Rob
Rob Owens
2014-12-18 16:16:10 UTC
Permalink
Post by Rob Owens
Post by Rolf-Werner Eilert
Hi folks,
I would like to have an LTSP 5 alongside with an LTSP 4.2 on the same
server. Long time ago, I had this running. But I do not remember every
detail, and answers in the net are either outdated or too unfocused.
I had documented this on the LTSP wiki years ago, but I see the wiki has
changed. (It was running twiki back in those days). Anyway, I found
http://marc.info/?l=ltsp-discuss&m=120129081210241&w=2
I think I found the old link, but it's dead. Maybe the wiki admins can
track this down if the OP needs it:

http://wiki.ltsp.org/twiki/bin/view/Ltsp/Ltsp5SameServerLTSP42
Andreas Rudin
2015-02-07 16:31:27 UTC
Permalink
Hi Rob and all together
Post by Rob Owens
I think I found the old link, but it's dead. Maybe the wiki admins can
http://wiki.ltsp.org/twiki/bin/view/Ltsp/Ltsp5SameServerLTSP42
We have restored the old wiki read-only since a long time on our server:

http://ltsp4.2.revamp-it.ch/twiki/bin/view/ltsp/

The page you were looking for is here:

http://ltsp4.2.revamp-it.ch/twiki/bin/view/ltsp/Ltsp5SameServerLTSP42

Best wishes

Andreas
Post by Rob Owens
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_____________________________________________________________________
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
--
revamp-it
Roeschibachstr. 26
CH 8037 Zuerich
www.revamp-it.ch
Rolf-Werner Eilert
2014-12-18 17:30:26 UTC
Permalink
Post by Rob Owens
Post by Rolf-Werner Eilert
Hi folks,
I would like to have an LTSP 5 alongside with an LTSP 4.2 on the same
server. Long time ago, I had this running. But I do not remember every
detail, and answers in the net are either outdated or too unfocused.
I had documented this on the LTSP wiki years ago, but I see the wiki has
changed. (It was running twiki back in those days). Anyway, I found
http://marc.info/?l=ltsp-discuss&m=120129081210241&w=2
-Rob
Hi Rob,

Before I started this question here, I looked around a bit and in fact
found just this link and printed it out. But it didn't really help too
much as I have 4.2 running on the server anyway, so what I actually need
is the other way round: LTSP 5 set up additionally.

There was an LTSP 5 on the system, and the files are still there, but
currently not needed and running. Horst Prote gave me some hints, and
I'll try them tomorrow. Then I'll be back with the result or more
questions :)

Rolf

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_____________________________________________________________________
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
Vagrant Cascadian
2014-12-18 17:32:04 UTC
Permalink
Post by Rolf-Werner Eilert
I would like to have an LTSP 5 alongside with an LTSP 4.2 on the same
server. Long time ago, I had this running. But I do not remember every
detail, and answers in the net are either outdated or too unfocused.
As far as I understand, the only glitch is getting dhcp to hand out the
data for either of the two LTSP breeds according to the MAC address of
the terminals.
Another option would be to use pxelinux configuration files to handle
the differences, and then symlink the configuration file for each
client.

So in the top-level tftp dir, you'd have configs like so:

/pxelinux.0
# symlink to ltsp5 configuration
/pxelinux.cfg/default -> ltsp5
/pxelinux.cfg/ltsp5
/pxelinux.cfg/ltsp42
# symlink for mac address 11:22:33:44:55:66:77, note the 01 prefix:
/pxelinux.cfg/01-11-22-33-44-55-66-77 -> ltsp42
# symlink for mac address 88:99:00:aa:bb:cc, note the 01 prefix:
/pxelinux.cfg/01-88-99-00-aa-bb-cc -> ltsp5

Here's an example of a pxelinux configuration using probably overly
complicated menus:

https://github.com/freegeek-pdx/netboot-config/tree/master/pxelinux.cfg

In particular, here's a setup for an LTSP configuration not in the
default directory, forcing the nfsroot to a different value:

https://github.com/freegeek-pdx/netboot-config/blob/master/pxelinux.cfg/diskless-terminal

label ltsp-wheezy
menu label Diskless Terminal
kernel /ltsp/i386-wheezy/486-vmlinuz
append ro initrd=/ltsp/i386-wheezy/486-initrd.img init=/sbin/init-ltsp
quiet root=/dev/nfs ip=dhcp boot=nfs nfsroot=/opt/ltsp/i386-wheezy/
ipappend 2

You could easily have one configuration file for ltsp5 and one for
ltsp42, and only make a symlink in pxelinux.cfg, rather than editing
dhcpd.conf and restarting dhcp every time you add or remove a client.

Also, with the "default" entry symlinked to whichever you prefer (ltsp42
or ltsp5), you would only have to add mac address symlinks for the
non-default ones.


Good luck!


live well,
vagrant
Rolf-Werner Eilert
2014-12-19 12:08:08 UTC
Permalink
Post by Vagrant Cascadian
Post by Rolf-Werner Eilert
I would like to have an LTSP 5 alongside with an LTSP 4.2 on the same
server. Long time ago, I had this running. But I do not remember every
detail, and answers in the net are either outdated or too unfocused.
As far as I understand, the only glitch is getting dhcp to hand out the
data for either of the two LTSP breeds according to the MAC address of
the terminals.
Another option would be to use pxelinux configuration files to handle
the differences, and then symlink the configuration file for each
client.
/pxelinux.0
# symlink to ltsp5 configuration
/pxelinux.cfg/default -> ltsp5
/pxelinux.cfg/ltsp5
/pxelinux.cfg/ltsp42
/pxelinux.cfg/01-11-22-33-44-55-66-77 -> ltsp42
/pxelinux.cfg/01-88-99-00-aa-bb-cc -> ltsp5
Here's an example of a pxelinux configuration using probably overly
https://github.com/freegeek-pdx/netboot-config/tree/master/pxelinux.cfg
In particular, here's a setup for an LTSP configuration not in the
https://github.com/freegeek-pdx/netboot-config/blob/master/pxelinux.cfg/diskless-terminal
label ltsp-wheezy
menu label Diskless Terminal
kernel /ltsp/i386-wheezy/486-vmlinuz
append ro initrd=/ltsp/i386-wheezy/486-initrd.img init=/sbin/init-ltsp
quiet root=/dev/nfs ip=dhcp boot=nfs nfsroot=/opt/ltsp/i386-wheezy/
ipappend 2
You could easily have one configuration file for ltsp5 and one for
ltsp42, and only make a symlink in pxelinux.cfg, rather than editing
dhcpd.conf and restarting dhcp every time you add or remove a client.
Also, with the "default" entry symlinked to whichever you prefer (ltsp42
or ltsp5), you would only have to add mac address symlinks for the
non-default ones.
Good luck!
live well,
vagrant
Thanks a lot for these aspects, I didn't know this. After having solved
the basic problem with DHCP, I will see how this could help.

In particular, I would like to have a concise LTSP 5 running as if there
was no 4.2 on the system. Currently it is mixed up a bit, LTSP5
acquiring KDM and loading the wrong or no graphics etc. Maybe your
solution could help here. I'll see and test, maybe in January.

Regards
Rolf


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_____________________________________________________________________
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
Loading...