Search
StarWind is a hyperconverged (HCI) vendor with focus on Enterprise ROBO, SMB & Edge

Configure PostgreSQL database for Horizon 8 events

  • September 24, 2024
  • 5 min read
Cloud and Virtualization Architect. Paolo is a System Engineer, VCP-DCV, vExpert, VMCE, Veeam Vanguard, and author of the virtualization blog nolabnoparty.com
Cloud and Virtualization Architect. Paolo is a System Engineer, VCP-DCV, vExpert, VMCE, Veeam Vanguard, and author of the virtualization blog nolabnoparty.com

To store log events, Omnissa Horizon (formely known as VMware Horizon) supports MS-SQL, Oracle and PostgreSQL database platforms.

To keep costs under control, you can eliminate the need for a Windows license by using the PostgreSQL database solution on a Linux OS.

Database Type | Microsoft SQL Server

 

Install PostgreSQL database on Linux Ubuntu

In this example, the PostgreSQL database will be installed on Linux Ubuntu OS.

SSH the Ubuntu server with an account with root permissions.

configure-postgresql-database-for-horizon-8-events-03

 

Install the PostgreSQL package.

Install the PostgreSQL package.

 

Start the service.

Start the service

 

To run PostgreSQL after rebooting the server, enable the PostgreSQL service.

To run PostgreSQL after rebooting the server, enable the PostgreSQL service.

 

Check the system status.

Check the system status

 

Configure PostgreSQL

By default, the postgres user is created during the installation with the postgres role.

Connect the PostgreSQL prompt as a user with appropriated privileges with the following command:

Configure PostgreSQL

 

Assign the postgres user a new password.

Assign the postgres user a new password

 

Create a new user and assign a password.

Create a new user and assign a password.

 

Exit the PostgreSQL prompt.

Exit the PostgreSQL prompt.

 

 

Edit the file /etc/postgresql/14/main/pg_hba.conf and add the Connection Server IP addresses under the IPv4 local connection.

Replace peer with password

Replace peer with password

 

 

Edit the file etc/postgresql/14/main/postgresql.conf and change the line as follows:

Edit the file etc/postgresql/14/main/postgresql.conf and change the line as follows:

 

Restart the PostgreSQL service.

Restart the PostgreSQL service.

 

Connect the PostgreSQL database prompt once again.

Connect the PostgreSQL database prompt once again.

 

Create a new database.

Create a new database

 

Grant the permissions to the previously created database.

Grant the permissions to the previously created database

 

Exit the PostgreSQL prompt.

Exit the PostgreSQL prompt.

 

Configure the database in horizon

Access the Horizon console and access the Event Configuration section. Click Edit.

Access the Horizon console and access the Event Configuration section

 

Enter the configuration settings specifying PostgreSQL as Database Type. Click OK to save the configuration.

Enter the configuration settings specifying PostgreSQL as Database Type

 

The Event Database has been configured successfully.

The Event Database has been configured successfully

 

Using the PostgreSQL database running on a Linux OS to store Omnissa Horizon events, allows to save money because a Windows license is no longer required.

Hey! Found Paolo’s article helpful? Looking to deploy a new, easy-to-manage, and cost-effective hyperconverged infrastructure?
Alex Bykovskyi
Alex Bykovskyi StarWind Virtual HCI Appliance Product Manager
Well, we can help you with this one! Building a new hyperconverged environment is a breeze with StarWind Virtual HCI Appliance (VHCA). It’s a complete hyperconverged infrastructure solution that combines hypervisor (vSphere, Hyper-V, Proxmox, or our custom version of KVM), software-defined storage (StarWind VSAN), and streamlined management tools. Interested in diving deeper into VHCA’s capabilities and features? Book your StarWind Virtual HCI Appliance demo today!