My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://techienote.com and update your bookmarks.

Tech Resources

Thursday, June 24, 2010

PXE booting Lucid Lynx Ubuntu -10.04


Earlier we have covered how to setup pxe server. Now we will see how to run ubuntu live cd from pxe.

Mount ubuntu live iso on pxe server
#mkdir /mnt/iso
#mount ubuntu-10.04-desktop-i386.iso /mnt/iso

Create nfs share for ubuntu & copy all the content of live cd to it
#mkdir /nfs-share/ubuntu
#cd /mnt/iso/
#cp -av * /nfs-share/ubuntu/

Entries in nfs share export file
#cat /etc/exports


/nfs-share/ubuntu/    *(no_root_squash,rw,async)
#exportfs -rv

Entries in pxelinux.cfg/default my root directory of tftpboot is /tftpboot


LABEL Ubuntu
kernel /tftpboot/images/ubuntu/vmlinuz
append boot=casper netboot=nfs nfsroot=192.168.3.20:/nfs-share/ubuntu initrd=/tftpboot/images/ubuntu/initrd.lz

Copy initrd and vmlinuz from Ubuntu live cd to tftpboot
#cd /nfs-share/ubuntu/casper
#cp vmlinuz initrd.lz /tftpboot/images/ubuntu/
Thats it. Run your pxe client and choose ubuntu.

Labels: , , , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home