Using LTSP on Ubuntu 15.10 wily [Solved]

LTSP does not work out of the box on Ubuntu 15.10 wily with –arch AMD64 or i386 & thinclient or fatclient. You will get this error:

chroot: can’t execute ‘/usr/bin/test’: Exec format error
overlayfs: missing ‘workdir’
mount: mounting overlayfs on /root failed: Invalid argument
mount: mounting /dev/ on /root/dev/failed: No such file or directory
No init found. Try passing init= bootarg.

Here is a link to a chatroom where someone with this problem get’s to talk with the author of the patch:

irclogs.ltsp.org/?d=2015…

Bug report: bugs.launchpad.net/ltsp/…, https://bugs.launchpad.net/ltsp/+bug/1506756

There are two options to fixing it:

  1. Manually Patch

  1. Patch it your self with this patch: bazaar.launchpad.net/~lt…
    1. sudo ltsp-chroot -b <base>
    2. cd /usr/share/initramfs-tools/
    3. edit hooks/ltsp and scripts/init-bottom/ltsp
    4. exit
  2. After you do that you have to get the chroot to rebuild it initramfs. You can do this by issuing these commands:
    1. Supposedly this works:
      1. sudo ltsp-chroot -b <base> /usr/share/ltsp/update-kernels; sudo ltsp-update-kernels
    2. I had to issue these commands instead
      1. sudo ltsp-chroot -b <base>
        update-initramfs -u
      2. exit
  3. Optional: Rebuild image and restart nbd server (This will disconnect existing clients)
    1. ltsp-update-image
    2. service nbd-server restart

OR

2. Install Greek schools PPA


Use the Greek schools PPA both on the server and in the chroot

add-apt-repository ppa:ts.sch.gr
apt-get update
apt-get dist-upgrade
ltsp-chroot -m
apt-get install software-properties-common
add-apt-repository ppa:ts.sch.gr
apt-get update
apt-get dist-upgrade
exit
ltsp-update-image
service nbd-server restart