- Name:
ipa.lab.example.com
- ISO: Red Hat Enterprise Linux ISO
- RAM: Minimum 4 GB (Recommended: 8 GB+)
- CPU: Minimum 2 cores (Recommended: 4 cores+)
- Disk: At least 30 GB (Recommended: 50 GB+)
- Network: Bridged network
- Complete installation using RHEL ISO
- Set
root password
and create arhel
user which will be the main administrator for this lab.
echo "rhel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/rhel
Set the static IP and hostname:
hostnamectl set-hostname ipa.lab.example.com
nmcli con mod ens18 ipv4.addresses 192.168.1.201/24 ipv4.gateway 192.168.1.254 ipv4.dns 8.8.8.8 ipv4.dns 8.8.4.4 ipv4.method manual
nmcli con up ens18
# OR
nmtui
Update /etc/hosts
:
echo "192.168.1.201 ipa.lab.example.com ipa" >> /etc/hosts
yum update -y
subscription-manager attach --auto
subscription-manager repos --enable=rhel-9-for-x86_64-baseos-rpms
subscription-manager repos --enable=rhel-9-for-x86_64-appstream-rpms
# Verify:
subscription-manager repos --list-enabled
yum -y install ipa-server ipa-server-dns vim bash-completion
firewall-cmd --add-service={dns,freeipa-4,freeipa-ldap,freeipa-ldaps,freeipa-replication,kerberos,kpasswd,ntp,http,https} --permanent
firewall-cmd --reload
# Verify:
firewall-cmd --list-all
# Configure SELinux:
setenforce 1
sed -i 's/^SELINUX=.*/SELINUX=enforcing/' /etc/selinux/config
Run:
ipa-server-install
Provide the following when prompted:
- Do you want to configure integrated DNS (BIND)? [no]: yes
- Hostname:
ipa.lab.example.com
- Domain:
lab.example.com
- Realm name:
LAB.EXAMPLE.COM
- Directory Manager password:
RedHatRanger201@@
- Directory Manager password:
RedHatRanger201@@
- Do you want to configure DNS forwarders? [yes]:
yes
- Do you want to configure these servers as DNS forwarders? [yes]:
yes
- Enter an IP address for a DNS forwarder, or press Enter to skip:
(press ENTER)
- IP Address:
192.168.1.201
- Forwarder (DNS): (Your network's DNS or external DNS, e.g.,
8.8.8.8
) - Forwarding policy: forward only
- Reverse DNS: Accept the default (recommended)
kinit admin
ipa status
Access Web UI:
https://ipa.lab.example.com
Log in with your IPA admin
credentials.
On clients:
yum install -y ipa-client
ipa-client-install --domain=lab.example.com --realm=LAB.EXAMPLE.COM --server=ipa.lab.example.com --mkhomedir
- Regular updates:
yum update -y
- Backup IdM:
ipa-backup
- Check logs and status:
journalctl -u ipa
journalctl -u named
Your Red Hat IdM server on Proxmox VM (ipa.example.com
) is now ready and configured.