You are using an unsupported browser. Please update your browser to the latest version on or before July 31, 2020.
close
You are viewing the article in preview mode. It is not live at the moment.
Home > Software Applications > DW Spectrum IPVMS > Integrations > Using DW Spectrum IPVMS in a Virtual Environment
Using DW Spectrum IPVMS in a Virtual Environment
print icon

https://hf-files-oregon.s3-us-west-2.amazonaws.com/hdpdigitalwatchdog_kb_attachments/2019/09-24/4763eb2b-7c2d-49d6-bfc0-47620cc0f150/image.png

Using DW Spectrum IPVMS in a Virtual Environment

-----------------------------------

Affected Roles:  Administrator, Owner

Related Digital Watchdog VMS Apps:  DW Spectrum IPVMS

Complexity:  High

Last Edit:  September 6, 2024

-----------------------------------

 

Running DW Spectrum IPVMS on a VM

Virtual machines (VM) are sometimes utilized by DW Support to test and reproduce customer scenarios, particularly because it is easier to create multiple virtual machines on a single computer as opposed to having to build several real-life, physical computers for the same task.  However, Virtual Machines can have its own unique set of issues that would not normally occur with standard physical environments, given that Spectrum's resources are expecting to be used on a physical server.

This article will outline virtual machines testing that has been performed to define DW Spectrum® IPVMS support limitations in a virtual environment.  Additionally, early VM cloning recommendations are included as well.

 

**NOTE:  When cloning a DW Spectrum® Server (even in a virtual environment), no two systems can have the same Hardware ID (HWID) or GUID.  Duplication of a HWID can cause licensing issues for both DW Spectrum® IPVMS and possibly the system as well.  Duplication of the GUID can create issues when attempting to merge servers or utilizing DW Cloud.

 

Virtual Environments

Recommended settings are difficult to establish for a virtual machine (VM) due to the large variety of setups that exist for DW Spectrum® systems such as the number of cameras, event rules, applications, third-party integrations, and virtual manager options.  As so, it may be beneficial to consider a headless system to conserve system resources.

 

DW Spectrum® Testing Environment

The two VM operating systems utilized for DW Spectrum® IPVMS are Ubuntu and Windows.  The following systems were used by our developers to test such a setup:

VM Host

  • OS – Ubuntu 20.04
  • Running Applications – VirtualBox 6.1, DW Spectrum® Client v4.2.0.32658

 

VM Guest

  • OS – Ubuntu 20.04
  • Running Applications – DW Spectrum® Server v4.2.0.32658

 

The following resources were allocated for the VM:

  • 2 Cores (i7-10510U)
  • 8 GB RAM
  • 50 GB Storage

 

In the test environment, there were 24 Full-HD streams, actively running at 25 fps, and overseeing a public road.  The DW Spectrum® Client was assigned to use an open layout and the VM that was running the Server application showed an average CPU utilization of ~22% and a 15% RAM load.

Overall, the results were reportedly stable and performed as intended. However, results may vary for others, depending on the hardware that is used.  In general, the more resources that are allocated from the actual hardware for a VM, the better the results will be for the VM.

 

System Cloning

By using a virtualization manager, identical copies (clones) of the source virtual machine (VM) can be created to easily deploy large environments on a single host machine.  However, when a VM is cloned an identical copy is made, including the Hardware ID (HWID) of the source VM.  Because HWIDs must be unique, having two identical systems with the same HWID will create licensing issues as they are bound to systems by that unique identifier.

To prevent a duplicate HWID issue in a virtual environment:

 

Create the Virtual Machine Template

  1. Build a VM with your preferred guest OS.   DW Spectrum® IPVMS is OS compatible with:
  • Windows (64-bit) – Win8, Win8.1, Win10 Pro/Enterprise
  • Ubuntu (64-bit) – LTS 16.04, 18.04, 20.04
  • Macintosh (Client only) – MacOS 11 (64-bit)

 

  1. Install the DW Spectrum® Server application onto the VM.

 

  1. Change the system configuration settings on the template VM as follows.

 

