pxe批量安装Asinux操作系统(uefi)
一、介绍
本文是以Windows10为底层操作系统,运行VMware Workstation 虚拟化软件,在vmware上搭建一个
PXE启动Asianux7.3系统的配置环境并自动安装OS的操作文档。
二、所需软件
虚拟机OS镜像 Asianux 7.3_X86镜像
安装到服务器的OS镜像:Asianux7.3_x86_64系统镜像
虚拟化软件:VMware Workstation Pro
三、虚拟机UEFI PXE环境配置
1.关闭防火墙和selinux
2.搭建本地yum源
3.配置httpd网络源
# systemctl stop firewalld
# systemctl disable firewalld
# vim /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are
protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
# setenforce 0
# mkdir /mnt/dvd
# mount /dev/sr0 /mnt/dvd
# vim /etc/yum.repos.d/dvd.repo
[development] #此处id值必须为development,否则kickstart无法选择软件包
name=dvd
baseurl=file:///mnt/dvd
gpgcheck=0