本文通过搭建自动化安装服务器,实现openEuler22.03LTS SP1在虚拟机、物理机上的pxe启动自动安装。
一、环境要求
使用kickstart进行openEuler系统的全自动化安装的环境要求如下:
openEuler22.03LTS SP1物理机或虚拟机1台,用于部署自动化安装环境,其上安装以下功能软件(openEuler22.03LTS SP1光盘镜像中自带)。
httpd:部署kickstart文件和系统安装文件。
tftp:提供vmlinuz和initrd文件。
dhcpd/pxe:提供DHCP服务。
ISO:openEuler-22.03-LTS-SP1-aarch64-dvd.iso,提供安装源。
二、安装配置
-
关闭服务器网络防火墙
# systemctl stop firewalld
# iptables -F
-
安装相关服务
-
安装dhcp服务(通常最小化安装的情况下也已安装):
# dnf install dhcp
-
安装tftp-server:
# dnf install tftp-server
Last metadata expiration check: 0:05:53 ago on 2023年02月21日 星期二 10时10分23秒.
Dependencies resolved.
=========================================================================================================================================================
Package Architecture Version Repository Size
=========================================================================================================================================================
Installing:
tftp-server