2012年3月1日 星期四

PXEBoot config

Content of pxe config ( /var/lib/tftpboot/pxelinux.cfg/default )
DEFAULT menu
PROMPT 0
MENU TITLE Cobbler | http://fedorahosted.org/cobbler
TIMEOUT 50
TOTALTIMEOUT 6000
ONTIMEOUT local

##Boot into local hard disk
LABEL local
        MENU LABEL (local)
        MENU DEFAULT
        LOCALBOOT -1

##Boot into busybox, the busybox is copied from ubuntu install iso.
LABEL busybox
        MENU LABEL busybox
        kernel /sources/busybox/linux
        append initrd=/sources/busybox/initrd.gz

##Boot into ubuntu desktop amd64 live environment.
##Can't install ubuntu from this mode.
LABEL ubuntu-1110-desktop-amd64
        MENU LABEL Ubuntu 11.10 desktop amd64
        kernel /sources/ubuntu/1110/desktop/amd64/vmlinuz
        append initrd=/sources/ubuntu/1110/desktop/amd64/initrd.lz boot=casper root=/dev/nfs netboot=nfs nfsroot=192.168.116.1:/var/lib/tftpboot/sources/ubuntu/1110/desktop/amd64/nfs

##Boot into ubuntu desktop i386 live environment.
##Can't install ubuntu from this mode.
LABEL ubuntu-1110-desktop-i386
        MENU LABEL Ubuntu 11.10 desktop i386
        kernel /sources/ubuntu/1110/desktop/i386/vmlinuz
        append initrd=/sources/ubuntu/1110/desktop/i386/initrd.lz boot=casper root=/dev/nfs netboot=nfs nfsroot=192.168.116.1:/var/lib/tftpboot/sources/ubuntu/1110/desktop/i386/nfs
Mount ISO for provide NFS data
sudo mount -t auto -o loop ubuntu-1110-desktop-amd64.iso /var/lib/tftpboot/sources/ubuntu/1110/desktop/amd64/nfs
sudo mount -t auto -o loop ubuntu-1110-desktop-i386.iso /var/lib/tftpboot/sources/ubuntu/1110/desktop/i386/nfs

Content of nfs config( /etc/exports )
/var/lib/tftpboot/sources/ubuntu/1110/desktop/amd64/nfs 192.168.116.0/24(async,no_root_squash,no_subtree_check,ro)
/var/lib/tftpboot/sources/ubuntu/1110/desktop/i386/nfs 192.168.116.0/24(async,no_root_squash,no_subtree_check,ro)

沒有留言:

張貼留言