Virtual Machine Installation
Instructions on how to get started with Sangoma VM SBC
Â
Download
The Wiki download page contains the latest Sangoma SBC ISO.Â
SBC Downloads
It is recommended that customers download the latest Sangoma SBC ISO.
Only use the older versions if you are already in production and need to remain on the old version.Â
Â
Please download the latest Sangoma ISO on to your system.
Â
Sangoma SBC VM License
Sangoma Sales will provide you with a: License Key
You will use this key the generate SBC License File and upload it to the Sangoma SBC GUI. Â
If you do not have the Sangoma SBC License Key pleases contact Sangoma Sales. (sales@sangoma.com)
Â
SBC VM Installation
Download Sangoma SBC Â ISO
SBC Downloads
Â
Install Sangoma ISO on VM of choice
Supported VM Platforms
Vmware
XenServer
VirtualBox
Hyper-V
Requirements
Min:
1 GIG memory
1 CPU
Bridged Network Device
Follow the installation instructions.
Next Step is to Log into the Sangoma SBC GUIÂ
ÂDefault WebGUI Login
http://<ipof VM box>
User: root
Pass: <specify password you used on install>
Â
License File Generation
Once you have logged into the Sangoma SBC GUI.
One of the first steps is to install the correct license.
In order to generate the Sangoma SBC license file, you need the License Key.
Refer to licensing Key section above.
Step by Step Instructions
Â
Navigate toÂ
Specify above license key
ÂSpecify the MAC address of the Sangoma SBC VM eth0 device.
To determine your VM eth0macaddress:Â
Navigate to Sangoma SBC GUI
Login
Click on Help -> About
The About page contains System Information table.
This table will contain the MAC address of your eth0 device.
Once you have filled out the MAC address and the Key
Click generate a license
ÂDownload License to your computer.
Â
Apply Sangoma SBC License
Navigate to Sangoma SBC GUI
Login
Click on System -> License
Click on Upload
Select downloaded license file
Â
At this pointyourwill be ready to use the SBC.
Â
Documentation
Sangoma SBC Admin Manualwill provide extensive general SBC documentation
Wikiisusedas supplementary documentation
Specific configuration examples
Application notesÂ
No labels
1 Comment
- Shahin NAZIR
Ubuntu Server + Virsh Virtual Server + OpenvSwitch
Â
Â
Installation Ubuntu Server then necessary packages for Virsh and OpenVSwitchÂ
sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils && apt-get install virtinst openvswitch-switch
Â
Backup for Network Card settings
 cp /etc/network/interfaces /etc/network/interfaces.backup
Â
Editing /etc/network/interfaces
nano /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).# The loopback network interface
auto lo
iface lo inet loopback# The primary network interface
#auto p2p1
#iface p2p1 inet dhcpauto p2p1
iface p2p1 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE 0.0.0.0 down
post-up echo 1 > /proc/sys/net/ipv6/conf/$IFACE/disable_ipv6
post-up ethtool -G $IFACE rx 4096; for i in rx tx sg tso ufo gso gro lro; do ethtool -K $IFACE $i off; done #auto vm-test-vlan2
iface vm-test-vlan2 inet static
address 10.XX.0.XX
network 10.XX.0.0
netmask 255.255.254.0
broadcast 10.XX.1.254
gateway 10.XX.0.XX
dns-nameservers 10.XX.0.XXÂ
Creating Bridge to Physical Ethernet Port
ovs-vsctl add-br br-int
CheckingÂ
root@ubuntu-kvm-test:~# ovs-vsctl showÂ
234f640c-1d44-4d6e-99da-9d53858b9120
Bridge br-int
Port br-int
Interface br-int
type: internal
ovs_version: "2.0.2"Â
Creating Port to Virtual Bridge.
 ovs-vsctl add-port br-int vm-test-vlan2 -- set interface vm-test-vlan2 type=internalÂ
