自动化网络部署

  • 介绍
本文将会介绍通过网络实现自动部署的技术。
  • 流程
自动化网络部署_第1张图片
  • dhcp配置
ddns-update-style none; subnet 192.168.1.0 netmask 255.255.255.0{ range dynamic-bootp 192.168.1.184 192.168.1.185; host suse { hardware ethernet 00:E0:81:E6:F2:72; fixed-address 192.168.1.184; } next-server 192.168.1.13; filename "pxelinux.0"; } tailf /var/lib/dhcpd/dhcpd.less 查看地址分配情况 修改配置文件/etc/sysconfig/dhcpd,指定dhcp服务使用的网卡。(DHCPDARGS=eth0)
  • kickstart配置文件
[codesyntax lang="php"]
bootloader
keyboard us
lang zh_CN.UTF-8
rootpw 111111
timezone Asia/Shanghai

%iso_path_holder%
network --onboot yes --device eth0 --bootproto=dhcp
selinux --disabled
zerombr
text
install

clearpart --all --initlabel
part /boot --fstype="ext3" --size=128
part swap  --fstype="swap" --size=4096
part / --fstype="ext3" --grow --size=1

#reboot

%pre
%end

%packages --ignoremissing
@base
OpenIPMI
%end

%post
%end
[/codesyntax] 以下是PXE启动时可能发生的错误代码: PXE-EA0:Network boot canceled by keystroke用户在DHCP/创建/TFTP过程中按了"Esc"或"Ctrl C"键
  • 参考
ubuntu帮助链接:https://help.ubuntu.com/community/PXEInstallServer suse帮助链接:http://cn.opensuse.org/%E7%94%A8PXE%E5%BC%95%E5%AF%BC%E5%AE%89%E8%A3%85SUSE#.E5.90.AF.E5.8A.A8.E5.9B.BE.E5.BD.A2.E5.AE.89.E8.A3.85.E7.B3.BB.E7.BB.9F https://www.suse.com/zh-cn/documentation/sles11/singlehtml/book_sle_deployment/book_sle_deployment.html http://www.syslinux.org/wiki/index.php/PXELINUX

你可能感兴趣的:(网络,部署,自动化,DHCP,安装系统)