-- MikeGore - 07 Mar 2013

PXE Ubuntu Live boot images on ASIMOV

NOTE 11 Mar 2013 I am moving the sections from See https://cs.uwaterloo.ca/twiki/view/CF/PXEBootFilesExample#Liveboot_and_Network_Installers to here

Resources

tftpbootiso service

  • What: NFS exports, or unexports, any Live Boot Images in /tftpboot/pxes/iso
    • Modifies /etc/exports and uses exportfs to refresh the NFS
  • Usage: /etc/init.d/tftpbootiso [start|stop|restart|status]
  • This service automatically scans /tftpboot/pxes/iso for Ubuntu Desktop images

tftpbootiso installation from this page

    • Download: tftpbootiso
    • cp -p tftpbootiso /etc/init.d/tftpbootiso
    • chmod 755 /etc/init.d/tftpbootiso
    • update-rc.d tftpbootiso defaults 30 80

tftpbootiso installation from ASIMOV

  • Location: /home/cscf-adm/src/tftpbootiso.rc
  • Install:
    • sudo bash
    • cd /home/cscf-adm/src
    • make install
      • Note: this installs the service as /etc/init.d/tftpbootiso

tftpbootiso usage

  • Usage:
    • /etc/init.d/tftpbootiso start - mounts and exports all Ubuntu Desktop Live images from /tftpboot/pxes/iso
    • /etc/init.d/tftpbootiso stop - umount and unexports all Ubuntu Desktop Live images
    • /etc/init.d/tftpbootiso status - Display Ubuntu Desktop Live images mount and export status
    • /etc/init.d/tftpbootiso restart - stop and start actions

  • Example output:
NFS export: /tftpboot/pxes/iso/raring-desktop-amd64+mac 192.168.1.1/24(ro,sync,no_subtree_check,no_root_squash)
NFS export: /tftpboot/pxes/iso/raring-desktop-amd64 192.168.1.1/24(ro,sync,no_subtree_check,no_root_squash)
NFS export: /tftpboot/pxes/iso/raring-desktop-i386 192.168.1.1/24(ro,sync,no_subtree_check,no_root_squash)
NFS export: /tftpboot/pxes/iso/ubuntu-12.04-desktop-amd64 192.168.1.1/24(ro,sync,no_subtree_check,no_root_squash)
NFS export: /tftpboot/pxes/iso/ubuntu-12.04-desktop-i386 192.168.1.1/24(ro,sync,no_subtree_check,no_root_squash)
NFS export: /tftpboot/pxes/iso/ubuntu-12.10-desktop-amd64 192.168.1.1/24(ro,sync,no_subtree_check,no_root_squash)
NFS export: /tftpboot/pxes/iso/ubuntu-12.10-desktop-i386 192.168.1.1/24(ro,sync,no_subtree_check,no_root_squash)

get_iso_daily

  • Location: /home/cscf-adm/scripts/get_iso_daily
  • What: Downloads Daily ISO snapshots of Ubuntu and updates PXE Live Boot Images
  • Download: get_daily_iso
  • Usage: /home/cscf-adm/scripts/get_daily_iso
    • Calls /etc/init.d/tftpbootiso restart after downloads to refresh NFS
  • Example output:
