-
Notifications
You must be signed in to change notification settings - Fork 14
Satellite Basics Lab Notes
Matthew Yee edited this page Nov 28, 2024
·
11 revisions
echo 0 > /proc/sys/vm/overcommit_memory
sysctl -p
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
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
gcloud config set compute/zone "us-central1-a"
gcloud compute scp Downloads/manifest_satellite-6.11-instruqt_20220808T154420Z.zip satellite-update:/home/myee/
gcloud compute instances create satellite \
--image-project red-hat-image-builder \
--image composer-api-79bd7bcf-5265-4286-xxxx \
--zone us-central1-a
dnf install -y rhel-system-roles
dnf install -y dnsmasq
nmcli connection modify Wired\ connection\ 1 ipv4.dns 192.0.2.1,8.8.8.8
Add these to /etc/sysctl.conf
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
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
satellite-installer --tuning development