For Windows Virtual Machine

After creating the template VM, perform the following for Windows OS:

  1. Open the Registry Editor program.  You can do so by using the Search function in the system Start menu.

Alternatively, you can simultaneously press the Window+R keys () on the keyboard and to launch the Run program.

Enter “rgedit”, then click the OK button.

 

  1. The Registry Editor will display.

From the left-pane, navigate to:

HKEY_LOCAL_MACHINE\SOFTWARE\Digital Watchdog\Digital Watchdog Media Server

 

 

  1. Locate and configure the following attributes from the VM’s Registry Editor:
  • serverGuid=<delete>
  • guidIsHWID=yes

 

  1. Close the Registry Editor.

 

For Linux Virtual Machine

After creating the template VM, perform the following for Ubuntu OS:

  1. Open the Terminal program.  You can do this by using the Search function in the system Unity menu.

Alternatively, you can simultaneously press the Ctrl+Alt+T keys on the keyboard to launch the Terminal program.

 

  1. The Terminal window will display.

Enter the following command to change the current directory:

cd /opt/dwspectrum/mediaserver/etc

 

  1. Edit the configuration file with the command:
sudo nano mediaserver.conf

 

**NOTE:  If you are using a DW Blackjack setup as a template, the default system password is “Dw5pectrum”. Older DW Blackjack units that were purchased prior to June 18, 2021 previously used the default login "admin/admin".

 

  1. Locate and configure the following attributes from the VM’s registry:
  • serverGuid =<delete>
  • guidIsHWID =yes

 

  1. Press the Ctrl+X keys on the keyboard to close the configuration.

Enter “Y” to say “yes” and save the changes.

Shut down the Virtual Machine to prepare for cloning.

 

Important Cloning Tip

Be sure to shut down the VM before using it as a source of cloning.

Do not start the VM before cloning, otherwise the serverGuid and guidIsHWID will need to be configured again.

When cloning the VM, make sure to generate a NEW MAC address for each clone.  In doing so, each clone will have a unique MAC address and a unique HWID associated with it, preventing license conflicts.

 

**NOTE:  As it may still be possible that identical MAC addresses can be generated, it will be good practice to keep a list of the registered MAC addresses and Hardware IDs (HWIDs) of each VM, especially when deploying multiple virtual machines.

 

Using DW Spectrum® Client on a Virtual Machine

Virtual Machines do not run GUI (Graphical User Interface) based tasks as well as they are able to run host services/daemons due to additional processing loads that are applied to the CPU software rendering.

When running DW Spectrum Client on a VM, be sure that the any guest VMs that will be connecting to the host is also using OpenGL 2.1 or newer and has 3D Acceleration enabled in the VM settings.

There is a potential workaround, however it is not guaranteed to work.  See this KB Article for running the Spectrum Client in a limited GPU environment.

 

**NOTE:  The resulting performance will vary, depending on the virtualization manager that is being used for the simulation.  It may not be an accurate representation of a real-hardware DW Spectrum® Server.

 

Known Limitations

  • The DW Spectrum Server application fails to start and will display log file entries similar to “2017-06-09 15:12:06.945 704 ERROR:  Can’t save guid. Run once as administrator.
  • Initializing shared NAS devices may take longer due to delays in OS level calls.
  • The VM may improperly report that the hardware information of the server requires that a Hardware ID be generated.  This may cause issues with any DW Spectrum® License keys that you may be adding to the VM

 

Suitable Virtualization Managers

The following virtualization managers have been tested for DW Spectrum® IPVMS support when installed on a supported Operating System:

 

Known Incompatibility

The following virtualization managers have been tested for DW Spectrum® IPVMS support and are NOT recommended for use:

 

**NOTE:  Please be aware that each virtualization manager is NOT tested with each DW Spectrum® IPVMS software release or patch as providing support for virtualization managers and other third-party products is outside of DW Support’s area of responsibility.  It is the responsibility of the user to verify compatibility with their security installation company or product distributor.

scroll to top icon