Setup
home vms
192.168.50.164
192.168.50.105
work vms
192.168.17.185
192.168.17.208
Hyper V
Disable secureboot
Proxmox (host) (wget command from red hat site) > download > f12 > network > copy cURL > trim it
curl -L \
-H "Cookie: rh_user_id=59291558; rh_sso_session=1" \
-o /var/lib/vz/template/iso/rhel-9.8-x86_64-dvd.iso \
"https://access.cdn.redhat.com/content/origin/files/sha256/c0/c0dd53b73406b85b40d6168d1748e605d71361b2992d282c408b7d7d2e1d2c80/rhel-9.8-x86_64-dvd.iso?_auth_=1782441220_ea8eb57265125e48f98b84775988df3d"
- 64gb disk
- 2048mb memory
- 1 socket 2 cores cpu
- Disable screen timeout
RHC Connect (needed package commands)
rhc connect
username: nicksotelo95
password: RHELsolomon5!!
Set Hostname
|
hostnamectl set-hostname <hostname> |
set hostname |
Set Time Zone
|
timedatectl |
show timedate info |
|
timedatectl list-timezones |
list all timezones |
|
timedatectl set-timezone Australia/Sydney |
set timezone to Sydney |
|
timedatectl set-ntp true |
|
|
chronyd |
service used for time synchronisation |
|
/etc/chronyd.conf |
config file |
|
/var/log/chrony |
log file |
|
systemctl start/restart chronyd |
start/restart chronyd service |
|
chronyc |
program command |
|
rpm -qa | grep chrony |
verify it is installed |
|
ps -ef | grep chrony |
verify it is running |
|
yum install chrony |
if it is not installed |
Subscription Manager Repositories
|
sudo dnf repolist |
check which repositories are installed |
|
subscription-manager repos --enable codeready-builder-for-rhel-10-x86_64-rpms |
enable codeready linux builder repository |
|
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm |
|
|
sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm |
Remote access without password (SSH keys)
- Needed for repetitive logins or automation via scripts
- Keys are generated at the user level (nsotelo, root)
- Install Git Bash for ssh-copy-id to work
- Powershell will then connect without password
|
ssh-keygen |
generate the key |
|
ssh-copy-id root@192.168.1.X |
copy the key to the host |
|
ssh root @192.168.1.X |
login to remote host |
|
ssh -1 root 192.168.1.X |