Tero Karvinen - Articles - Downloads - Courses - Contact

Table of Contents

Install Workstations Automatically

Turn an empty workstation (that’s not on) into a usable workstation, so that users can log in and begin work.

Only the theory of operation is described at the moment - this is not (yet) a practical howto. The process described has been tested with Fedora Core 4 and Dell GX270. The instructions probably work on most Fedora versions and slightly modified on Ubuntu. Only BIOS setup is machine specific, otherwise many kinds of computers can work with the same kickstart file.

© 2005 Tero Karvinen www.iki.fi/karvinen

Procedure Overview

Workstation Prequisites

BIOS

On many BIOSes, the setup procedure is not very logical. Booting trough network with PXE only for WOL makes it easy to prevent compters installing OS again after reboot.

Working network hardware connecting workstations to a server trough a switch.

MAC numbers of each workstation. Can be obtained from a switch with snmpwalk or with a broadcast ping

 # ping -b 10.0.0.255
 # arp

Server Prequisites

- DHCP server (for distribution network configuration to workstations and for starting PXE) - TFTP server (for distributing PXE images to workstations) - HTTP server (for distributing ks.cfg and package mirror) - A tested kickstart configuration ks.cfg

Process

  1. Wake On LAN. Server sends Wake On LAN magic packet to each workstation. Workstations boot (even though they are completely shut down). Workstations boot to PXE, because it is set so in BIOS.
  2. DHCP. Workstations BIOS PXE agent starts, built in DHCP client starts sending DHCP_DISCOVER, requesting network configuration and PXE boot instructions. Server gives the clients the basic network settings (ip address, network mask, default gateway, domain name servers) and PXE booting instructions (next-server, filename)
  3. PXE. Workstations BIOS PXE‘s built in TFTP client (trivial file transfer protocol, not same as ftp) starts to download filename (pxelinux.0) from next-server (our install server) as instructed in DHCP_OFFER.
    • The boot loader, pxelinux.0 displays a boot menu as described in pxelinux.cfg/default
    • After a delay, one label in boot menu is chosen, BIOS PXE TFTP client downloads kernel (vmlinuz) and ramdisk image (initrd)
    • Linux boots, installer (anaconda) starts. Installer uses ks.cfg according to instructions passed by bootloader.
  4. Kickstart. Installer runs, downloads netstg2.img and packages from server (http)
    • Installer runs normally. Questions automatically get answers from ks.cfg
  5. Reboot. Computer reboots after installation. Because Boot to PXE only with WOL, install does not start automatically.
  6. Done. Installation is ready. Users can log in and use computer and all progams normally.

Random tips

Last modified: 2005-11-14. Permanent url: http://www.iki.fi/karvinen/install_workstations_automatically.html

Tero Karvinen www.iki.fi/karvinen - Top - Validate HTML - Validate CSS