运维部署
搭建一个单机版的k8s
Gitlab部署及使用
docker-compose安装Harbor
LDAP部署
Chrony时钟源部署
PXE批量安装
wiki.js部署指南
常用源
常用脚本
阿里云ossfs部署
华为光交划zone
Ubuntu虚拟部署FusionCompute
Rancher部署
AIX7.0安装JAVA
eggo部署K8S
Harbor本地镜像仓库离线安装及使用
使用kubeadm部署K8S(docker+CRI+Flannel)集群
使用kubeadm部署K8S(containerd+Calico)集群
AIX7.0安装JAVA
Elasticsearch单机部署
本文档使用 MrDoc 发布
-
+
首页
PXE批量安装
### 关闭防火墙 ``` iptables -F ``` ### 安装httpd、tftp、dhcp服务 ``` # centos 7: yum install -y httpd tftp-server dhcp xinetd # centos 8: dnf install -y httpd tftp-server dhcp xinetd ``` ### 启动httpd服务并设置 ``` systemctl start httpd systemctl enable httpd mount openEuler-20.03-LTS-SP2-aarch64-dvd.iso /mnt cp -r /mnt/* /var/www/html/openEuler/ ``` ### 配置tftp ``` vim /etc/xinetd.d/tftp service tftp { socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /var/lib/tftpboot disable = no per_source = 11 cps = 100 2 flags = IPv4 } systemctl start tftp systemctl enable tftp systemctl start xinetd systemctl status xinetd systemctl enable xinetd ``` ### 设置和修改kickstart配置文件 openEuler-ks.cfg ``` vim /var/www/html/ks/openEuler-ks.cfg #version=DEVEL # use disk ignoredisk --only-use=sda # partition use lvm autopart --type=lvm # Partition clearing information clearpart --all --initlabel --drives=sda # 硬盘配置 # part /boot --fstype=ext4 --asprimary --size=1024 # part /boot/efi --size=300 # part pv.008003 --grow --size=1 # volgroup rootvg --pesize=8192 pv.008003 # logvol swap --fstype=swap --name=swap --vgname=rootvg --size=65536 # logvol / --fstype=ext4 --name=root --vgname=rootvg --grow --size=1 # Use graphical install graphical # Keyboard layouts keyboard --vckeymap=us --xlayouts='us' # System language lang en_US.UTF-8 #Use http installation source url --url=http://10.10.10.53/openEuler/ # root password rootpw --plaintext Huawei@123 # timezone timezone Asia/Shanghai # Do not configure the X Window System skipx # install %packages @^minimal-environment @standard %end # network settings network --bootproto=dhcp --device=ens33 --ipv6=auto --activate network --hostname=openeuler # Run the Setup Agent on first boot firstboot --enable # Reboot after installation reboot ``` ### 修改pxe配置文件grub.cfg ``` # cp -r /mnt/images/pxeboot/* /var/lib/tftpboot/ # cp /mnt/EFI/BOOT/grubaa64.efi /var/lib/tftpboot/ # cp /mnt/EFI/BOOT/grub.cfg /var/lib/tftpboot/ # ls /var/lib/tftpboot/ grubaa64.efi grub.cfg initrd.img TRANS.TBL vmlinuz # vim /var/lib/tftpboot/grub.cfg set default="1" 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 BIOS启动 ... ... ... ... label linux menu label ^Install Red Hat Enterprise Linux 8.0 kernel vmlinuz append initrd=initrd.img inst.stage2=ftp://10.10.10.53/dvd inst.ks=ftp://10.10.10.53/ks.cfg quiet ... ... ... ... UEFI启动 ### BEGIN /etc/grub.d/10_linux ### menuentry 'Install openEuler 20.03 LTS SP2' --class red --class gnu-linux --class gnu --class os { set root=(tftp,10.10.10.53) linux /vmlinuz ro inst.geoloc=0 console=ttyAMA0 console=tty0 rd.iscsi.waitnet=0 inst.ks=http://10.10.10.53/ks/openEuler-ks.cfg initrd /initrd.img } # Linux和initrd查看镜像包中文件,错误会导致找不到命令 ``` ### 配置DHCP ``` # vim /etc/dhcp/dhcpd.conf ddns-update-style interim; ignore client-updates; filename "grubaa64.efi"; # pxelinux 启动文件位置; next-server 10.10.10.53; # (重要)TFTP Server 的IP地址; subnet 10.10.10.2.0 netmask 255.255.255.0 { option routers 10.10.10.1; # 网关地址 option subnet-mask 255.255.255.0; # 子网掩码 range dynamic-bootp 10.10.10.50 10.10.10.200; # 动态ip范围 default-lease-time 21600; max-lease-time 43200; } # systemctl start dhcpd # systemctl enable dhcpd ```
阿星
2024年1月21日 21:19
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
PDF文档(打印)
分享
链接
类型
密码
更新密码