真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

centos8自定義光盤安裝_kickstart

1.安裝軟件包
yum install genisoimage pykickstart -y

為祁連等地區(qū)用戶提供了全套網(wǎng)頁設計制作服務,及祁連網(wǎng)站建設行業(yè)解決方案。主營業(yè)務為成都網(wǎng)站設計、成都做網(wǎng)站、外貿網(wǎng)站建設、祁連網(wǎng)站設計,以傳統(tǒng)方式定制建設網(wǎng)站,并提供域名空間備案等一條龍服務,秉承以專業(yè)、用心的態(tài)度為用戶提供真誠的服務。我們深信只要達到每一位用戶的要求,就會得到認可,從而選擇與我們長期合作。這樣,我們也可以走得更遠!

2.新建數(shù)據(jù)目錄,復制安裝包
mount /dev/cdrom /media/cdrom
mkdir -p /data/os
rsync -a /media/cdrom/ /data/os/

cd /data/os/
cp /root/ks.cfg ./isolinux/ks.cfg


3.編寫ks文件
[root@test os]# more /data/os/isolinux/ks.cfg
#version=RHEL8
# Partition clearing information
clearpart --none --initlabel
# Use graphical install
graphical
#repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream
# Use CDROM installation media
cdrom
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8

# Network information
network? --hostname=localhost.localdomain
# Root password? --tom.12
rootpw --iscrypted $6$xCCTrJnCr7QBGZb/$hXm51x5uAKlQoYI/Dckyx6j03UCGtSFCsGtGVnQ5VQmlfOkAjPQCFqmJfvNXoZqqfYRbdaKyxDhqUwynPA60N0
# SELinux configuration
selinux --disabled
# Do not configure the X Window System
skipx
# Run the Setup Agent on first boot
firstboot --disable
# firewall configuration
firewall --disabled
# System services
services --enabled="chronyd"
# System timezone
timezone Asia/Shanghai

%packages
@Base
@Core
@development
@network-tools
kexec-tools
vim
bind-utils
sysstat
lrzsz
iptraf
cmake
redhat-lsb
lsof
ftp
traceroute
ncurses-devel
dstat
iotop
NetworkManager-tui
openssl-devel

%end

%addon com_redhat_kdump --enable --reserve-mb='auto'

%end

# Reboot after installation
reboot


4.驗證ks文件
[root@test ~]# ksvalidator /root/ks.cfg

5.編輯引導配置文件
[root@test ~]# cat /data/os/isolinux/isolinux.cfg

label linux
?? menu label ^Install CentOS Linux 8.0.1905
?? kernel vmlinuz
?? append initrd=initrd.img inst.stage2=hd:LABEL=CentOS-8-BaseOS-x86_64 quiet

label custom
?? menu label ^Install CentOS 8 autoinstall
?? kernel vmlinuz
?? append initrd=initrd.img inst.stage2=hd:LABEL=CENTOS8 inst.ks=cdrom:/isolinux/ks.cfg


[root@test ~]# cat /data/os/EFI/BOOT/grub.cfg

menuentry 'Test this media & install CentOS Linux 8.0.1905' --class fedora --class gnu-linux --class gnu --class os {
???????? linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CentOS-8-BaseOS-x86_64 rd.live.check quiet
???????? initrdefi /images/pxeboot/initrd.img
}
menuentry 'Install CentOS 8 custom autoinstall' --class fedora --class gnu-linux --class gnu --class os {
???? linuxefi /images/pxeboot/vmlinuz inst.ks=cdrom:/isolinux/ks.cfg inst.stage2=hd:LABEL=CENTOS8 quiet
???? initrdefi /images/pxeboot/initrd.img
???? }


6.制作iso

cd /data/os/

genisoimage -v -cache-inodes -joliet-long -R -J -T -V CENTOS8 -o /root/centos-8.0-x86_64.iso -input-charset utf-8 -c isolinux/boot.cat??? -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot??? -b images/efiboot.img??? -no-emul-boot? .


網(wǎng)站題目:centos8自定義光盤安裝_kickstart
本文網(wǎng)址:http://weahome.cn/article/gpjcgs.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部