Kickstart+tftp多系统自动部署:
kickstart+tftp安装配置略
vi /var/lib/tftpboot/pxelinux.cfg/default
label 1. Install Ubuntu Server 14.04.3 x86_64
kernel ubuntu-installer/amd64/linux
append ks=http://10.0.0.2/ks/ks.cfg vga=788 initrd=ubuntu-installer/amd64/initrd.gz live-installer/net-image=http://10.0.0.2/ks/install/filesystem.squashfs --quiet
label 2. RHEL 6.6 x86_64
kernel RHEL66/vmlinuz
append ks=http://10.0.0.2/ks/ksrhel66.cfg initrd=RHEL66/initrd.img
:wq
使用Ubuntu的界面(如下2行)为图像化界面(rsync -av --progress /root/iso/install/netboot/* /var/lib/tftpboot/),带有ubuntu相关项,可通过修改配置文件调整
include ubuntu-installer/amd64/boot-screens/menu.cfg
default ubuntu-installer/amd64/boot-screens/vesamenu.c32
也可不用Ubuntu相关界面,命令行手输,没图像化方便
命令行的话建议一定要启用boot.msg文件,方便输入提示
另外手输的话建议label处尽量精简,方便输入
vi /var/lib/tftpboot/pxelinux.cfg/default
display boot.msg
label ubtserver14043
kernel ubuntu-installer/amd64/linux
append ks=http://10.0.0.2/ks/ks.cfg vga=788 initrd=ubuntu-installer/amd64/initrd.gz live-installer/net-image=http://10.0.0.2/ks/install/filesystem.squashfs --quiet
label RHEL66
kernel RHEL66/vmlinuz
append ks=http://10.0.0.2/ks/ksrhel66.cfg initrd=RHEL66/initrd.img
:wq
vi /var/lib/tftpboot/boot.msg
ubtserver14043 --> Ubuntu Server 14.04.3 x86_64
RHEL66 --> Redhat 6.6 x86_64
:wq
转载于:https://blog.51cto.com/yangzhiming/2047317