惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Announcements
Recent Announcements
博客园 - Franky
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Apple Machine Learning Research
Apple Machine Learning Research
云风的 BLOG
云风的 BLOG
人人都是产品经理
人人都是产品经理
博客园 - 【当耐特】
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
H
Help Net Security
爱范儿
爱范儿
罗磊的独立博客
博客园_首页
美团技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
V
Visual Studio Blog
T
Tailwind CSS Blog

lvbibir's Blog

shell | 磁盘空间分析脚本 Linux cat 和 tee 命令写入文件 python | 使用 uv 管理你的 python 环境 Claude Code 完整配置指南 windows | mihomo 内核独立部署指南 linux | 磁盘扩容 wsl | 释放长久运行占用的磁盘空间 mysql | 线程上限问题处理 麒麟 7.6 安装谷歌 OTP 认证模块 suse 12sp5 升级 openssh 及 openssl suse 12sp5 部署 mysql 5.7 《谁的青春不迷茫》 docker | centos7 部署 docker vim | 基础配置和使用 windows | rime 输入法 & 雾凇方案 shell | sshpass 批量传输文件及执行命令 wsl | 原生 linux 方式安装 docker nodejs | fnm + pnpm 开发环境配置 wsl | 安装配置 miniconda 虚拟环境 wsl | 自动更新系统代理 wsl | bashrc 环境变量不正确加载的处理方法 wsl | win10 安装 wsl2 troubleshooting | ssh 成功但是 scp 失败 linux | 常用命令总结 docker 部署 piclist shell | 检测网站存活并自动钉钉告警 Zabbix | 监控端口连通性并自动追踪 TCP 路由 windows | 自定义开机快速启动项 windows | miniconda 配置 python 虚拟环境 Zabbix | 监控主机到指定 ip 的流量大小
pxe 安装 isoft-5.1(aarch64)
lvbibir · 2021-08-01 · via lvbibir's Blog

dhcp+tftp+http

pxe-server:isoft-serveros-v4.2(3.10.0-957.el7.isoft.x86_64)

引导的 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 192.168.1.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option time-offset -18000;

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

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

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
  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=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=http://192.168.1.1/isoft-5.1-arm ks=http://192.168.1.1/isoft-5.1-arm/anaconda-ks.cfg
        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=http://192.168.1.1/isoft-5.1-zfarm
#       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

%packages
@^mate-desktop-environment
@additional-devel
@development
@file-server
@headless-management
@legacy-unix
@network-server
@network-tools
@scientific
@security-tools
@system-tools
@virtual-tools

%end


%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

以上

wechat_pay

微信

alipay

支付宝