Ubuntu 12.04.4 LTS PXE服务器设置

我正在build立一个Ubuntu 12.04.4 LTS PXE服务器。 所以这里是我进行的步骤:

  1. 设置我的DHCP服务器
  2. 安装我的TFTP服务器
  3. 设置我的NFS服务器
  4. 我把initrd.gz和内核放在tftp目录下。
  5. 我在tftp目录中创build了pxelinux.cfg目录并放置了一个默认文件。
  6. 我把文件放在nfs目录下。

安装不工作看起来像NFS不导出任何媒体安装文件。 这是我的默认文件的内容:

prompt 1 timeout 20 default install label install menu label ^Install Ubuntu kernel iso-image/ubuntu12.04amd64/install/vmlinuz append file=http://"server IP"/iso-image/ubuntu12.04amd64/preseed/preseed.seed interface=eth1 priority=critical locale=en_US.UTF-8 console-setup/ask_detect=false keyboard-configuration/layoutcode=us netboot=nfs nfsroot="Server IP":/srv/boot/iso-image/ubuntu12.04amd64 initrd=iso-image/ubuntu12.04amd64/install/netboot/ubuntu-installer/amd64/initrd.gz 

任何人都可以帮忙吗?

你必须了解pxelinux.cfg的内容

即线

 kernel iso-image/ubuntu12.04amd64/install/vmlinuz 

期望您在TFTP根path下创build了iso-image / ubuntu12.04amd64 / install / vmlinuz

也是线路

 append file=http://"server IP"/iso-image/ubuntu12.04amd64/preseed/preseed.seed interface=eth1 priority=critical locale=en_US.UTF-8 console-setup/ask_detect=false keyboard-configuration/layoutcode=us netboot=nfs nfsroot="Server IP":/srv/boot/iso-image/ubuntu12.04amd64 initrd=iso-image/ubuntu12.04amd64/install/netboot/ubuntu-installer/amd64/initrd.gz 

希望将“服务器IP”replace为服务器的“真实”IP,并且还在相应的NFS / HTTP / TFTP根目录下创build了预期的目录结构

另外如果你不使用preseed你应该擦除

 file=http://"server IP"/iso-image/ubuntu12.04amd64/preseed/preseed.seed 

等等

不幸的是启动PXE不只是剪切和粘贴一个pxelinux.cfg; 你必须仔细看到所有这些包括的选项。

编辑:你的NFS组件

 nfsroot="Server IP":/srv/boot/iso-image/ubuntu12.04amd64 

还需要有有效的IP地址也假定你正在输出保存/srv/boot/iso-image/ubuntu12.04amd64的目录