Skip to main content

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

  1. Open Networking > Services > Create Service.

  2. 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
  3. Click Create.

Create a Route for HTTP

  1. Open Networking > Routes > Create Route.
  2. Select the previously created Service.
  3. Set Target port to 80.
  4. Click Create.

Configure Hostname for the Application

  1. Copy the route’s Location value (e.g., http://route-name-default.apps.cluster.example.com).

  2. Log in to your RHEL9 VM.

  3. Run:

     bash
    /usr/local/Secunia/csi/install/installationProcess.sh
  4. 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