Skip to content

Satellite Basics Lab Notes

Matthew Yee edited this page Nov 28, 2024 · 11 revisions

Memory thingy in GCP

echo 0 > /proc/sys/vm/overcommit_memory
sysctl -p

Setup in GCP for the Lab

Change the hostname to satellite.lab with hostnamectl.

hostnamectl set-hostname satellite.lab
exec bash

Add an entry for 127.0.0.1 to satellite.lab.

subscription-manager register --activationkey xxxx --force

dnf upgrade -y

firewall-cmd --add-port="53/udp" --add-port="53/tcp" --add-port="67/udp" --add-port="69/udp" --add-port="80/tcp" --add-port="443/tcp" --add-port="5647/tcp" --add-port="8000/tcp" --add-port="9090/tcp" --add-port="8140/tcp"

firewall-cmd --runtime-to-permanent
subscription-manager repos --disable "*"

subscription-manager repos --enable=rhel-8-for-x86_64-baseos-rpms --enable=rhel-8-for-x86_64-appstream-rpms --enable=satellite-6.12-for-rhel-8-x86_64-rpms --enable=satellite-maintenance-6.12-for-rhel-8-x86_64-rpms

subscription-manager repos --enable=rhel-8-for-x86_64-baseos-rpms --enable=rhel-8-for-x86_64-appstream-rpms --enable=satellite-6.13-for-rhel-8-x86_64-rpms --enable=satellite-maintenance-6.13-for-rhel-8-x86_64-rpms

dnf module enable satellite:el8

dnf update -y
dnf install satellite

Run the satellite installer.

satellite-installer --scenario satellite --foreman-initial-organization "Acme Org" --foreman-initial-location "Vancouver" --foreman-initial-admin-username admin --foreman-initial-admin-password bc31c9a6-9ff0-11ec-9587-00155d1b0702
useradd rhel

Copy the manifest into /home/myee.

gcloud config set compute/zone "us-central1-a"

gcloud compute scp Downloads/manifest_satellite-6.11-instruqt_20220808T154420Z.zip satellite-update:/home/myee/

Launch a VM based on Image Builder image in console.redhat.com

gcloud compute instances create satellite \
  --image-project red-hat-image-builder \
  --image composer-api-79bd7bcf-5265-4286-xxxx \
  --zone us-central1-a

Install rhel-system-roles

dnf install -y rhel-system-roles

Install dnsmasq

dnf install -y dnsmasq

Add dns to Wired Connection 1

nmcli connection modify Wired\ connection\ 1 ipv4.dns 192.0.2.1,8.8.8.8

Enable forwarding

Add these to /etc/sysctl.conf

net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1

Tell dnsmasq to handle wg requests

Create /etc/dnsmasq.d/wg0.conf

interface=wg0
expand-hosts
domain=lab
server=8.8.8.8
server=8.8.8.4
address=/lab/127.0.0.1
address=/lab/192.0.2.1

Set the tuning to development

satellite-installer --tuning development