=====================================
Fetching raring from http://cdimage.ubuntu.com/daily-live/current/
Daily Release Title:      Ubuntu 13.04 (Raring Ringtail) Daily Build
Daily Release Name:       Raring Ringtail
Daily Release short name: raring
Start: Fri Mar 8 10:07:07 EST 2013
=====================================
=====================================
Fetching raring-desktop-amd64.iso from http://cdimage.ubuntu.com/daily-live/current/
wget -q -nH -N http://cdimage.ubuntu.com/daily-live/current//raring-desktop-amd64.iso
Fetching raring-desktop-amd64.list from http://cdimage.ubuntu.com/daily-live/current/
wget -q -nH -N http://cdimage.ubuntu.com/daily-live/current//raring-desktop-amd64.list
Fetching raring-desktop-amd64.manifest from http://cdimage.ubuntu.com/daily-live/current/
wget -q -nH -N http://cdimage.ubuntu.com/daily-live/current//raring-desktop-amd64.manifest
Fetching raring-desktop-amd64.metalink from http://cdimage.ubuntu.com/daily-live/current/
wget -q -nH -N http://cdimage.ubuntu.com/daily-live/current//raring-desktop-amd64.metalink
Copy raring-desktop-amd64.iso over to liveboot area on ASIMOV
rsync -au raring-desktop-amd64.iso /tftpboot/pxes/iso
=====================================
Fetching raring-desktop-i386.iso from http://cdimage.ubuntu.com/daily-live/current/
wget -q -nH -N http://cdimage.ubuntu.com/daily-live/current//raring-desktop-i386.iso
Fetching raring-desktop-i386.list from http://cdimage.ubuntu.com/daily-live/current/
wget -q -nH -N http://cdimage.ubuntu.com/daily-live/current//raring-desktop-i386.list
Fetching raring-desktop-i386.manifest from http://cdimage.ubuntu.com/daily-live/current/
wget -q -nH -N http://cdimage.ubuntu.com/daily-live/current//raring-desktop-i386.manifest
Fetching raring-desktop-i386.metalink from http://cdimage.ubuntu.com/daily-live/current/
wget -q -nH -N http://cdimage.ubuntu.com/daily-live/current//raring-desktop-i386.metalink
Copy raring-desktop-i386.iso over to liveboot area on ASIMOV
rsync -au raring-desktop-i386.iso /tftpboot/pxes/iso
=====================================
Fetching raring-desktop-amd64+mac.iso from http://cdimage.ubuntu.com/daily-live/current/
wget -q -nH -N http://cdimage.ubuntu.com/daily-live/current//raring-desktop-amd64+mac.iso
Fetching raring-desktop-amd64+mac.list from http://cdimage.ubuntu.com/daily-live/current/
wget -q -nH -N http://cdimage.ubuntu.com/daily-live/current//raring-desktop-amd64+mac.list
Fetching raring-desktop-amd64+mac.manifest from http://cdimage.ubuntu.com/daily-live/current/
wget -q -nH -N http://cdimage.ubuntu.com/daily-live/current//raring-desktop-amd64+mac.manifest
Fetching raring-desktop-amd64+mac.metalink from http://cdimage.ubuntu.com/daily-live/current/
wget -q -nH -N http://cdimage.ubuntu.com/daily-live/current//raring-desktop-amd64+mac.metalink
Copy raring-desktop-amd64+mac.iso over to liveboot area on ASIMOV
rsync -au raring-desktop-amd64+mac.iso /tftpboot/pxes/iso
=====================================
End: Fri Mar  8 10:23:21 EST 2013
=====================================

(NFS remount deleted - see tftpbootiso example)

update_iso_nfs_pxe

update_iso_nfs_pxe

  • Location: /home/cscf-adm/scripts/update_iso_nfs_pxe
  • What: Does the following 4 tasks
    1. ) Gets Ubuntu Daily ISO Release * /tftpboot/pxes/get_daily_iso
    2. ) Remounts ISO images: * service mount_cds restart
    3. ) Rebuilds PXE boot loaders for all Ubuntu ISO images * /tftpboot/pxes/mk_ubuntu
    4. ) Send Email on Failure

Files

Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatEXT get_daily_iso manage 2.1 K 2013-03-08 - 12:48 MikeGore Download Daily ISO Snapshots of Ubuntu
Unknown file formatEXT tftpbootiso manage 3.2 K 2013-03-08 - 12:49 MikeGore tftpbootiso - export and mount live Ubuntu images via NFS
Topic revision: r6 - 2013-05-01 - MikeGore
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback