Netboot server

apt-get install dnsmasq nfs-common nfs-kernel-server

/etc/dnsmasq.conf
interface=eth1
dhcp-range=195.176.254.201,195.176.254.210,12h
enable-tftp
tftp-root=/tftpboot
dhcp-boot=pxelinux.0
/etc/exports
/livecd		195.176.254.0/255.255.255.0(async,no_root_squash,no_subtree_check,ro)
/liveiso1	195.176.254.0/255.255.255.0(async,no_root_squash,no_subtree_check,ro)
mount images command:
mount -o loop /mnt/vz2/images/ubuntu-10.10-desktop-i386.iso /livecd
mount -o loop /mnt/vz2/images/clonezilla-live-1.2.8-46-i686.iso /liveiso1
files2010:/tftpboot# ls -ltr
total 12212
drwxr-xr-x 2 root root     4096 2011-09-09 15:43 casper
drwxr-xr-x 2 root root     4096 2011-09-09 15:43 boot
drwxr-xr-x 3 root root     4096 2011-09-09 15:43 ubuntu-installer
drwxr-xr-x 2 root root     4096 2011-09-09 15:43 pxelinux.cfg
-rw-r--r-- 1 root root    14776 2011-09-09 16:03 pxelinux.0
-rw-r--r-- 1 root root 12451180 2011-09-09 16:03 netboot.tar.gz
-rw-r--r-- 1 root root       58 2011-09-09 16:03 version.info
lrwxrwxrwx 1 root root       15 2011-09-09 16:04 live -> /liveiso1/live/

files2010:/tftpboot# cat ubuntu-installer/i386/boot-screens/text.cfg 
default clonezilla
LABEL clonezilla
	menu default
        kernel live/vmlinuz
        append boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" ocs_live_batch="no" ocs_lang="" vga=788 nosplash fetch=tftp://10.0.0.1/live/filesystem.squashfs initrd=live/initrd.img --

LABEL kubu1010live
        kernel casper/vmlinuz
        append boot=casper netboot=nfs nfsroot=10.0.0.1:/livecd initrd=casper/initrd.lz --

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.