无人值守批量安装Linux操作系统

发表于:2013-4-23 10:14

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:susansan    来源:51Testing软件测试网采编

分享:

  配置tftp服务器

  1、安装tftp服务器

  # vim /etc/xinetd.d/tftp

  1. service tftp 
  2.         socket_type = dgram
  3.         protocol                = udp
  4.         wait                    = yes
  5.         user                    = root
  6.         server                  = /usr/sbin/in.tftpd 
  7.         server_args             = -s /tftpboot 
  8.         disable                 = no (yes改为no) 
  9.         per_source              = 11
  10.         cps                     = 100
  11.         flags                   = IPv4
  12. # service xinetd restart 
  13. # lsof -i:69 
  14. COMMAND  PID USER   FD   TYPE DEVICE SIZE NODE NAME 
  15. xinetd  2197 root    5u  IPv4   7277       UDP *:tftp

  2、准备好引导镜像

# yum install syslinux -y
# cp /usr/lib/syslinux/pxelinux.0 /tftpboot/

# mkdir /tftpboot/pxelinux.cfg 《--安装条目的配置目录

  安装界面需要的特殊镜像,准备引导配置文件

# cp 光盘镜像/isolinux/*  /tftpboot/


# mv /tftpboot/isolinux.cfg  /tftpboot/pxelinux.cfg/default

# ls /tftpboot/
boot.cat     isolinux.bin   options.msg   rescue.msg
boot.msg     param.msg     splash.lss
general.msg  pxelinux.0    TRANS.TBL
initrd.img   memtest        pxelinux.cfg  vmlinuz


# ls /tftpboot/pxelinux.cfg/
default

32/3<123>
重磅发布,2022软件测试行业现状调查报告~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计

法律顾问:上海漕溪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2023
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号