3

I set up a PXE server which hosts both Ubuntu Desktop and Ubuntu Server.

  • Ubuntu Desktop is installed successfully from PXE.

  • Ubuntu Server seems to successfully load vmlinuz and initrd.gz, asks for the language, then the location, then the keyboard layout, and finally complains that it can't mount the CD-ROM:

Your installation CD-ROM couldn't be mounted. This probably means that the CD-ROM was not in the drive. If so you can insert it and try again. Retry mounting the CD-ROM? (Yes) (No)

The content of /var/lib/tftpboot/pxelinux.cfg/default is the following:

default ubuntu-installer/amd64/boot-screens/vesamenu.c32
menu title Ubuntu setup
label ubuntu-14.04-desktop-amd64
    menu label ubuntu-14.04-desktop-amd64
    kernel ubuntu-14.04-desktop-amd64/vmlinuz.efi
    append initrd=ubuntu-14.04-desktop-amd64/initrd.lz root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.1.41:/exports/ubuntu-14.04-desktop-amd64 splash --
label ubuntu-14.04-server-amd64
    menu label ubuntu-14.04-server-amd64
    kernel ubuntu-14.04-server-amd64/vmlinuz
    append initrd=ubuntu-14.04-server-amd64/initrd.gz root=/dev/nfs boot=install netboot=nfs nfsroot=192.168.1.41:/exports/ubuntu-14.04-server-amd64 splash --

What explains the fact that it requests the CD-ROM and how to avoid it?

2

I had the same problem trying to PXE boot the 14.04 server-amd64 disc. I finally noticed I had used the wrong initrd.gz. Make sure you are using the one from /install/netboot/ubuntu-installer/amd64 on the disc. The filesize for mine (14.04, not 14.04.1) is: 21256771.

Here is my pxeconfig entry:
   LABEL Ubuntu 14.04 Server amd64
        kernel http://172.20.1.9/tftpboot/Ubuntu/14.04/server-amd64/vmlinuz
        append boot=casper netboot=nfs nfsroot=172.20.1.9:/images/Ubuntu/14.04/server-amd64/ initrd=http://172.20.1.9/tftpboot/Ubuntu/14.04/server-amd64/initrd.gz ip=dhcp --
        MENU LABEL Ubuntu 14.04 Server amd64
        TEXT HELP
    Ubuntu Server 14.04 amd64 with NFS root
    ENDTEXT
1

The server version needs a different append

i.e.

append   = initrd=NWA_PXE/$HEAD_DIR$/install/netboot/ubuntu-installer/amd64/initrd.gz vga=788 mirror/country=manual mirror/http/hostname=$IP_BSRV$ mirror/http/directory=/$HEAD_DIR$ mirror/http/proxy=""

Note: this append is taken from Serva, you should customize it to your particular directory structure, also consider it uses HTTP instead of NFS.

protected by Community Mar 16 '17 at 21:06

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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