目录
kickstart+DHCP+NFS+TFTP+PXE
安装详细步骤
执行 PXE--kickstart 安装需要的设备为
用到的 kickstart 工具, 依赖于 X Windows, 所以要提前安装好, XWindows 及 GNOME 并重启系统
修改 / etc/inittab 配置文件
重启系统 reboot
启动图像化
上传 centos7.4.iso 至 /usr/loca/src mkdir -p mnt/cdrom
安装 dhcp
创建 Apache 目录 mkdir -p /var/html/www
安装 TFTP
配置 tftp
重启 xinetd 进程
- http://www.178linux.com/82613
- https://www.osyunwei.com/archives/7577.html
- https://blog.51cto.com/darren88/1704172
- https://blog.51cto.com/433266/1893704
- https://blog.51cto.com/hypocritical/1694976
- http://www.linuxmysql.com/25/2017/672.htm
- https://blog.slogra.com/
- https://www.zyops.com/autoinstall-kickstart/
- kickstart+DHCP+NFS+TFTP+PXE
安装详细步骤
执行 PXE--kickstart 安装需要的设备为
DHCP 服务器
TFTP 服务器
Kickstart 所生成的 ks.cfg 配置文件
一台存放系统安装文件的服务器. 如 NFS,HTTP, 或 FTP 服务器
一台带有 PXE 支持网卡的主机
用到的 kickstart 工具, 依赖于 X Windows, 所以要提前安装好, XWindows 及 GNOME 并重启系统
- yum grouplist | more
- yum -y groupinstall 'X Window System'
- yum -y groupinstall "GNOME Desktop" "Graphical Administration Tools"
修改 / etc/inittab 配置文件
id:5:initdefault
重启系统 reboot
启动图像化
start
上传 centos7.4.iso 至 /usr/loca/src mkdir -p mnt/cdrom
mount -o loop centos7.4.iso /mnt/cdrom
安装 dhcp
- rpm -q dhcp
- yum -y install dhcp
创建 Apache 目录 mkdir -p /var/HTML/www
cp -rf /mnt/cdrom/*/var/HTML/www/
安装 TFTP
yum -y install tftp-server
配置 tftp
- VIM /etc/xinetd.d/tftp
- # default: off
- # description: The tftp server serves files using the trivial file transfer # protocol. The tftp protocol is often used to boot diskless # workstations, download configuration files to network-aware printers, # and to start the installation process for some operating systems.
- service tftp
- {
- socket_type = dgram
- protocol = udp
- wait = yes
- user = root
- server = /usr/sbin/in.tftpd
- server_args = -s /var/lib/tftpboot
- disable = no #
- per_source = 11
- cps = 100 2
- flags = IPv4
- }
- yum -y install xinetd*
重启 xinetd 进程
来源: http://www.bubuko.com/infodetail-3008136.html