I need to make a emergency PXE bootloader for a LIVECD (not the ubuntu netboot small cd, but rather a desktop livecd to boot from the command line). Will this work:

# Create a cpio archive of just the ISO and append it to the initrd image. 
( echo "ubuntu-13.10-desktop-amd64.iso" | cpio -H newc --quiet -o ) |  gzip -9 |   cat ubuntu-13.10-desktop-amd64.iso_EXTRACTED/casper/initrd0.img - > tftpboot/initrd0.img

# Kernel image.
cp ubuntu-13.10-desktop-amd64.iso_EXTRACTED/isolinux/vmlinuz0 tftpboot/vmlinuz0

# pxelinux bootloader part:
LABEL pxeboot
    KERNEL vmlinuz0
    APPEND initrd=initrd0.img root=/ubuntu-13.10-desktop-amd64.iso             rootfstype=iso9660 rootflags=loop

What am i doing wrong?

  • Does anyone have any guidance on this? :(
    – Bran
    Jan 27, 2014 at 23:37
  • anyone? Sorry for bumping
    – Bran
    Feb 3, 2014 at 7:24

1 Answer 1


That configuration loads the whole image through a slow protocol like TFTP.

  • Try other option using NFS protocol.

    apt-get install nfs-kernel-server
    mkdir /mnt/ubuntu
    mount -o loop ubuntu-13.10-desktop-amd64.iso /mnt/ubuntu-desktop-cd
  • Share it through NFS

    sudo nano /etc/exports

    Add this line

  • Start NFS service

    service nfs-kernel-server restart
  • In APPEND line, replace root, rootfstype and rootfstype with:

    netboot=nfs nfsroot=

Note: I used these IP's just as an example. is IP of the NFS server Is local network range.

See https://help.ubuntu.com/community/Installation/LocalNet#A_variation:_Booting_the_.22Live_CD.22_image

  • I've tried this to boot the avlinux livecd over PXE. The initial boot works, but then it dies with an kernel exception. I suspect the livecd must have some explicit support for this, or it would not work.
    – markus_b
    May 13, 2014 at 11:13
  • @markus_b, have you tried booting avlinux with a ubuntu kernel?
    – user.dz
    Sep 26, 2014 at 6:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.