Ubuntu

From Leo's Notes
Last edited on 30 December 2021, at 02:23.

Tasks[edit | edit source]

PXE Boot[edit | edit source]

This guide will setup Ubuntu 10.10 PXE live cd boot using NFS.

1. Setup your standard PXE server (tftp + dhcp) such that your files are under /tftpboot. Under CentOS, this is accomplished by

# yum install tftp tftp-server xinetd syslinux
  • tftp/tftp-server is for the tftp server which is required to boot off PXE
  • xinetd is the super server which launches the tftp server when requested
  • syslinux contains pxelinux.0. This can also be found on some linux distribution images

2. Download the Ubuntu 10.10 iso. 3. Either mount the iso and extract the files to /tftpboot/images/ubuntu1010 or mount the iso directly to /tftpboot/images/ubuntu1010

mount -o loop ubuntu-10.10-desktop-i386.iso  /mnt
cp -a /mnt/. /tftpboot/images/ubuntu1010
umount /mnt

4. Add the following entry to your /tftpboot/pxelinux.cfg/default

label 2
        kernel /images/ubuntu1010/casper/vmlinuz
        append root=/dev/nfs boot=casper netboot=nfs nfsroot=10.1.1.6:/tftpboot/images/ubuntu1010 initrd=/images/ubuntu1010/casper/initrd.lz quiet splash --

5. Add the following entry to your /etc/exports

/tftpboot/images/ubuntu1010 10.1.1.0/24(async,no_root_squash,no_subtree_check,ro)
  • /tftpboot/images/ubuntu1010 – the location which is to be shared via NFS
  • 10.1.1.0/24 – the IPs which are allowed to access this share. Change this to match your network IPs.

6. Start/restart your NFS server 7. Your PXE boot should now work. When greeted with your pxe screen, enter 2 (or whatever was set as your label in the pxe config file), and ubuntu should should begin booting.