Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux] Add support for RHEL 10 and CentOS 10 #597

Merged
merged 4 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ This project supports below scenarios for end-to-end guest operating system vali
|:-------------------------------------------------------| :------------------------------: | :----------------------: | :--------------------------------: |
| Red Hat Enterprise Linux 7.x, 8.x, 9.x | :heavy_check_mark: | | :heavy_check_mark: |
| CentOS 7.x, 8.x | :heavy_check_mark: | | :heavy_check_mark: |
| CentOS Stream 8, 9 | :heavy_check_mark: | | :heavy_check_mark: |
| CentOS Stream 8, 9, 10 | :heavy_check_mark: | | :heavy_check_mark: |
| Oracle Linux 7.x, 8.x, 9.x | :heavy_check_mark: | | :heavy_check_mark: |
| Rocky Linux 8.x, 9.x | :heavy_check_mark: | | :heavy_check_mark: |
| AlmaLinux 8.x, 9.x | :heavy_check_mark: | | :heavy_check_mark: |
Expand Down
23 changes: 11 additions & 12 deletions autoinstall/RHEL/8/server_with_GUI/ks.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#version=RHEL8
#version=RHEL8,RHEL9,RHEL10
ignoredisk --only-use={{ boot_disk_name }}
autopart --type=lvm
# 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
Expand All @@ -17,8 +20,9 @@ lang en_US.UTF-8
eula --agreed

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

# Root password
rootpw --iscrypted {{ vm_password_hash }}

Expand All @@ -37,9 +41,12 @@ firstboot --disable

# System services
services --enabled="chronyd"
services --disabled="firewalld"

# Disable firewall
firewall --disabled

# System timezone
timezone America/New_York --isUtc
timezone America/New_York --utc

# Shutdown when the install is finished.
shutdown
Expand All @@ -49,8 +56,6 @@ shutdown
kexec-tools
open-vm-tools-desktop
cloud-init
java-1.8.0-openjdk-headless
java-1.8.0-openjdk
ndctl
iproute
rdma-core
Expand All @@ -64,12 +69,6 @@ perftest
%addon com_redhat_kdump --enable --reserve-mb='auto'
%end

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

%post --interpreter=/usr/bin/bash --log=/root/ks-post.log
if [ -f /etc/cloud/cloud.cfg ]; then
sed -i 's/^disable_root:.*/disable_root: false/' /etc/cloud/cloud.cfg
Expand Down
29 changes: 13 additions & 16 deletions autoinstall/RHEL/8/server_without_GUI/ks.cfg
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
#version=RHEL8
#version=RHEL8,RHEL9,RHEL10
ignoredisk --only-use={{ boot_disk_name }}
autopart --type=lvm
# 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

# License agreement
eula --agreed

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

# Root password
rootpw --iscrypted {{ vm_password_hash }}

Expand All @@ -30,14 +35,14 @@ user --name={{ new_user }} --password={{ vm_password_hash }} --groups=root,wheel
sshkey --username={{ new_user }} "{{ ssh_public_key }}"
{% endif %}

# X Window System configuration information
xconfig --startxonboot
keirazhang marked this conversation as resolved.
Show resolved Hide resolved
# Run the Setup Agent on first boot
#firstboot --enable
# System services
services --enabled="chronyd"

# Disable firewall
firewall --disabled

# System timezone
timezone America/New_York --isUtc
timezone America/New_York --utc

# Shutdown when the install is finished.
shutdown
Expand All @@ -46,19 +51,11 @@ shutdown
kexec-tools
perl-interpreter
cloud-init
java-1.8.0-openjdk-headless
java-1.8.0-openjdk
%end

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

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

%post --interpreter=/usr/bin/bash --log=/root/ks-post.log
if [ -f /etc/cloud/cloud.cfg ]; then
sed -i 's/^disable_root:.*/disable_root: false/' /etc/cloud/cloud.cfg
Expand Down
Loading