Skip to content

Agent-based non-integrated installation on vSphere

https://docs.openshift.com/container-platform/4.13/installing/installing_with_agent_based_installer/preparing-to-install-with-agent-based-installer.html

Create all VM's

For example with Govc:

govc vm.create \
  -on=false \
  -m 16384 \
  -c 8 \
  -net 'VM Network' \
  -disk 120GB \
  -ds ose3-vmware \
  -folder /Boston/vm/rbohne \
  -g rhel9_64Guest \
  cp-{1,2}
..

for i in cp-{0,1,2} wp-{0,1}; do govc vm.change -vm /Boston/vm/rbohne/${i} -e disk.enableUUID=TRUE ;done

# Just for information
#for i in cp-{0,1,2} wp-{0,1}; do govc vm.power -off -force /Boston/vm/rbohne/${i} ;done
#for i in cp-{0,1,2} wp-{0,1}; do govc vm.power -on  /Boston/vm/rbohne/${i} ;done

Collect mac-addresses

1
2
3
4
5
cp-0;00:50:56:89:5b:02
cp-1;00:50:56:89:dd:e4
cp-2;00:50:56:89:0d:fe
wp-0;00:50:56:89:e0:2c
wp-1;00:50:56:89:80:a3

Get rendezvousIP

Boot with RHEL/RHCOS Live ISO cp-0 and get IP from DHCP

Create configuration

agent-config.yaml
apiVersion: v1alpha1
kind: AgentConfig
metadata:
  name: vmw1
rendezvousIP: 10.28.115.123
hosts:
  - hostname: cp-0
    role: master
    interfaces:
      - name: ens32
        macAddress: 00:50:56:89:5b:02
  - hostname: cp-1
    role: master
    interfaces:
      - name: ens32
        macAddress: 00:50:56:89:dd:e4
  - hostname: cp-2
    role: master
    interfaces:
      - name: ens32
        macAddress: 00:50:56:89:0d:fe
  - hostname: wp-0
    role: worker
    interfaces:
      - name: ens32
        macAddress: 00:50:56:89:e0:2c
  - hostname: wp-1
    role: worker
    interfaces:
      - name: ens32
        macAddress: 00:50:56:89:80:a3
curl -L -O https://examples.openshift.pub/cluster-installation/vmware/agent-base-non-integrated//agent-config.yaml
install-config.yaml
apiVersion: v1
baseDomain: rbohne.e2e.bos.redhat.com
compute:
  - architecture: amd64
    hyperthreading: Enabled
    name: worker
    platform: {}
    replicas: 2
controlPlane:
  architecture: amd64
  hyperthreading: Enabled
  name: master
  platform: {}
  replicas: 3
metadata:
  creationTimestamp: null
  name: vmw1
networking:
  clusterNetwork:
    - cidr: 10.128.0.0/14
      hostPrefix: 23
  machineNetwork:
    - cidr: 10.0.0.0/16
  networkType: OVNKubernetes
  serviceNetwork:
    - 172.30.0.0/16
platform:
  baremetal:
    apiVIPs: '10.19.114.149'
    ingressVIP: '10.19.114.150'
publish: External
pullSecret: '{"auths":{"cl...'
sshKey: |
  ssh-ed25519 AAAA..
curl -L -O https://examples.openshift.pub/cluster-installation/vmware/agent-base-non-integrated//install-config.yaml

Create iso

openshift-install --dir vmw1/ agent create image

Start installation

Attach the agent iso to all VM's and boot it.

Watch the output of cp-0 as rendezvous host and the others.


2024-01-31 2024-01-31 Contributors: Robert Bohne