How to PXE network boot Ubuntu Server 14.04 using NFS
I don't know if ISOs can be used directly for an NFS root. Here's how my setup is:
- Ubuntu ISO mounted at
/tftpboot/live/trusty
/tftpboot/live/trusty
exported for NFS.A
pxelinux.cfg
entry that looks like:LABEL live menu label Install ^Ubuntu Live KERNEL live/trusty/casper/vmlinuz.efi APPEND initrd=live/trusty/casper/initrd.lz root=/dev/nfs boot=casper netboot=nfs nfsroot=10.105.1.13:/tftpboot/live/trusty -- quiet splash
The NFS root here is the mountpoint specified earlier.
(Pretty much the same entry for Mint, with paths changed).
Related videos on Youtube
0xDEADBEEF
Real time C is my thing, a language unchanged since the 60s. C# keeps me bewildered - every year it's something different.
Updated on September 18, 2022Comments
-
0xDEADBEEF over 1 year
So far I have a PXE server based on Ubuntu Server 14.04 setup and running, configured to serve a Linux Mint 17 live CD and Ubuntu Server 14.04. The aim is to use NFS to serve install media around the network. The problem is the files are not being served by NFS.
To setup the basic PXE server on a clean Ubuntu Server 14.04 install I followed the instructions here: http://www.unixmen.com/install-configure-pxe-server-ubuntu-14-04-lts/
DHCP is running on my central IPCOP as per the instructions here: http://www.ipcops.com/phpbb3/viewtopic.php?f=4&t=17515
NFS has been setup to serve the /exports directory which contains the contents of the Linux Mint and Ubuntu Server install ISO images. The kernels and initial RAM disks for the two OS (Mint and Ubuntu) are copied into directories below /var/lib/tftpboot on the PXE server.
When the client boots over PXE it boots correctly and starts Ubuntu Server, but starts to download the required install files from the internet, not using the files on the NFS server.
The pxelinux.cfg/default file looks like this:
# D-I config version 2.0 include ubuntu-server-14.04-installer/amd64/boot-screens/menu.cfg default ubuntu-server-14.04-installer/amd64/boot-screens/vesamenu.c32 prompt 0 timeout 0 label ubuntu-server-14.04 kernel ubuntu-server-14.04-installer/amd64/linux append vga=normal root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.88.14:/exports/ubuntu-server-14.04 initrd=ubuntu-server-14.04-installer/amd64/initrd.gz quiet nosplash -- label linux-mint-17 kernel linux-mint-cinnamon-17/vmlinuz append vga=791 config root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.88.14:/exports/linux-mint-cinnamon-17 initrd=linux-mint-cinnamon-17/initrd.lz nosplash --
Any ideas what I'm missing?
-
umeboshi over 9 yearsYou probably need a preseed file to prepare the installer to use a local mirror. These entries may help: ` d-i mirror/http/hostname string 10.0.1.1 d-i mirror/http/directory string /debrepos/debian d-i apt-setup/use_mirror boolean false `
-