packer-builds

Packer Builds for LXC and Libvirt
git clone https://git.in0rdr.ch/packer-builds.git
Log | Files | Refs | Pull requests |Archive | README

ks-9.cfg (1015B)


      1 #version=RHEL9
      2 #ignoredisk --only-use=sda
      3 clearpart --none --initlabel
      4 autopart --type=lvm
      5 
      6 cmdline
      7 
      8 # Use network installation
      9 repo --name="AppStream" --baseurl="https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/"
     10 url --url="https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os"
     11 
     12 # Keyboard layouts
     13 keyboard --vckeymap=us --xlayouts='us'
     14 # System language
     15 lang en_US.UTF-8
     16 # System timezone
     17 timezone Europe/Zurich --utc
     18 
     19 # Network information
     20 network --bootproto=dhcp --device=link --ipv6=auto --activate
     21 network --hostname=localhost.localdomain
     22 
     23 # Root password
     24 rootpw root
     25 
     26 # Do not configure the X Window System
     27 skipx
     28 # System services
     29 services --enabled=sshd,chronyd
     30 firewall --enabled --service=ssh
     31 
     32 reboot
     33 
     34 %packages
     35 @core
     36 @^minimal install
     37 qemu-guest-agent
     38 %end
     39 
     40 # Once the installation is complete,
     41 # but before the system is rebooted for the first time
     42 %post
     43 #  enable the password-based SSH root logins 
     44 echo "PermitRootLogin yes" > /etc/ssh/sshd_config.d/01-permitrootlogin.conf
     45 %end
     46