Based on Juniper “Junos Space Virtual Appliance Installation and Configuration Guide” , JunOS Space “ must deploy the virtual appliance on a VMware ESX, VMWare ESXi or KVM server, which provides a CPU, hard disk, RAM, and a network controller, but requires installation of an operating system and applications to become fully functional.”

In my test environment, one JunOS Space has been installed on Citrix Xen environment and it is working fine until we tried to import a license.

The license was generated from Juniper License site and emailed to us in a txt file. It used to work on another machine hosted in Vmware ESX environment. Unfortunately, this time, JunOS Space said no.

The License Information windows says:
License upload failed. Please check the following:
1) License data format
2) License Keys

Juniper Space VE at Citrix Xen Server – License Error

 


Solution:

JTAC was able to help this out using a workaround, basically it just changed JunOS Space Sql database model number from HVM domU to Vmware Virtual Platform. This works.

 

Space release 16.1R2.7 (381623)

Last login: Thu Mar 23 13:51:52 2017 from 10.9.200.14

Welcome to the Junos Space network settings utility.

Initializing, please wait


Junos Space Settings Menu

1> Change Password
2> Change Network Settings
3> Change Time Options
4> Retrieve Logs
5> Security
6> Expand VM Drive Size
7> (Debug) run shell

A> Apply changes
Q> Quit
R> Redraw Menu

Choice [1-7,AQR]: 7

[sudo] password for admin: 
[root@space-c6186f1b3edb ~]# 
[root@space-c6186f1b3edb ~]# 
[root@space-c6186f1b3edb ~]# 
[root@space-c6186f1b3edb ~]# mysql -u jboss -pnetscreen build_db
Warning: Using a password on the command line interface can be insecure.
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 603536
Server version: 5.6.34-enterprise-commercial-advanced-log MySQL Enterprise Server - Advanced Edition (Commercial)

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> select HardwareModel from FABRIC_NODE;
+---------------+
| HardwareModel |
+---------------+
| HVM domU      |
|  HVM domU     |
+---------------+
2 rows in set (0.00 sec)

mysql> update FABRIC_NODE set HardwareModel = 'VMware Virtual Platform' where HardwareModel='HVM domU';
Query OK, 1 row affected (0.01 sec)
Rows matched: 1  Changed: 1  Warnings: 0

mysql> select HardwareModel from FABRIC_NODE;
+-------------------------+
| HardwareModel           |
+-------------------------+
| VMware Virtual Platform |
|  HVM domU               |
+-------------------------+
2 rows in set (0.00 sec)

mysql> update FABRIC_NODE set HardwareModel = 'VMware Virtual Platform' where HardwareModel=' HVM domU';
Query OK, 1 row affected (0.01 sec)
Rows matched: 1  Changed: 1  Warnings: 0

mysql> select HardwareModel from FABRIC_NODE;
+-------------------------+
| HardwareModel           |
+-------------------------+
| VMware Virtual Platform |
| VMware Virtual Platform |
+-------------------------+
2 rows in set (0.00 sec)

mysql> quit
Bye
[root@space-c6186f1b3edb ~]# 
[root@space-c6186f1b3edb ~]# 
[root@space-c6186f1b3edb ~]# 


License has been accepted as shown in the following screenshot.



Summary for Resolution detailed steps:

Junos Space is Running on Citrix
platform, not compatible as per release notes, because of this we were unable
to activate the license.
By doing some SQL magic we were
able to activate it, steps:
  • ·
    Log to Junos space
    CLI (debugging mode #7)
  • ·
    Then, access
    MySQL 

            #mysql -u jboss -pnetscreen build_db 
  • ·
    Then, run: 

              #mysql> select HardwareModel from FABRIC_NODE;
  • ·
    To get the following
    output: 

+—————–+
| HardwareModel   |
+—————–+
| HVM domU |
+—————–+
1 row in set (0.00 sec) 
  • ·
    Then, it is required
    to change the value ‘Virtual Machine’ for ‘VMware Virtual Platform’
    using: 

# update FABRIC_NODE set HardwareModel = ‘VMware Virtual Platform’ where
HardwareModel=’HVM domU’; 
  • ·
    Copy –paste the
    license on notepad++ to avoid tabulation / indentation issues
  • ·
    License successfully
    activated.

By Jon

Leave a Reply