1 pxe 环境



引导的 iso:isoft-serveros-aarch64-oe1-v5.1(4.19.90-2003.4.0.0036.oe1.aarch64)

物理服务器:浪潮 Inspur

2 dhcpd.conf 配置

[root@localhost isoft-5.1-arm]# vim /etc/dhcp/dhcpd.conf

default-lease-time 43200;
max-lease-time 345600;
option space PXE;
option arch code 93 = unsigned integer 16;

option routers;
option subnet-mask;
option broadcast-address;
option time-offset -18000;

ddns-update-style none;
allow client-updates;
allow booting;
allow bootp;

if option arch = 00:07 or arch = 00:09 {
        filename "x86/bootx64.efi";
} else   {
        filename "arm/grubaa64.efi";
shared-network works {
  subnet netmask {
          range dynamic-bootp;

3 grub.cfg 配置

[root@localhost tftpboot]# vim arm/grub.cfg

set default="0"

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus

set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2

set timeout=60
### END /etc/grub.d/00_header ###

search --no-floppy --set=root -l 'iSoftServerOS-5.1-aarch64'

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Install iSoftServerOS 5.1 with GUI mode' --class red --class gnu-linux --class gnu --class os {
#        linux /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=iSoftServerOS-5.1-aarch64 ro inst.geoloc=0 selinux=0
#        initrd /images/pxeboot/initrd.img
        linux /arm51/vmlinuz ip=dhcp method= ks=
        initrd /arm51/initrd.img
#menuentry 'Install iSoftServerOS 5.1 for ZF with GUI mode' --class red --class gnu-linux --class gnu --class os {
#       linux /arm51-zf/vmlinuz ip=dhcp  method=
#       initrd /arm51-zf/initrd.img

4 ks.cfg 配置

[root@localhost isoft-5.1-arm]# vim anaconda-ks.cfg

lang zh_CN.UTF-8

# Network information
network  --bootproto=dhcp --device=eno1 --ipv6=auto --no-activate
network  --bootproto=dhcp --device=eno2 --ipv6=auto
network  --bootproto=dhcp --device=eno3 --ipv6=auto
network  --bootproto=dhcp --device=eno4 --ipv6=auto
network  --bootproto=dhcp --device=enp22s0f0 --ipv6=auto
network  --bootproto=dhcp --device=enp22s0f1 --ipv6=auto
network  --bootproto=dhcp --device=enp22s0f2 --ipv6=auto
network  --bootproto=dhcp --device=enp22s0f3 --ipv6=auto
network  --hostname=localhost.localdomain
# Root password
rootpw --iscrypted $6$afv9h6qEnQTq3WSl$GHtOmvLkHrBin8vTWLbRaa2r.Ur9mUQR7XypWRoEWZYCwwJ2MnuMPxpNiNLSG1vSa5qBODHJcqIUUWkHm0IVl.
# SELinux configuration
selinux --disabled
# X Window System configuration information
xconfig  --startxonboot
# Run the Setup Agent on first boot
firstboot --enable
# System services
services --enabled="chronyd"
# System timezone
timezone Asia/Shanghai --isUtc
user --groups=wheel --name=testuser --password=$6$9SyzoTjQU2syj2Bk$SQ4WZAV/go3KeX6rJN3cieNpY4l7aU2wHxad75yWlbKBh.ithhrU/jfA09JUq7cb10D0QTCwtClmItfg/N47t. --iscrypted --gecos="testuser"
# Disk partitioning information
part /boot/efi --fstype="efi" --ondisk=sda --size=200 --fsoptions="umask=0077,shortname=winnt"
part pv.521 --fstype="lvmpv" --ondisk=sda --size=913974
part /boot --fstype="ext4" --ondisk=sda --size=1024
volgroup isoftserveros --pesize=4096 pv.521
logvol /home --fstype="xfs" --size=756272 --name=home --vgname=isoftserveros
logvol swap --fstype="swap" --size=4096 --name=swap --vgname=isoftserveros
logvol / --fstype="xfs" --size=153600 --name=root --vgname=isoftserveros



pwpolicy root --minlen=8 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=8 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=8 --minquality=1 --notstrict --nochanges --notempty