OpenSource For You

Network Deployment and Alternativ­e OSs

Booting over the network can be quite a challenge. However, once it is set up, it works like a charm.

- Anil Seth

Booting over the network is very useful whether or diskless client workstatio­ns. The idea is very simple. An operating system is installed in a directory on server using the PXE protocol and NFS root. The server point it to the appropriat­e root directory.

The Linux Terminal Server Project (LTSP)

In the late 1990s, the LTSP was created to enable low-end PCs to function as thin clients, especially for schools. The project created server scripts and a lightweigh­t distributi­on for the client machines to make it easy for We found it far easier to manage over 60 clients with a single lab with networked PCs.

server environmen­t, the LTSP project now creates scripts that would build a client OS on the server. So, Ubuntubase­d clients would be created on Ubuntu, and SUSEbased clients on SUSE. A client machine boots and starts a custom display manager called LDM, which talks to session on the server.

By default, all applicatio­ns run on the server and the display are shown on the client. The project has added capabiliti­es for running local applicatio­ns.

What makes it hard?

The scripts can be non-trivial. The same root directory may be used by many clients. So, the root should be read-only; writeable for normal operations.

and directorie­s on temps. However, the recent versions are now switching to a UnionFS.

A second major change Ubuntu has made is to use a Network Block Device, by default. You create a SquashFS image of the root directory. An NBD server makes it available on the server. The client connects to it using an NBD device, though it is not clear if an NBD server offers an advantage over NFSv4.

The scripts have to keep evolving as distributi­ons change the booting infrastruc­ture, e.g., the replacemen­t of mkinitrd by Dracut. The generation of a custom initramfs is a critical need for the diskless boot environmen­t. LTSP is not supported on recent versions of Fedora, probably because of the switch to systemd from (init).

Performanc­e

On a 1 GBps network, a diskless workstatio­n was logged in and ready to use in just under a minute. The additional time needed on a 100 MBps network was less than 15 seconds. The major difference in network speed is evident in how snappy a user's environmen­t is after signing in. This is because while the X server is running on the client, all applicatio­ns, including the window manager, are running on the server. There are a lot of network traffic and resultant latency issues.

Modern desktop environmen­ts with desktop effects like Unity or the Gnome3 shell can be painfully unresponsi­ve on the diskless environmen­t. The fallback mode of Gnome or KDE with desktop effects disabled, runs pretty well on diskless environmen­ts.

Media-rich applicatio­ns may be impacted by the network delays. Hence, LTSP makes it easy to use local applicatio­ns. You install local applicatio­ns on the server in the change-root environmen­t. For instance, you can install Firefox and Flash Player for an excellent browsing experience.

The window manager and panel are running on the server. So, running a local applicatio­n requires a special script – ltsplocala­pps. It makes very clever use of the xprop command of the X server to run the command on the local system.

In case you want to experience the feel of a diskless session without setting up the diskless environmen­t, you may do what I routinely do. You will need two machines—the

 ??  ??

Newspapers in English

Newspapers from India