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)

Refresh nfs entries

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.

UPDATE
After installing Ubuntu if your network is not working then you need to modify interface settings in /etc/network/interfaces. Change it to

auto eth0
iface eth0 inet dhcp

#DHCP if you are taking ip from DHCP server else mention it as static and provide ip address.

PXE booting Lucid Lynx Ubuntu -10.04

4 thoughts on “PXE booting Lucid Lynx Ubuntu -10.04

Leave a Reply

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