Version 1/54
-
Next » -
Current version
Ohad Levy, 09/08/2009 05:27 am
How do I use unattended installations (Kickstart, jumpstart, preseed)?¶
Torque automates network boot processes using PXEboot (or native Solaris net:dhcp)
At this time, Torque does not support DHCP and DNS alteration, you would need to do those steps manually.
TFTP¶
Torque has currently limited support for TFTP- that means it require the TFTP server to be accessible via the local file system.
future versions of Torque would allow remote TFTP servers as well.
make sure you add into your config/settings.yml
:tftppath: /var/lib/tftpboot/pxelinux.cfg
replace the value with your actual TFTP directory and ensure that the user which executes Torque have write access.
How does Torque manages TFTP?¶
When clicking on the Build button (in the host list), Torque would generate a link which will be automatically read by pxelinux,
This link would point to a predefined syslinux(pxelinux) boot file which would be based on the Operating System used.
after a successful OS installation, that link will be removed, and your default PXE settings will be served.
The idea behind it is to set the boot order on each host to always boot from network, and then change the settings via Torque.
This avoids the need to press F12 on each machine just to reinstall it, Clicking on Build in Torque will trigger a host re-installation upon the next server reboot if default boot order is PXE
an example of a such a file for CentOS 5 32bit:
default linux label linux kernel boot/centos-5-32.vmlinuz append initrd=boot/centos-5-32.initrd.img ks=http://ginihost/unattended/kickstart ksdevice=eth0 network kssendmac
and another example for Ubuntu 9.04 32bit
default preseed label preseed kernel boot/ubuntu-9.04-32.linux append initrd=boot/ubuntu-9.04-32.initrd.gz ramdisk_size=10800 root=/dev/rd/0 rw auto preseed/url=http://ginihost/unattended/preseed console-keymaps-at/keymap=us locale=en_US interface=eth0 DEBCONF_PRIORITY=critical netcfg/dhcp_timeout=60 --
Whats inside the Kickstart / jumpstart /preseed ?¶
These files are all generated dynamically based on the setting of each host in Torque, things like partition tables and root password can be unique per server.
if you want to see the kickstart/preseed etc you may use the spoof parameter, just point your browser to:
http://Torquehost:3000/unattended/kickstart?spoof=123.321.123.321
- 123.321.123.321 is the hosts IP Address (the one you want to build).
- usually you want to see the page source, the browser might display the file in html which will result in hard to read output.
- if you are using passenger please remove the ":3000" from the URL.
Modifying the unattended template¶
You probably want to do minor teaks to your kickstart/jumpstart/preseed template (yeah the same kind puppet uses).
the template for can be found at:
RedHat based installation
app/view/unattended/kickstart.rhtml
Debian/Ubuntu installations
app/view/unattended/preseed.rhtml
and a finish script
app/view/unattended/preseed_finish.rhtml
