This page is specific to Ubuntu versions 8.04, 10.04 and 12.04 - presumably in-between versions work too.

If you find this information applicable to additional versions/releases, please edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.


To enable NBD Swap (Network swap for thin-clients) we must ensure the proper facilities are active and configured correctly.

NBD_SWAP = True

The next lts.conf options, if used, will give you more control over where NBD Swap takes place:

SWAP_SERVER = IP_ADDRESS_OF_NBDSWAPD_SERVER # default is IP of LTSP server
NBD_PORT    = PORT                          # default is 9572 (after following instructions in https://help.ubuntu.com/community/UbuntuLTSP/UpdatingChroot )

LTSP 5.2 and Ubuntu 10.04 use a slightly different variable for the swap server

NBD_SWAP_SERVER = IP_ADDRESS_OF_NBDSWAPD_SERVER
  • Create a /etc/ltsp/nbdswapd.conf file with the size of desired swapfile for each client. Keep in mind swapfiles live in /tmp, so make sure you have enough space in /tmp to facilitate CLIENTS x SIZE:

SIZE=256

Ubuntu 12.04 notes

Ubuntu 12.04 has problems with NBDSwap unless the following file is created

* /etc/nbd-server/conf.d/swap.conf

[swap]
exportname = /tmp/nbd-swap/%s
prerun = nbdswapd %s
postrun = rm -f %s

Reference : http://www.mail-archive.com/ltsp-discuss@lists.sourceforge.net/msg40695.html

nbdswapd: ALL: keepalive

Reboot your thin-clients to activate their NBD Swap. You can verify swapfiles are being created in /tmp with the following to give you the number 256M files in /tmp starting with tmp. (which should be roughly accurate):

ls -lh /tmp/tmp.*|grep 256M|wc -l

12.04 Notes

On Ubuntu 12.04 the swap files will be located at

/tmp/nbd-swap/*IP_Address_Of_Client*

This should be all you need to get swapfiles going in Ubuntu LTSP.

UbuntuLTSP/EnableNBDSWAP (last edited 2013-01-25 23:05:17 by w-ubuntu)