5.5.1 IDIH Manual Deployment on KVM
Perform the following procedure to perform IDIH Manual Deployment on KVM using IDIH VMDK image:
- Log in to the KVM host machine.
- Navigate to a directory where enough space is available.
- Download the IDIH deliverable images and untar them to get Kafka, MySQL, and Service in VMDK format images.
- Download the zip containing all the manual installation scripts from the documentation center and untar it.
- Perform the following command to run the
script:
./create_manual_kvm_idihvms.sh- Example for MySql
VM:
Enter VM type (mysql/kafka/service): mysql Enter IDIH Image path (EX: /mnt/data): /mnt/data/Images Enter source VMDK image file name: idih-mysql-9.x.0.vmdk Enter VM name: idih-mysql Enter desired disk size in GB: 220 - Example for Kafka
VM:
Enter VM type (mysql/kafka/service): kafka Enter IDIH Image path (EX: /mnt/data): /mnt/data/Images Enter source VMDK image file name: idih-kafka-9.x.0.vmdk Enter VM name: idih-kafka Enter desired disk size in GB: 170 - Example for Service
VM:
Enter VM type (mysql/kafka/service): service Enter IDIH Image path (EX: /mnt/data): /mnt/data/Images Enter source VMDK image file name: idih-service-9.x.0.vmdk Enter VM name: idih-service Enter desired disk size in GB: 120
- Example for MySql
VM:
- After all the three VMs are created successfully, the login screen appears where user can login using the required credentials.
MySQL Setup
Perform the following steps to set up MySQL on the MySQL VM:
- Access the MySQL VM: log in and navigate to the MySQL directory.
- Run the following commands to expand disk partition and
filesystem
growpart /dev/vda 1 resize2fs /dev/vda1 - Identify Network Interfaces: Run ifconfig and note down the device names: enp1s0 (XMI) and enp2s0 (IMI).
- Configure Static IP Addresses:
- XMI:
nmcli con add type ethernet ifname enp1s0 con-name enp1s0 ipv4.method manual ipv4.addresses 10.75.249.231/27 ipv4.gateway 10.75.249.225 ipv4.dns 8.8.8.8 autoconnect yes nmcli con up enp1s0 - IMI:
nmcli con add type ethernet ifname enp2s0 con-name enp2s0 ipv4.method manual ipv4.addresses 192.168.1.251/24 ipv4.gateway 192.168.1.1 ipv4.dns 8.8.8.8 autoconnect yes nmcli con up enp2s0
- XMI:
- Run
iporifconfigto verify all configured networks and IPs. - Adjust Metric for XMI IP Access:
- Get the XMI interface name using
nmcli con show. - Run the following commands to adjust the metric for the XMI
IP:
nmcli con mod '<XMI_INTERFACE_NAME>' ipv4.route-metric 1 nmcli con up '<XMI_INTERFACE_NAME>'
- Get the XMI interface name using
- Run MySQL Setup Script
- Navigate to the
/opt/directory. - Locate or download the
manual_mysql_setup.shscript. - Run the setup script:
./manual_mysql_setup.sh
- Navigate to the
- When prompted, enter the IMI IP of the MySQL VM as the bind address.
- After the script completes, MySQL will be set up successfully on the VM.
Kafka Setup
Perform the following steps to set up Kafka on the Kafka VM:
- Access the Kafka VM: Log in and navigate to the Kafka directory.
- Run the following commands to expand disk partition and
filesystem:
growpart /dev/vda 1 resize2fs /dev/vda1 - Run ifconfig and note down the device names: enp1s0 (XMI), enp2s0 (IMI), and enp3s0 (XSI).
- Configure Static IP Addresses:
- XMI:
nmcli con add type ethernet ifname enp1s0 con-name enp1s0 ipv4.method manual ipv4.addresses 10.75.249.253/27 ipv4.gateway 10.75.249.225 ipv4.dns 8.8.8.8 autoconnect yes nmcli con up enp1s0 - IMI:
nmcli con add type ethernet ifname enp2s0 con-name enp2s0 ipv4.method manual ipv4.addresses 192.168.1.191/24 ipv4.gateway 192.168.1.1 ipv4.dns 8.8.8.8 autoconnect yes nmcli con up enp2s0 - XSI:
nmcli con add type ethernet ifname enp3s0 con-name enp3s0 ipv4.method manual ipv4.addresses 10.196.84.71/27 ipv4.gateway 10.196.84.33 ipv4.dns 8.8.8.8 autoconnect yes nmcli con up enp3s0
- XMI:
- Run ip or ifconfig to verify the networks and IPs.
- Adjust metric for XMI IP access:
- Get the XMI interface name using
nmcli con show. - Run the following
commands:
nmcli con mod '<XMI_INTERFACE_NAME>' ipv4.route-metric 1 nmcli con up '<XMI_INTERFACE_NAME>'
- Get the XMI interface name using
- Run Kafka Setup Script
- Navigate to the
/opt/directory. - Locate or download the
manual_kafka_setup.shscript. - Perform the following command to run the
script:
./manual_kafka_setup.sh
- Navigate to the
- Provide configuration inputs during execution:
- Enter the IMI IP of the Kafka VM when prompted for the Kafka IMI IP.
- Enter the XSI IP of the Kafka VM when prompted for the Kafka XSI IP.
- Kafka and Kraft services will start on the provided IPs.
- After successful completion, Kafka will be set up and health-checked.
- Optional Configuration for Kafka XMI IP
- If user need to use Kafka's XMI IP instead of the default XSI IP, modify the
broker.propertiesfile (or individual brokerX.properties files for IDIH 9.3):advertised.listeners=INTERNAL_PLAINTEXT://<IP>:9092,INTERNAL_SSL://<IP>:9093,EXTERNAL://[kafka_xmi]:9094 - Replace
kafka_xmiwith the Kafka XMI IP and comment the default XSI line:#advertised.listeners=INTERNAL_PLAINTEXT://<IP>:9092,INTERNAL_SSL://<IP>:9093,EXTERNAL://<kafka_xsi>:9094
- If user need to use Kafka's XMI IP instead of the default XSI IP, modify the
- Restart Kafka and Kraft
services:
systemctl restart kraft-controller # (For IDIH 9.1, 9.2) systemctl restart kafka # (For IDIH 9.3) systemctl restart kafka-broker1 # same for broker2, broker3
Service Setup
Perform the following steps to set up the services on the Service VM:
- Access the Service VM: Log in and navigate to the Service directory.
- Run the following commands to expand disk partition and
filesystem:
growpart /dev/vda 1 resize2fs /dev/vda1 - Run ifconfig and note down the device names: enp1s0 (XMI) and enp2s0 (IMI).
- Configure Static IP Addresses:
- XMI:
nmcli con add type ethernet ifname enp1s0 con-name enp1s0 ipv4.method manual ipv4.addresses 10.75.249.253/27 ipv4.gateway 10.75.249.225 ipv4.dns 8.8.8.8 autoconnect yes nmcli con up enp1s0 - IMI:
nmcli con add type ethernet ifname enp2s0 con-name enp2s0 ipv4.method manual ipv4.addresses 192.168.1.191/24 ipv4.gateway 192.168.1.1 ipv4.dns 8.8.8.8 autoconnect yes nmcli con up enp2s0
- XMI:
- Run ip or ifconfig to verify the networks and IPs.
- Adjust metric for XMI IP access:
- Get the XMI interface name using
nmcli con show. - Run the following
commands:
nmcli con mod '<XMI_INTERFACE_NAME>' ipv4.route-metric 1 nmcli con up '<XMI_INTERFACE_NAME>'
- Get the XMI interface name using
- Edit the Docker-Compose File
- Navigate to the
Services/directory. - Edit the
cnidih_VM.yamlfile.- Replace
<REPLACE WITH SOAM VIP>with the active SOAM IP. - Enable
NFCONFIG_CLIENT_ENABLED=truein the Protrace section.
- Replace
- Save and exit.
- Navigate to the
- Run the Service Setup Script
- Go to the
/optdirectory. - Locate or download the
manual_service_setup.shscript. - Run the script:
./manual_service_setup.sh
- Go to the
- Enter the following when prompted:
- Service IMI IP
- Service XMI IP
- Kafka IMI IP
- MySQL IMI IP
Note:
For ipv6 setups, the above ips have to be entered in square brackets ( [] ). - After these inputs are provided, the script will start the required services and proceed with the health check.
- UI Access
- Perform the following command to verify that all services are up and
running:
podman ps -a - Access the UI at:
https://<SERVICE XMI IP>
This completes the setup for MySQL, Kafka, and Services. The deployment is now completed.
- Perform the following command to verify that all services are up and
running: