101Installation - amagerard/TemplateVM GitHub Wiki
| 1- Installation | 2- Network | 3- Firewall | 4- Selinux | 
|---|---|---|---|
| 5- Logs | 6- Certificates | 7- PassphraseSSH | 8- Sudo | 
| 9- GnomeShell | 10- Volumes | 11- Proxmox | 12- Troubleshoots | 
- Good knowledge of the Redhat packages.
- Have a Red Hat developer account.
- Promox 8.4.5.
- Name : TemplateVM.
- Hardware:
 Memory: 4G,
 Processor x86-64-v3,
 Bios OVMF (UEFI),Pre-Enroll Keys no,
 Display: Standard VGA Memory 128M
 Machine q35,
 SCSI Controller VirtIO SCSI single,
 Hard Disk 40G Virtio,
 CD/DVD Drive (ide2) rhel-10.0-x86_64-boot.iso,
 Network Device VirtIO (paravirtualized),
- Options:
 OS Type Linux 6.x- 2.6 kernel
 Boot order ide2.
- System - Installation destination - Storage configuration - Choose custom.
- Start the partitioning from top to bottom of the table.
- Choose for the LVM type: LVM (IMPORTANT).
- (*)Change rhel volume group to "vgl0" -Raid Level None- Size policy Automatic.
- (**)To end with "/home", change the Size policy of vgl0 to as large as possible.
- Click on “Done” to finish.
| Mounting point | Desired Capacity | Device Type | File System | Volume Group | Label | Name | 
|---|---|---|---|---|---|---|
| /boot/efi | 100M | standard | efi system | boot-efi | ||
| /boot | 1G | standard | Ext4 | boot | ||
| swap | 4G | standard | swap | swap | ||
| (*)/ | 10G | LVM | EXT4 | vgl0 | root | root | 
| /usr/local | 2G | LVM | EXT4 | vgl0 | usrlocal | usrlocal | 
| /opt | 2G | LVM | EXT4 | vgl0 | opt | opt | 
| /var | 4G | LVM | EXT4 | vgl0 | var | var | 
| /var/log | 2G | LVM | EXT4 | vgl0 | varlog | varlog | 
| (**)/home | 2G | LVM | EXT4 | vgl0 | home | home | 
Root account : enable root account. Allow root ssh with password.
User creation: require a password. No add administrative privileges.
Connect to Redhat. Give your Red Hat developer account.
Sofware Selection. Only Server.
Change boot order to virtio0.
You should get what is shown below.
If it is not good, you will have to start the installation again.
pvdisplay  
 --- Physical volume ---  
  PV Name               /dev/sda4  
  VG Name               vgl0  
  PV Size               34,90 GiB / not usable 2,00 MiB  
  Allocatable           yes   
  
vgdisplay vgl0  
 Alloc PE / Size       5632 / 22.00 GiB  
 Free  PE / Size       3302 / <12,90 GiB  
Open a root ssh session.
If your network has a DHCP server and your virtual machine has recovered an IP address. Note the IP Virtual Machine address with ip a.
subscription-manager repos --enable "rhel-10-for-x86_64-supplementary-rpms" --enable "codeready-builder-for-rhel-10-x86_64-rpms" --enable "rhel-10-for-x86_64-highavailability-rpms"
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.
/usr/bin/crb enable
dnf update
You have this message.
This system is registered with a rights server, but does not receive updates.
You can use subscription-manager to assign subscription.
RedHat may ask you to make a new subscription.
subscription-manager register --username <username> --password <password>  --force
dnf update
dnf install net-tools nmap telnet vim bind-utils rsyslog-logrotate pinentry wget
dmesg –D   no console messages.
dmesg –E   messages on the console.
Suppress console messages on startup.
vi /etc/sysctl.conf
#Add the line  
kernel.printk = 2 4 1 7  
Activate immediately sysctl -p otherwise  reboot.
vi  /etc/ssh/sshd_config
# add or change  
#to forbid root  
PermitRootLogin no  
#allow only that for you  
AllowUsers <your username>  
systemctl restart sshd
vi /etc/chrony.conf
This example is for France.
#Change the line 'pool.2.rhel.pool.ntp.org    iburst':  
#Example from the France.  
pool   fr.pool.ntp.org    iburst  
#add to the end:  
#listen only host  
allow 127.0.0.0/8  
systemctl restart  chronyd
timedatectl
Example: Changing Time Zone.
timedatectl list-timezones 
timedatectl set-timezone Australia/Sydney