Oracle SBC (Session Border Controller) 8.2.X

Here you can ask EVE-NG team to add new images to the list to play in lab.

Do not ask questions like "where I can get image x or Y" in that forum

Moderator: mike

Post Reply
shamankd32
Posts: 4
Joined: Wed Apr 03, 2019 2:44 am

Oracle SBC (Session Border Controller) 8.2.X

Post by shamankd32 » Wed Apr 03, 2019 3:22 am

Could you please give support to test Oracle SBC a voice lab? (with CUCM and CSRv)
Like this video but for EVE-NG

https://www.youtube.com/watch?v=xy4dOLLMR6I

More information:
https://www.oracle.com/industries/commu ... ontroller/

This is another video that tells how to install the OVA in vCenter.
https://www.youtube.com/watch?v=luWdytwBjn0&t=1465s

Uldis (UD)
Posts: 2518
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: Oracle SBC (Session Border Controller) 8.2.X

Post by Uldis (UD) » Wed Apr 03, 2019 6:56 am

Once you get ova fle, you can extract it to obtain vmdk image inside of it.
Then using simply Linux template covert it to qcow2 format.
Such way you can try any virtual node on the EVE.
As example how to create qcow2 image from ova.
https://www.eve-ng.net/documentation/ho ... lto-vm-100

all you need is create qcow2 image from vmdk and place in folder

linu-oracle-xxx

Uldis

shamankd32
Posts: 4
Joined: Wed Apr 03, 2019 2:44 am

Re: Oracle SBC (Session Border Controller) 8.2.X

Post by shamankd32 » Wed Apr 03, 2019 6:09 pm

Thank you,
the OVA already has a bunch of interfaces in VMware like 8 Virtual network interfaces,
But also, do I have to create a template as well? how the SBC will know that it need to use those interfaces and parameters?

I am referring if this step is also necessary.
Look

Code: Select all

Create new template file

Every node type in EVE-NG has a template file that specifies node startup parameters such as node name, number of interfaces, which hypervisor supports the node, and the startup parameters used by the hypervisor.

When creating a new custom image, it is usually easiest to create a template file by copying an existing template that is similar to the type of node you will create, and then modifying the copy. We’ll create a new template by copying the linux template and naming the copy linuxrouter.

The template files are stored in the EVE-NG directory /opt/unetlab/html/templates. Copy the linux.php template to create a new template file named linuxrouter.php:

eve-ng:~# cd /opt/unetlab/html/templates
eve-ng:~# cp linux.php linuxrouter.php

Next, edit the linuxrouter.php file:

eve-ng:~# vi linuxrouter.php

Make the following changes to the file:

    Change the ‘name’ value to ‘LinuxRouter’
    Change the ‘icon’ value to ‘Router.png’
    Reduce the ‘ram’ value to ‘1024’
    Increase ‘ethernet’ value to ‘4’ (or higher)
    Change ‘console’ value to ‘telnet’
    Change ‘qemu_options’ value as follows:
        delete ‘-vga std -usbdevice tablet -boot order=dc’
        add ‘-serial mon:stdio -nographic -boot order=c’

The final linuxrouter.php file should look like:

<?php
$p['type'] = 'qemu';
$p['name'] = 'LinuxRouter';
$p['icon'] = 'Router.png';
$p['cpu'] = 1;
$p['ram'] = 1024; 
$p['ethernet'] = 4;
$p['console'] = 'telnet';
$p['qemu_arch'] = 'x86_64';
$p['qemu_nic'] = 'virtio-net-pci';
$p['qemu_options'] = '-machine type=pc-1.0,accel=kvm -serial mon:stdio -nographic -boot order=c';
?> 

Create the config.php* file

We need to add the template to the node-templates list in the EVE-NG initialization file, /opt/unetlab/html/includes/init.php, so it will appear in the EVE-NG user interface. However, the init.php file is overwritten whenever we update EVE-NG.

According to the comments in the init.php file, we can create a file named config.php in the same directory and add in our own configuration which will then be included in the EVE-NG configuration when init.php runs, and which will override the associated configuration in the init.php file. The config.php file will not get overwritten when you update the EVE-NG VM.

The template names are listed in the $node-templates array in the init.php file. Copy this array to the config.php file and then add the new linuxrouter template name to the array5.

In the EVE-NG terminal window, list the init.php file:

eve-ng:~# cd /opt/unetlab/html/includes/
eve-ng:~# cat init.php

