Origin, RedOS
Origin RHEL

 # ks встроен в инсталлятор
 inst.ks=file:/anaconda-ks.cfg  inst.text  console=ttyS0

 # ks запрашивается по сети
 inst.ks=http://192.168.1.9/redos-ks.cfg ip=192.168.1.196::192.168.1.1:255.255.255.0
 # если ks не с eth0 - добавить параметр
 ksdevice=eth1

 # Различные размещения ks
 ks=cdrom:/ombs-ks.cfg
 ks=floppy
 ks=hd:fd0:/ks.cfg            # флажок hd: -- монтировать
 ks=hd:sdb3:/ombs-ks.cfg
 ks=file:/ombs-ks.cfg         # ks лежит в initrd



 dnf install pykickstart -y
 ksvalidator your-ks.cfg


 kickstartconfig (RHEL)



http://lib.ru/unixhelp/vmware.txt#179




virt-install --name vm-2    --location ~/iso/redos196.iso  \
  --network default   --initrd-inject /home/moshkow/anaconda-ks.cfg \
  --memory=1024  --vcpus=1 \
  --disk path=/vz/disk/vm-1.img,size=16 \
  --extra-args    "inst.ks=file:/anaconda-ks.cfg  inst.text  console=ttyS0"



###### важные фрагменты anaconda-ks.cfg ##########
text

%pre  --interpreter=/bin/bash  --nochroot
.. scrip before installation...
%end

%packages
@^server-minimal
%end
# ignoredisk --only-use=vda ### потому что sda
network  --hostname=vm-1.localdomain

%post  --interpreter=/bin/bash  --nochroot
cp /etc/resolv.conf   /mnt/sysimage/etc/resolv.conf

... script on those interpreter ....
%end

reboot
##################################################


#### /export/linux/vmware/esxi-ks.cfg ##############
accepteula
rootpw supersecretpassword
autopart --firstdisk --overwritevmfs

install url http://192.168.1.4/linux/vmware
network --bootproto=static --ip=192.168.1.22 --gateway=192.168.1.1 --nameserver=192.168.1.4 --netmask=255.255.255.0 --hostname=esxi02 --addvmportgroup=0
reboot
####################################################


дописать в isolinux/isolinux.cfg
 inst.ks=http://192.168.1.9/redos-ks.cfg ip=192.168.1.196::192.168.1.1:255.255.255.0

cd  LinuInstallCD/
sudo mkisofs -o /Lnux.iso -b isolinux/isolinux.bin -c isolinux/boot.cat \
      --no-emul-boot --boot-load-size 4 --boot-info-table -T -J -r \
      -V "LinuInstallDisksLabel"  .
    # -J - generate Joliet directory record
    # -R - Rock Ridge
    # -r - Rock Ridge + chown 0:0
    # -T - generate TRANS.TBL for nonRR clients




############################################################################
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us','ru' --switch='grp:alt_shift_toggle'
# System language
lang ru_RU.UTF-8

# Network information
network  --bootproto=dhcp --device=eno1 --ipv6=auto --no-activate
network  --hostname=localhost.localdomain

# Root password
rootpw --iscrypted $6$K2i9HR45ptnHOg4U$MflacVttGoh333/L52RHz8fwn4pnOgRJES2/eGa9MWU6bxF7PQPZscYGDTk8BVe0IIIB8JyQay1yFb8wmbAI.1
# System services
services --enabled="chronyd"
# System timezone
timezone Europe/Moscow --isUtc
user --groups=wheel --name=test --password=$6$0Rl333j/K/qIsR1Y$L.Qnf9ppQVJbo8tkOkbNNmKNJrSAbvioJIfmqR6vG24vXSqBqrK4365I8Vwoj416AyXWsur1OguUgvocCFWYo1 --iscrypted --g
# X Window System configuration information
xconfig  --startxonboot
# System bootloader configuration
bootloader --location=none
autopart --type=lvm
# Partition clearing information
clearpart --none --initlabel

%packages
@^mate-desktop-environment
@base
@core
@desktop-debugging
@dial-up
@directory-client
@fonts
@guest-agents
@guest-desktop-agents
@input-methods
@internet-browser
@java-platform
@mate-desktop
@multimedia
@network-file-system-client
@networkmanager-submodules
@print-client
@rosa-utils
@x11
chrony

%end

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

%end

%anaconda
pwpolicy root --minlen=6 --minquality=50 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=50 --notstrict --nochanges --notempty
pwpolicy luks --minlen=6 --minquality=50 --notstrict --nochanges --notempty
%end

############################################################################

Популярность: 83, Last-modified: Tue, 05 Mar 2024 11:13:51 GmT