1. Introduction

This guide describes how to set up CodeMeter license in the acontis Hypervisor. It is assumed that the steps listed in the Hypervisor Quick Start guide have been successfully executed.

2. Install RTOSVisor Protected-Package

  • First copy or download the files from your License_Protected.HvT1LicT1....zip package to RTOSVisor.

  • Now ensure the installation script from the package is executable:

    chmod +x ~/install.sh
    
  • Next the installation can be started:

    sudo ./install.sh
    
  • Finish the installation by rebooting RTOSVisor.

Install RTOSVisor Protected-Package

Fig. 2.1 Install RTOSVisor Protected-Package

3. CmAct - Configure Binding Device

‘CmAct’ is a software-based licensing method using a virtual- instead of an USB- dongle. In order to use a virtual dongle license a network card has to be selected.

  • The license will be bound to this card.

    Caution

    If the card is removed from the system or assigned to a guest (pass-through) the license will break until the card is returned.

  • List the cards available:

    /hv/bin/hv_license.py list_mac
    
  • If there are multiple cards you can identify the desired one by calling

    ip addr
    

    before and after disconnecting it.

Selecting a network card

Fig. 3.1 Selecting a network card

  • Select the card to be used for licensing using its MAC or PCI address:

    sudo /hv/bin/hv_license.py set_mac --mac_or_pci_address 00:0c:29:2e:65:03
    

    or

    sudo /hv/bin/hv_license.py set_mac --mac_or_pci_address 0000:02:01.0
    

Hint

The information will be stored at /usr/share/CodeMeter/Plugins/64/6001978/6001978-Mac.cfg

Configure the MAC address

Fig. 3.2 Configure the MAC address

Now everything is prepared to create a license request.

4. CmAct - Breaking the license

The license will break (become invalid) when

  • the ‘Binding Device’ is not available, not configured or different from the one used for the license request.

  • the mainboard is changed.

5. CmAct - Create license request

Caution

Continue only if you already installed the ‘Protected-Package’, configured the ‘Binding Device’ and rebooted the system.

  • Create a license request:

    /hv/bin/hv_license.py request_license
    

    You can optionally specify the output file or the template file to be used:

    /hv/bin/hv_license.py request_license --request_filename /hv/license/MyLicRequest.WibuCmRaC --template_filename /hv/license/Hypervisor_Type1_6001978-Mac.WibuCmLIF
    

    The default directory is /hv/license and the default name is constructed by the computername, the license type and the license’s serial number.

Create a license request

Fig. 5.1 Create a license request

  • Send the created file (in this example GTT-HV240314_6001978-Mac_130-1790785778.WibuCmRaC) to your distributor to receive a license update.

6. CmAct - Import license update

Import the license update from your distributor:

/hv/bin/hv_license.py update_license --request_filename /hv/license/GTT-HV240314_6001978-Mac_130-3041718736.WibuCmRaU

Hint

your filename will be different!

Import a license update

Fig. 6.1 Import a license update

7. CmAct - Additional actions

  • List all licenses:

    /hv/bin/hv_license.py list_licenses
    
  • Delete a license by its serial number:

    /hv/bin/hv_license.py delete_license --serial_number 130-3041718736
    
  • Re-import a license:

    /hv/bin/hv_license.py update_license --request_filename /hv/license/GTT-HV240314_6001978-Mac_130-3041718736.WibuCmRaU
    

Important

Keep a backup of the license update file and the used MAC address so a re-install of the license is possible.

Import a license update

Fig. 7.1 Import a license update

8. CmAct - System Update/Restore

Keep a backup of the license update file and the used MAC address so you can re-install the license. In case you have to re-install the system these steps are required to re-install the license:

9. Troubleshooting

CodeMeter license problems can be analysed by:

sudo cmu --cmdust

The output can also be redirected to a file to be forwarded to your support:

sudo cmu --cmdust >~/Downloads/cmu_cmdust.txt

The following tables might help to identify some errors.

Table 9.1 General errors

Code

Description

E1

The plugin does not provide a required function.

E2

The plugin is deactivated for this start of CodeMeter because it previously caused, for example, a crash.

E3

The plugin could not be loaded (1).

E4

The plugin could not be loaded (2).

E6

These errors cover errors the plugin issued, or in exceptional cases, errors which CmActLicense “noticed” only after the plugin has been called.

Table 9.2 Plugin specific errors

Code

Description

E6-1

The plugin does not provide a required function.

E6-2

An exception was thrown.

E6-3

A waiting time exceeded.

E6-4

Writing did not consider buffer length.

E6-5

The format of the feature value is invalid or the feature value has not been set by the plugin.

E6-6

Internal error.

E6-10000

The feature value could not be calculated because, for example, the dongle or the SIM card is missing.

E6-20000 - E6-29999

Vendor-specific codes.

Table 9.3 acontis specific errors

Code

Description

E6-20000

The MAC address configuration could not be found or accessed.

E6-20001

The MAC address string contains less than 17 characters.

E6-20002

The device with the configured MAC address could not be found.

E6-20003

Open directory /sys/devices failed.