HTTP Setup
Perform the following steps to set up HTTP access for a Red Hat Enterprise Linux 9 virtual machine running in OpenShift. It provides creating the VM, installing necessary software, and configuring services and routes for unsecured web access.
Create a RHEL 9 Virtual Machine
• | Open Virtualization > VirtualMachines > Create > From Template. |
• | Select Red Hat Enterprise Linux 9 template. |
• | Click on the template to open it. |
• | Update Disk size to 120 GB. |
• | Click on Create. |
Download and Install RPM
Follow the instructions and perform as described in Flexera RHEL 9 Installation.
Install Firewall
Perform the following steps to install Firewall:
sudo dnf install firewalld -y
sudo systemctl enable firewalld --now
Create a Service for HTTP Access
• | Open Networking > Services > Create Service. |
• | In the YAML editor, update: |
metadata:
name: your-custom-name
namespace: default
spec:
selector:
kubevirt.io/domain: rhel9-scarlet-unicorn-54
ports:
- protocol: TCP
port: 80
targetPort: 80
Alternatively, use:
selector:
vm.kubevirt.io/name: rhel9-scarlet-unicorn-54
• | Click Create. |
Create a Route for HTTP
• | Open Networking > Routes > Create Route. |
• | Select the previously created Service. |
• | Set Target port to 80. |
• | Click Create. |
Configure Hostname for the Application
• | Copy the route’s Location value (e.g., http://route-name-default.apps.cluster.example.com). |
• | Log in to your RHEL9 VM. |
• | Run: |
bash
/usr/local/Secunia/csi/install/installationProcess.sh
• | During the script execution, when prompted for the hostname, use the route location copied in the previous step. |
Access the Web Interface
Open the copied route URL in a browser using HTTP.
Example:
http://route-hidden-spider-default.apps.16e1a451-flexerasvm.openshiftpartnerlabs.com/svm