Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

VMware Horizon Workspace – Part 3 – Configure VMware vPostgres External Database

In this post I’ll show in detail how to configure Horizon Workspace to use an external database during the install process.  This post is part of a series showing how to configure VMware Horizon Workspace in a production environment. You’ll need an external database to have multiple service virtual appliances, so this should be a requirement for your environment.  This process was suprisingly not trivial for me, however it could have something to do with the fact that I haven’t used postgres sql in the past.

Some assumptions and prerequisites:

  1. You have horizon workspace 1.5.1 (at least) downloaded, deployed to your infrastructure successfully, and you’re ready to go through the web configuration.
  2. You have VMware vFabric Postgres downloaded and deployed to your infrastructure successfully, with no configuration added.
  1. Proceed through the web configuration until you get to step 2a, and select External Database. Stop here…
  2. Prepare your new external database
    1. SSH to the postgres server (I’ll assume the server is named hzn-db.test.in)
    2. Make changes to the postgres config: /var/vmware/vpostgres/9.2/pgdata/postgresql.conf.auto
      1. Max_connections = 300 (default is 100)
      2. Search_path = ‘saas’ (no value by default)
    3. You’ll have to prepare the postgre sql schema. Run these commands to configure it. VMware graciously has not provided the default password for the postgres user in any of their documentation, even after I opened a SR requesting the password. For your reference, it is “H0rizon!”. “myPassword” below should be replaced with the password you want to use for your horizon workspace postgres user.
      1. /opt/vmware/vpostgres/current/bin/psql -U postgres -W
      2. DROP SCHEMA IF EXISTS saas CASCADE;
      3. CREATE SCHEMA saas;
      4. CREATE USER horizon WITH PASSWORD ‘myPassword‘;
      5. ALTER ROLE horizon SET search_path TO saas;
      6. CREATE EXTENSION citext WITH SCHEMA saas;
      7. CTRL+D
    4. SSH to your service-va, and run the following command
      1. /usr/local/horizon/bin/setupExternalDb.sh
      2. The wizard will ask you for a postgres admin user (postgres), and the horizon user (horizon). The password for the postgres user, unless you change it is “H0rizon!”, and the password for the horizon user is set in step 3.

This should work – if you run into any issues, please comment!

4 thoughts on “VMware Horizon Workspace – Part 3 – Configure VMware vPostgres External Database

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright VirtJunkie.com © 2024