Scan through the text output for a block of text starting with $node_templates = Array(. Copy the block of text starting with $node_templates = Array( and ending with the closing parenthesis and semicolon );.

Next, create and edit the file config.php:

eve-ng:~# vi config.php

If config.php did not previously exist and you are editing a blank file, add the PHP descriptors <?php and ?> to make the new config.php file a PHP file.

Paste the copied block of text into the file, then add the following line to the array:

'linuxrouter'   =>  'Linux Router'

If adding this line somewhere inside the array, add a comma , to the end of the line. If adding this line to the end of the array, add a comma , to the end or the previous line.

You may comment out lines related to templates you will never use. This makes the EVE-NG or UNetLab user interface a bit easier to use when adding new nodes. In my case, I commented-out most of the lines in the array, except for a few Linux-related templates.

In the version of EVE-NG I used when writing this post, the contents of the config.php file with the added linuxrouter line, and with unused lines commented out, will be:

<?php
  $node_templates = Array(
    //'a10'         =>  'A10 vThunder',
    //'clearpass'       =>  'Aruba ClearPass',
    //'timos'       =>  'Alcatel 7750 SR',
    //'veos'        =>  'Arista vEOS',
    //'barracuda'       =>  'Barraccuda NGIPS',
    //'brocadevadx'     =>  'Brocade vADX',
    //'cpsg'        =>  'CheckPoint Security Gateway VE',
    'docker'        =>  'Docker.io',
    //'acs'         =>  'Cisco ACS',
    //'asa'         =>  'Cisco ASA',
    //'asav'        =>  'Cisco ASAv',
    //'cda'         =>  'Cisco Context Directory Agent',
    //'csr1000v'        =>  'Cisco CSR 1000V',
    //'cips'        =>  'Cisco IPS',
    //'ise'         =>  'Cisco ISE',
    //'c1710'       =>  'Cisco IOS 1710 (Dynamips)',
    //'c3725'       =>  'Cisco IOS 3725 (Dynamips)',
    //'c7200'       =>  'Cisco IOS 7206VXR (Dynamips)',
    //'iol'         =>  'Cisco IOL',
    //'titanium'        =>  'Cisco NX-OSv (Titanium)',
    //'firepower'       =>  'Cisco FirePower',
    //'firepower6'      =>  'Cisco FirePower 6',
    //'ucspe'       =>  'Cisco UCS-PE',
    //'vios'        =>  'Cisco vIOS',
    //'viosl2'      =>  'Cisco vIOS L2',
    //'vnam'        =>  'Cisco vNAM',
    //'vwlc'        =>  'Cisco vWLC',
    //'vwaas'       =>  'Cisco vWAAS',
    //'phoebe'      =>  'Cisco Email Security Appliance (ESA)',
    //'coeus'       =>  'Cisco Web Security Appliance (WSA)',
    //'xrv'         =>  'Cisco XRv',
    //'xrv9k'       =>  'Cisco XRv 9000',
    //'nsvpx'       =>  'Citrix Netscaler',
    //'sonicwall'       =>  'Dell SonicWall',
    'cumulus'       =>  'Cumulus VX',
    //'extremexos'      =>  'ExtremeXOS',
    //'bigip'       =>  'F5 BIG-IP LTM VE',
    //'fortinet'        =>  'Fortinet FortiGate',
    //'radware'     =>  'Radware Alteon',
    //'hpvsr'       =>  'HP VSR1000',
    //'olive'       =>  'Juniper Olive',
    //'vmx'         =>  'Juniper vMX',
    //'vmxvcp'          =>  'Juniper vMX VCP',
    //'vmxvfp'          =>  'Juniper vMX VFP',
    //'vsrx'        =>  'Juniper vSRX',
    //'vsrxng'      =>  'Juniper vSRX NextGen',
    //'vqfxre'      =>  'Juniper vQFX RE',
    //'vqfxpfe'     =>  'Juniper vQFX PFE',
    'linux'         =>  'Linux',
    'mikrotik'      =>  'MikroTik RouterOS',
    'ostinato'      =>  'Ostinato',
    //'paloalto'        =>  'Palo Alto VM-100 Firewall',
    'pfsense'       =>  'pfSense Firewall',
    //'riverbed'        =>  'Riverbed',
    //'sterra'      =>  'S-Terra',
    'vyos'          =>  'VyOS',
    //'esxi'        =>  'VMware ESXi',
    'win'           =>  'Windows',
    'vpcs'          =>  'Virtual PC (VPCS)',
    'linuxrouter'       =>  'Linux Router'
  );
?>

You can see that the new linuxrouter template is listed at the end of the array, or wherever you chose to insert it.
Troubleshooting
Source:
http://www.brianlinkletter.com/build-cu ... emulators/

I will try it tonight, see how is it going.
Image

Thank you for your help

shamankd32
Posts: 4
Joined: Wed Apr 03, 2019 2:44 am

Re: Oracle SBC (Session Border Controller) 8.2.X

Post by shamankd32 » Thu Apr 04, 2019 1:19 am

I get this error.
"CPU does not have SSSE3" (please look attached)
You do not have the required permissions to view the files attached to this post.

Uldis (UD)
Posts: 2518
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: Oracle SBC (Session Border Controller) 8.2.X

Post by Uldis (UD) » Thu Apr 04, 2019 7:54 am

need add to qemu line , cpu -host

in template

-machine type=pc,accel=kvm -vga std -usbdevice tablet -boot order=dc -cpu host

this flag will allow use host CPU settings, not KVM

Uldis

BTW, which version of EVE community you have????
Starting for Community v2.0.3-95, in the Community version is included EVE Pro custom etmplating.
Read Our cookbook section 17.3

shamankd32
Posts: 4
Joined: Wed Apr 03, 2019 2:44 am

Re: Oracle SBC (Session Border Controller) 8.2.X

Post by shamankd32 » Fri Apr 05, 2019 3:13 am

Thank you! :D
worked like a charm!

Code: Select all

# show ether
# show e
entitlements    enum            ext-band-mgr    ext-clf-svr

# show interfaces brief

Slt Prt Vlan Interface  IP                     Gateway                 Adm  Oper
Num Num   ID Name       Address                Address                 Stat Stat
--- --- ---- ---------- ---------------------- ----------------------- ---- ----
  -   -    - lo         127.0.0.1/8            -                        up   up
  -   -    - wancom0    fe80::250:ff:fe00:1100 -                        up   up
--------------------------------------------------------------------------------

# show ver
Acme Packet OS VM SCZ8.2.0 Patch 2 (Build 58)
Oracle Linux branches-7/el7-u6 {2018-11-14T07:00:00+0000}
Build Date=01/03/19
#
I use the Community version, I will read the cookbook to create a costum template for this.

Post Reply