Winning the bid of Kirin advanced server operating system software (ARM64 version) V7.0
PXE network boot system manual
Server: centos 7.6
Client: Neokylin Linux Advanced Server release V7.0
(Chromium)-aarch64 Build06.08.lic/20191206
catalog
1, server installation and configuration
1. Install dhcp service and modify configuration file
1.1. yum installation
1.2 modify configuration file
1.3 start up service
2. Install tftp service and modify configuration file
2.1. yum installation
2.2 modify configuration file
2.3 copying kernel files
2.4 modify grub content
2.5 add permission to start service
3. Install http service and modify configuration file
3.1. yum installation
3.2 create directory, copy ISO, add permission
3.3 start up service
4. Configure kickstart
4.1 create directory copy file
2, client operation and installation effect
1. Change the boot mode to network boot in bios
2. Installation process
1, server installation and configuration
1. Install dhcp service and modify configuration file
1.1 package using yum
yum install dhcp
1.2 modify configuration file
vim /etc/dhcp/dhcpd.conf ddns-update-style interim; ignore client-updates; filename "grubaa64.efi"; next-server 192.168.4.151; subnet 192.168.4.0 netmask 255.255.255.0 { #option routers $ROUTER; #option subnet-mask $NETMASK; range dynamic-bootp 192.168.4.1 192.168.4.100; default-lease-time 21600; max-lease-time 43200; }
1.3 start up services
systemctl start dhcpd systemctl enabled dhcpd
2. Install tftp service and modify configuration file
2.1 yum installation
yum install tftp tftp-server xinetd
2.2 modify configuration file
Modify vim /etc/xinetd.d/tftp, change disable to no
2.3 copying kernel files
Mount the image to mnt for copying
cp -rf /mnt/images/pxeboot/* /var/lib/tftpboot/ cp -rf /mnt/EFI/BOOT/grub*.efi /var/lib/tftpboot
2.4 modify grub as follows
cat /var/lib/tftpboot/grub.cfg set default="0" function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } load_video set gfxpayload=keep insmod gzio insmod part_gpt insmod ext2 set timeout=10 ### BEGIN /etc/grub.d/10_linux ### menuentry 'Install Linux Advanced Server V7 HTTP' --class red --class gnu-linux --class gnu --class os { set root=(tftp,192.168.4.151) linux /vmlinuz ro inst.geoloc=0 console=ttyAMA0 console=tty0 rd.iscsi.waitnet=0 ip=dhcp inst.repo=http://192.168.4.151/kylin inst.ks=http://192.168.4.151/ks/kylin-ks.cfg rd.debug rd.udev.debug systemd.log_level=debug initrd /initrd.img }
2.5 add permission to start service
chmod -R 755 /var/lib/tftpboot systemctl start xinetd systemctl start tftp
3. Install http service and modify configuration file
3.1 yum installation
yum install httpd
3.2 create directory, copy ISO, add permission
mkdir /var/www/html/kylin/ rsync -a /mnt/ /var/www/html/kylin/ chmod -R 755 /var/www/html/kylin cp -f /var/lib/tftpboot/grub.cfg /var/www/html/kylin/EFI/BOOT/grub.cfg
3.3 start up services
systemctl start httpd
4. Configure kickstart
4.1 create directory copy file
mkdir /var/www/html/ks cp -f /tmp/kylin-ks.cfg /var/www/html/ks/(cfg Documents written by hand or produced in Chengdu) chmod -R 755 /var/www/html/ks cat kylin-ks.cfg # Installation disks ignoredisk --only-use=sda autopart --type=lvm # Partition clearing information clearpart --drives=sda --all # Use graphical install graphical #autostep --autoscreenshot # Keyboard layouts keyboard --vckeymap=cn --xlayouts='cn' # System language lang zh_CN.UTF-8 # Network information network --bootproto=dhcp --device=enp125s0f0 --ipv6=auto --activate network --hostname=localhost.localdomain # Run the Setup Agent on first boot firstboot --enable # X Window System configuration information xconfig --startxonboot # System services services --enabled="chronyd" # System timezone timezone Asia/Shanghai --utc --nontp user --name=jingxiang --password=$6$Cuuh6ji7SRO2s4sC$/bs.6YK.4G5F.gXRju4vdj4z1FCc6k8ic.omk9FQN.C12lbYTzcwLzjWBs0ejyFg2wThjqm0w81jrc7HXf60N/ --iscrypted --gecos="jingxiang" # Environment groups # Minimum install # Server / infrastructure server # File and Print Server # Basic Web Server # Virtualization Host # Server with UKUI GUI / server with UKUI GUI %packages @^graphical-server-environment @base @core @desktop-debugging @dial-up @fonts @gnome-desktop @guest-agents @guest-desktop-agents @hardware-monitoring @input-methods @internet-browser @multimedia @print-client @x11 kexec-tools wget %end # Root password rootpw --iscrypted $6$g3sB2zTlLyrEKn14$wT8PLK7yc.0Ph2STBd2tHZnfCxj9wfOhDgg5lUd1ZN8LVRc0j4cMRNfQncoGXVbnaw3.qD7b6m8yekv6fgHFg. # Password policies %anaconda 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 %end reboot %post # Get kyinfo #wget http://192.168.4.151/kylin/{.kyinfo,LICENSE} --random-wait --directory-prefix /etc/ # Enable kdump #sed -i "s/ crashkernel=auto / /" /boot/efi/EFI/kylin/grub.cfg %end
2, client operation and installation effect
1 change the boot mode to network boot in bios
2 installation process