为什么Ubuntu Server要求从PXE安装时插入CD-ROM?

我设置了一个托管Ubuntu Desktop和Ubuntu Server的PXE服务器。

  • Ubuntu Desktop已从PXE成功安装。

  • Ubuntu Server似乎成功加载了vmlinuzinitrd.gz ,请求语言,然后是位置,然后是键盘布局,最后抱怨它无法挂载CD-ROM:

无法安装您的安装CD-ROM。这可能意味着CD-ROM不在驱动器中。如果是这样,您可以插入它并再试一次。重试安装CD-ROM? (是)(否)

/var/lib/tftpboot/pxelinux.cfg/default的内容如下:

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

是什么原因解释了它要求CD-ROM以及如何避免它?

尝试PXE启动14.04 server-amd64光盘时遇到同样的问题。 我终于注意到我使用了错误的initrd.gz。 确保您使用光盘上/ install / netboot / ubuntu-installer / amd64中的那个。 我的文件大小(14.04,而不是14.04.1)是: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 

服务器版本需要不同的附加

 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="" 

注意:此附加内容取自Serva,您应该将其自定义为您的特定目录结构,还要考虑它使用HTTP而不是NFS。