如何使用NFS PXE网络启动Ubuntu Server 14.04

到目前为止,我有一个基于Ubuntu Server 14.04设置和运行的PXE服务器,配置为服务于Linux Mint 17 live CD和Ubuntu Server 14.04。 目的是使用NFS来为网络周围的安装媒体提供服务。 问题是NFS没有提供文件。

要在干净的Ubuntu Server 14.04安装上设置基本PXE服务器,我按照以下说明操作: http : //www.unixmen.com/install-configure-pxe-server-ubuntu-14-04-lts/

根据以下说明,DHCP在我的中央IPCOP上运行: http ://www.ipcops.com/phpbb3/viewtopic.php?f = 4&t = 17515

NFS已设置为服务于/ exports目录,该目录包含Linux Mint和Ubuntu Server安装ISO映像的内容。 两个OS(Mint和Ubuntu)的内核和初始RAM磁盘将复制到PXE服务器上/ var / lib / tftpboot下的目录中。

当客户端通过PXE引导时,它会正确引导并启动Ubuntu Server,但会开始从Internet下载所需的安装文件,而不是使用NFS服务器上的文件。

pxelinux.cfg / default文件如下所示:

# DI 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 -- 

我缺少什么想法?

我不知道ISO是否可以直接用于NFS根目录。 以下是我的设置:

  1. Ubuntu ISO安装在/tftpboot/live/trusty
  2. /tftpboot/live/trusty导出为NFS。
  3. 一个pxelinux.cfg条目,如下所示:

     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 

    这里的NFS根是先前指定的挂载点。

(与Mint几乎相同的条目,路径已更改)。