root@ubuntu-kvm-test:~# ovs-vsctl showÂ
234f640c-1d44-4d6e-99da-9d53858b9120
Bridge br-int
Port "vm-test-vlan2"
Interface "vm-test-vlan2"
type: internal
Port br-int
Interface br-int
type: internal
ovs_version: "2.0.2"Â
root@ubuntu-kvm-test:~# ifconfig
br-int Link encap:Ethernet HWaddr 7e:24:84:68:b7:4cÂ
inet6 addr: fe80::d09c:1eff:fe04:e374/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1Â
RX bytes:536 (536.0 B) TX bytes:648 (648.0 B)lo Link encap:Local LoopbackÂ
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1Â
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)p2p1 Link encap:Ethernet HWaddr fc:3f:db:5a:a1:f1Â
inet addr:10.XX.0.XX Bcast:10.XX.1.255 Mask:255.255.254.0
inet6 addr: fe80::fe3f:dbff:fe5a:a1f1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51230 errors:0 dropped:0 overruns:0 frame:0
TX packets:10983 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000Â
RX bytes:65081691 (65.0 MB) TX bytes:950088 (950.0 KB)virbr0 Link encap:Ethernet HWaddr 2e:8f:3a:e5:75:3dÂ
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000Â
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)vm-test-vlan2 Link encap:Ethernet HWaddr e2:ef:b5:85:32:6cÂ
inet addr:10.XX.0.XX Bcast:10.XX.1.254 Mask:255.255.254.0
inet6 addr: fe80::e0ef:b5ff:fe85:326c/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1Â
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)Â
Connect Physical port To Virtual Openvswitch portÂ
ovs-vsctl add-port br-int p2p1
Â
Reboot The System! Â reboot
Â
View and Check final situation.
root@ubuntu-kvm-test:~# ovs-vsctl showÂ
234f640c-1d44-4d6e-99da-9d53858b9120
Bridge br-int
Port "p2p1"
Interface "p2p1"
Port "vm-test-vlan2"
Interface "vm-test-vlan2"
type: internal
Port br-int
Interface br-int
type: internal
ovs_version: "2.0.2"
root@ubuntu-kvm-test:~#Â
root@ubuntu-kvm-test:~# ifconfig
br-int Link encap:Ethernet HWaddr fc:3f:db:5a:a1:f1Â
inet6 addr: fe80::6cdf:4eff:fea3:f8c5/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:2127 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1Â
RX bytes:277839 (277.8 KB) TX bytes:648 (648.0 B)lo Link encap:Local LoopbackÂ
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1Â
RX bytes:1360 (1.3 KB) TX bytes:1360 (1.3 KB)p2p1 Link encap:Ethernet HWaddr fc:3f:db:5a:a1:f1Â
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2377 errors:0 dropped:0 overruns:0 frame:0
TX packets:158 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000Â
RX bytes:342841 (342.8 KB) TX bytes:18219 (18.2 KB)virbr0 Link encap:Ethernet HWaddr 86:96:86:6a:af:d7Â
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000Â
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)vm-test-vlan2 Link encap:Ethernet HWaddr f6:b0:d6:12:08:84Â
inet addr:10.30.0.31 Bcast:10.30.1.254 Mask:255.255.254.0
inet6 addr: fe80::f4b0:d6ff:fe12:884/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:2321 errors:0 dropped:0 overruns:0 frame:0
TX packets:161 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1Â
RX bytes:293889 (293.8 KB) TX bytes:18421 (18.4 KB)Â
Creating Virtual Port on Openvswitch for FreePBX
 ovs-vsctl add-port br-int br-fpbx -- set interface br-fpbx type=internal
Â
root@ubuntu-kvm-test:~# ovs-vsctl show
234f640c-1d44-4d6e-99da-9d53858b9120
Bridge br-int
Port "p2p1"
Interface "p2p1"
Port br-fpbx
Interface br-fpbx
type: internal
Port "vm-test-vlan2"
Interface "vm-test-vlan2"
type: internal
Port br-int
Interface br-int
type: internal
ovs_version: "2.0.2"Â
Creating Disk space for FreePBX
root@ubuntu-kvm-test:~# vgdisplayÂ
--- Volume group ---
VG Name ubuntu-kvm-test-vg
System IDÂ
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 119.00 GiB
PE Size 4.00 MiB
Total PE 30464
Alloc PE / Size 6627 / 25.89 GiB
Free PE / Size 23837 / 93.11 GiB
VG UUID sjwdaz-piR5-YbNZ-fDNV-fkfa-hKnS-nRdeKlÂ
lvcreate -n freepbx -L 15G ubuntu-kvm-test-vgÂ
lvdisplay
--- Logical volume ---
LV Path /dev/ubuntu-kvm-test-vg/root
LV Name root
VG Name ubuntu-kvm-test-vg
LV UUID KjDNhA-dKcx-mD2U-axAv-bKf8-pflt-1I1QPW
LV Write Access read/write
LV Creation host, time ubuntu-kvm-test, 2017-07-05 15:30:06 +0100
LV Status available
# open 1
LV Size 13.97 GiB
Current LE 3576
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0--- Logical volume ---
LV Path /dev/ubuntu-kvm-test-vg/swap_1
LV Name swap_1
VG Name ubuntu-kvm-test-vg
LV UUID JSoFjf-uG07-eN38-mi4F-AiiB-yx0m-638gwH
LV Write Access read/write
LV Creation host, time ubuntu-kvm-test, 2017-07-05 15:30:06 +0100
LV Status available
# open 2
LV Size 11.92 GiB
Current LE 3051
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1--- Logical volume ---
LV Path /dev/ubuntu-kvm-test-vg/freepbx
LV Name freepbx
VG Name ubuntu-kvm-test-vg
LV UUID TdyMIR-3e57-Q081-yLdd-j7LT-57LR-7UqXV1
LV Write Access read/write
LV Creation host, time ubuntu-kvm-test, 2017-07-05 16:10:57 +0100
LV Status available
# open 0
LV Size 15.00 GiB
Current LE 3840
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2Â
export EDITOR=nano
Â
Installing Virtual MachineÂ
virt-install --name freepbx --hvm --noautoconsole --ram 1024 --nonetworks --vcpus=1 --graphics vnc,port=5911,listen=0.0.0.0 --os-type=linux --cdrom /home/isos/SNG7-FPBX-64bit-1706-1.iso --disk path=/dev/ubuntu-kvm-test-vg/freepbx
Â
virsh list --all
Id Name State
----------------------------------------------------
2 freepbx runningÂ
Editing Virtual Machine
virsh edit freepbx
Â
<boot dev='cdrom'/>
<interface type='direct'>
<source dev='br-fpbx' mode='passthrough'/>
<model type='virtio'/>
</interface>Â
Starting to install FreePBX on VNC Viever
virsh start freepbx --paused
Attaching Image Disk to Virtual Machine
virsh attach-disk --type cdrom --mode readonly freepbx /home/isos/SNG7-FPBX-64bit-1706-1.iso hdcÂ
virsh resume freepbx
Now VNC viewer xxx.xxx.xxx.xxxx:5911 ( your Server IP address : VNC Port ) Then we are continue to install FreePBX on GUI.
Â
After finish installation we have to remove attached image disk on our virtual machine.
virsh destroy freepbx
Auto Start after reboot our Host Virtual MachineÂ
virsh autostart freepbx
virsh start freepbx