Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
app-notes:soft-pbx [2017/12/13 14:10] – created krepelapp-notes:soft-pbx [2021/08/04 09:20] (current) – external edit 127.0.0.1
Line 5: Line 5:
 This tutorial shows how to get started with the Soft-PBX Astrisk within a LXC container. This tutorial shows how to get started with the Soft-PBX Astrisk within a LXC container.
  
 +===== Prerequisites =====
 +
 +  * NetModule Router NB2800 or NB3800 with VIRT License
 +  * LXC  arm container with Asterisk PBX
 +
 +===== Resources =====
 +
 +You can find an example of Asterisk LXC Container here:
 +
 +  * [[https://share.netmodule.com/router/public/virt/debian_jessie.tar.xz|Debian Jessie Stable (179MB) md5sum: 821bbb906b410c3690901fcf6e8c5d59]]
 +
 +===== Configuration =====
 +  - Download the container
 +  - Open GUI and go to System → Virtualization
 +  - Click "+" to add container
 +  - By settings, choose type, create a description and select storage. Root file system will be set automatically
 +  - If you want to enable networking, go to “Networking”, select routed or bridged by the Network Interface and press Apply
 +  - You should see a following screen (if you chose extended storage, the path will have storage1 instead of storage0: ''/mnt/storage1/lxc/guest0'') {{ :app-notes:virt.png |}}
 +  - Transfer the downloader container (you can use WinSCP) to the router and put in ''/mnt/storage0/lxc''
 +  - Unpack the container: <code> tar –xvf jessie.tar –C ./guest0 </code>
 +  - Check access rights using <code> ls –l </code>
 +  - If the created folder has rights 644, change them* to 755: <code> chmod 755 -R guest0 </code>
 +  - The extracted container contains rootfs directory. You need to copy the content of it to the specified root file system. Go to jessie folder: <code> cd guest0/lxc/jessie </code> 
 +  - Type <code> lxc-start –n guest0 </code>
 +  - Information about container can be accesed by typing <code> lxc-info –n guest0 </code> {{ :app-notes:info.png |}}
 +  - Now you can attach to the container by typing <code> lxc-attach –n guest0 </code>