我试图使用位于pxelinux.cfg/default中的以下PXE配置在服务器上执行PXE引导:
default cli
label cli
menu label kickstart-installation
kernel ubuntu-installer/amd64/linux
append text ks=http://172.22.196.61/kickstart.cfg initrd=ubuntu-installer/amd64/initrd.gz noipv6 ksdevice=eth0 ip=172.22.196.200 netmask=255.255.255.0 gateway=172.22.169.254 dns=8.8.8.8 biosdevname=0在服务器上将图像拖到机器上。安装已经启动,但是ubuntu安装本身仍然试图获得一个DHCP地址(这是因为我们只使用静态ip地址)。另外,由于某些原因,文本参数不被接受,因为安装仍然发生在GUI中。
我遵循了启动服务器的手册:https://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-kickstart2-startinginstall.html
实际的PXE引导是一个Ubuntu14.04,从这个位置:http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/installer-amd64/current/images/netboot/
发布于 2016-06-07 09:07:07
感谢Pat提醒我,每个发行版都使用其他设置参数,而不仅仅是内核参数。
显然,内核参数是通过cat /proc/cmdline中看到的,但是debian-installer并没有使用内核参数来启动设置。
它正在以这种格式使用netcfg:
default cli
label cli
menu label kickstartinstall
kernel ubuntu-installer/amd64/linux
append ks=http://172.22.196.61/kickstart.cfg initrd=ubuntu-installer/amd64/initrd.gz hostname=test-machine domain=test.local interface=eth0 netcfg/get_ipaddress=172.22.196.200 netcfg/get_netmask=255.255.255.0 netcfg/get_gateway=172.22.196.254 netcfg/get_nameservers=8.8.8.8 netcfg/disable_dhcp=true如下所示:http://blog.loftninjas.org/2008/07/17/booting-debian-installer-with-a-static-ip-address/
发布于 2016-06-07 06:42:21
即使CentOS和Ubuntu都使用了启动技术,但这并不意味着它们的启动参数(追加)是相同的。请考虑内核读取一些附加参数,但其他参数则由相应的initrd init脚本(和后代)读取,因此您可以看到从一个发行版到另一个发行版的差异。
您应该查找Ubuntu特定的参数。也就是说,Ubuntu忽略变量text,变量ip作为参数bootp或dhcp,而不是IP地址。
对于许多Linux发行版的PXE参数,您可以将其作为瑟瓦氏网站的起点。
https://serverfault.com/questions/782252
复制相似问题