With OpenShift virtualization, VMs can be created as a pod in OCP cluster which can help to integrate Netcool with AIOps without extra VMs.
The steps to create an Objectserver VM:
1. Install "OpenShift Virtualization" operator

2. Create "HyperConverged" instance with default setting

3. Download command line tool:
https://console-openshift-console.apps.CLUSTERNAME.CLUSTERDOMAIN/command-line-tools
wget https://hyperconverged-cluster-cli-download-openshift-cnv.apps.cluser_name.cp.fyre.ibm.com/amd64/linux/virtctl.tar.gz --no-check-certificate
4. Create Bootable Volume

Check datavolume is in "Bound" status:
oc get PVC -A | grep vmdisks
openshift-virtualization-os-images vmdisks Pending rook-cephfs
openshift-virtualization-os-images vmdisks Bound pvc-7e7d7a0d-3daa-4bcb-853e-5391b333b9ba 32Gi RWX rook-cephfs <unset> 79s
5. Create VM from Template

6. How to login to the VM
oc get vmi rhel9-aquamarine-aphid-93 -n openshift-virtualization-os-images -o yaml
- dataVolume:
name: rhel9-aquamarine-aphid-93
name: rootdisk
- cloudInitNoCloud:
userData: |-
#cloud-config
user: cloud-user
password: stws-k18o-iojt
chpasswd: { expire: False }
Login from web console: paste the password.

Allow SSH login with password:
vi /etc/ssh/sshd_config
PasswordAuthentication yes
PubkeyAuthentication yes
vi /etc/ssh/sshd_config.d/50-cloud-init.conf
PasswordAuthentication yes
Restart SSHD:
systemctl restart sshd
Find VM IP address and FQDN:

7. Upload Netcool binaries to VM and install Objectserver
Login from command line:
virtctl console rhel9-aquamarine-aphid-93 -n openshift-virtualization-os-images
mkdir /syn
chmod 777 /syn
Upload Netcool binaries to the VM:
virtctl scp Netcool_binaries cloud-user@rhel9-aquamarine-aphid-93:/syn
Install ObjectServer
Run "ifconfig" to find the VM IP address.
Run "nslookup" to find the FQDN name:
nslookup 10.254.64.100
;; Got recursion not available from 172.30.0.10, trying next server
100.64.254.10.in-addr.arpa name = 10-254-64-100.headless.openshift-virtualization-os-images.svc.cluster.local.
Add FQDN and short hostname in "hosts" file:
vi /etc/hosts
10.0.2.2 10-254-64-100.headless.openshift-virtualization-os-images.svc.cluster.local rhel9-aquamarine-aphid-93
Create ObjectServer interface file with the short hostname:
[AGG_P]
{
Primary: rhel9-aquamarine-aphid-93 4100
}
Create ObjectServer and start the server.
8. Create Netcool Connector in AIOps with FQDN from "nslookup"

9. Also, this VM can be used to run the SSH automations.
------------------------------
Yongjie Guo
------------------------------