This tutorial walks you through the steps to set up a single Pubsub+ software event broker machine image instance in KVM in a Centos or Ubuntu environment.

Before You Begin

It's assumed that you have Linux Kernel-based Virtual Machine (KVM) (with the Virtual Machine Manager GUI for simplicity).

System Requirements

The number of CPUs and system memory required by your event broker depends on the number of client connections you need to support. By default, fresh installations of the event broker allow up to 100 client connections.

To achieve desired stability and performance, the infrastructure hosting the PubSub+ Software Event Broker must provide a minimum set of system resources. System resources can be broadly categorized into requirements related to processors, memory, and storage. For details about the type of system resources required and their characteristics, see System Resource Requirements.

You can increase certain system limits using System Scaling Parameters. Increasing these system limits also increases the system resources that are required. For more information, see Using System Scaling Parameters.

Information about configuring storage can be found at Managing Storage for Virtual Machine Images.

If you plan to scale your deployment above the 1,000 client connections level you will need to provision space on a drive to ensure proper functioning of your event broker. The event broker machine image provides a 30 GB disk partition, which is suitable for proof-of-concept use for up to 1,000 clients, but is insufficient for over 1,000 client connections and most guaranteed messaging deployments in production environments. For production use, you must provision an additional drive for the message spool, and it's also recommended to provide an additional drive for diagnostics information. For instructions on provisioning additional storage space, see Managing Storage Volumes, and for information on other defaults, see Default Configuration for Software Event Brokers.

The software event broker requires storage with medium to high bandwidth/IOPS and low latency. The virtual machine image uses settings for the widest compatibility; these settings are not tuned for performance. For information about getting the best storage performance for your system, consult the KVM documentation.

High Availability Considerations

To deploy event brokers in high-availability (HA) redundancy groups, you must set up three separate event broker instances and then configure them as an HA group. For more information on how to configure existing event brokers into an HA group, see HA Group Configuration.

Step 1: Get a Software Event Broker

The first step is to download an edition of PubSub+ software event broker. For KVM on Linux platforms, the event broker is distributed as a compressed QCOW2 file.

  1. Go to the Solace PubSub+ Event Broker downloads page.
  2. Scroll to the QCOW2 section, and then select the required edition of the software event broker.
  3. Fill in your details, and then click Get The Downloads.
  4. Click Download under the PubSub+ edition.

A file called solace-pubsub-<edition>-<version>.qcow2.xz is downloaded.

You can use the xz command to extract the QCOW2 file, . When completed, you'll get a file called solace-pubsub-<edition>-<version>.qcow2. This is the file that you'll use with Virtual Machine Manager.

Step 2: Import the Software Event Broker

To create a new VM image for the event broker, you must import the OVA file into the VMware ESXi host. Once it is imported, you can start the event broker instance.

  1. Launch the Virtual Machine Manager.
  2. Select the creation icon on the left of the control bar. This opens the New VM wizard. Then, select Import Existing Disk Image and click Forward.

  3. Select the QCOW2 file that you extracted. Then, select "Generic" for the operating system and click Forward.

  4. Configure the VM and then click Forward.

    The amount of memory and number of CPUs determines the number of client connections to the event broker (as is noted in KVM). This example uses 4 GiB of RAM and 2 CPUs.

  5. Provide a name for your event broker VM image.

    Make sure to check the Customize configuration before install option and select the right network option for your scenario (NAT is a good option for testing. For production environments, use the Bridge or Macvtap network). Then, click Finish.

    The VM properties dialog opens.

  6. In VirtIO Disk 1, make sure the Disk bus is set to VirtIO. Then, click Begin Installation.

    The event broker is successfully started when the login prompt appears.

  7. Login to the event broker.

    The software event broker resides in a container that is wrapped within a Linux OS to make an event broker virtual machine image. In its default state, this event broker Linux host environment has remote login disabled and contains no passwords.

    To log in to the event broker for the first time, you must log in as sysadmin, which is the default user account for the Linux host environment. You will be prompted to create a password for that user.

    When you are logged in as sysadmin, you can then create passwords for the default users through the console. You must assign a password to these default users to allow remote login.

Step 3: Configure the Host Name

To set the hostname for the new event broker, do the following:

  1. Shut down the Solace service:

    [sysadmin@solace ~]$ solacectl service stop

  2. Configure the hostname:

    [sysadmin@solace ~]$ solacectl hostname configure <hostname>

  3. Restart the Solace service:

    [sysadmin@solace ~]$ solacectl service start

  4. Verify that the hostname has been set to the new one:

    [sysadmin@solace ~]$ hostname

The shell may still reflect the old hostname until a reboot, or a re-login (log out and log back in).


<name> is the hostname to assign to the event broker. Host names can contain up to 64 characters, composed of alphanumeric characters 0 to 9, a to z, A to Z, and underscores '_' and hyphens '-'. Note that '_' and '-' cannot be used at the beginning or end of a hostname. Host names must be unique among all configured event brokers.

Step 4: Access the Solace CLI

You can access the Solace CLI from the console in the Linux host environment. This is done through the Solace Control utility.

When you first access the Solace CLI, you should do the following:

  • set a password for the admin user, which has access to all CLI commands
  • determine the event broker’s IP address so that you can enable remote access
  1. To enter the Solace CLI from the console in the Linux host environment, enter the following command in the Linux host shell:
    [sysadmin@solace ~]$ solacectl cli

    A CLI banner and prompt appears.

    At the > prompt, you are at the User EXEC level of the Solace CLI command structure.

  2. Within the Solace CLI, enter the following commands to create an admin user named admin (you can choose another name if you wish):
    solace> enable
    solace# configure
    solace(configure)# create username admin password <password>
    solace(configure/username)# global-access-level admin
  3. To determine the IP address assigned to the event broker, enter the following command:
    solace> show ip vrf management

    The displayed output lists the IP addresses assigned to the event broker (listed for intf0:1), which can be used to remotely manage it (that is, not from the VM console).


    solace> show ip vrf management
    VRF: management
    Number of interfaces: 1
    Interface    V Router   IP Address        Source
    -----------  ---------  ----------------  -------
    intf0:1      static     <IP Address>      system
    intf0:1      static     ::/0              system
    Number of active global routes: 5
    Destination       Gateway           Network Mask            Interface
    ----------------  ----------------  ----------------------  ----------   *                N/A        *                    N/A
    default                  intf0     *                  intf0
    fe80::            *                 ffff:ffff:ffff:ffff::   intf0
  4. To remotely access the Solace CLI for the event broker, you can now ssh to port 2222 of the event broker’s IP address and login as the admin user.
    ssh -p 2222 admin@<public_ip>

In addition to the admin CLI User, you can create additional CLI and file transfer users through the Solace CLI in the manner described in Management & Shell Users.

Step 5: Review Configuration Defaults

By default, the event broker starts with a basic configuration that has the most common services enabled and ready for use. This basic configuration and the default ports that are used can be modified as required. For details, see Default Configuration for Software Event Brokers.

Next Steps

You now have a software event broker container with a basic configuration that is ready for messaging tasks.

There are additional configuration tasks that you can make use of in the following topics:

When you are comfortable with your event broker, you can test messaging using the Solace SDKPerf application. You can download SDKPerf from the Other Software section in the Downloads page.

For more information about working with your event brokers, see the following: