返回列表 發帖

How to install and run centos 6 and asterisk in a VMWare VM machine 已完成

本帖最後由 ckleea 於 2011-10-19 08:33 編輯

Initially I have just put a centos 6 VM in my linux server running under ATOM D525 CPU, 4GB Ram and Centos 5.7 32 bits and wish to see the performance. I use VMPlayer 4.0

screenshot.08-10-2011 22.54.04.png

I find the speed and performance of the old image is acceptable. Now I have an idea to set up a new Centos 6 - 32 bits, Asterisk 1.8x with GUI and MySQL backend, plus some other web service on a VM for testing first and then for second asterisk server.

Please see my thread below for information and progress. Look promising.

I must say it is a bit too difficult to install VM in a 32bits Atom CPU Linux server.

TOP

本帖最後由 ckleea 於 2011-10-10 08:57 編輯

technically, there are some problems in enabling the network of Centos 6.
1. need to change /etc/sysconfig/networking/devices/ifcfg-eth0 ONBOOT=yes

If eth0 is still not found, delete the ifcfg-eth0 in /etc/sysconfig/networking/devices/ and /etc/sysconfig/networking/profiles/default

Recreate the file by using vi

2. Then check with system-config-network to see if a proper AMD device is bound to eth0
** AMD is the default network adaptor for VMPlayer

This must be done before you can proceed.

?? Bug in Centos 6

TOP

In VMPlayer, the network adaptor is using bridged mode instead of NAT because I want to access it later over internet

TOP

Once I complete, I issue an "yum update". the system is then getting the updates


screenshot.09-10-2011 15.09.09.png

TOP

The next is a reboot and then install

the followings
1. webmin from www.webmin.com
2. add ELRepo

rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://elrepo.org/elrepo-release-6-4.el6.elrepo.noarch.rpm

Add Repoforge or previously rpmforge

rpm -Uvh http://pkgs.repoforge.org/rpmfor ... 2-2.el6.rf.i686.rpm

3. yum groupinstall "Administration Tools" "Development Tools"  "MySQL Database" "Server Configuration Tools" "Web Server"

TOP

本帖最後由 ckleea 於 2011-10-10 08:58 編輯

Next step is to follow the steps in thread #3 of this

http://www.telecom-cafe.com/foru ... &extra=page%3D1

I will get an update script and post here. It will help you to automate the installation.

TOP

本帖最後由 ckleea 於 2011-10-10 09:26 編輯

A centos virtual machine within D525 ATOM CPU runs at reasonably ok speed.

But a few hurdles
1. The network issue - fixed based on changing ONBOOT=no to yes;
Finding the network card again and bind to eth0

2. The read write problems; a few errors come in as
- cannot connect to /car/run/asterisk/asterisk.ctl
- asterisk GUI can log inbut show do not have the manager privileges

Cause: security issues behind selinux
Solution: change to permissive or disable mode

The file is located at /etc/selinux/config

Now the GUI can be accessed

screenshot.2.jpg

TOP

本帖最後由 ckleea 於 2011-10-10 22:21 編輯

Follow this thread to install tigervnc-server

http://wiki.centos.org/HowTos/VNC-Server

Then, my installed programs are

Installed Groups:
   Additional Development
   Base
   CIFS file server
   Chinese Support
   Console internet tools
   Debugging Tools
   Desktop Debugging and Performance Tools
   Development tools
   Directory Client
   Directory Server
   E-mail server
   FTP server
   Fonts
   General Purpose Desktop
   Graphical Administration Tools
   Hardware monitoring utilities
   Input Methods
   Java Platform
   Large Systems Performance
   Legacy UNIX compatibility
   Legacy X Window System compatibility
   MySQL Database client
   MySQL Database server
   NFS file server
   Network file system client
   Networking Tools
   Optional packages
   PHP Support
   Performance Tools
   Perl Support
   Scientific support
   Server Platform
   System administration tools
   Web Server
   X Window System

Another command to issue is
yum install wine. Xfvb
This should be more than one needed

TOP

本帖最後由 ckleea 於 2011-10-11 20:35 編輯

Results are not bad

screenshot.11-10-2011 20.26.12.png

TOP

本帖最後由 ckleea 於 2011-10-19 08:35 編輯

So far it is almost fully functioning except DTMF. No idea why?

Follow-up:
DTMF is an issue for every system. It needs trial and error and fine tuning.

So far I have been successful to make it work for some soft clients, some hard phone, some mobile phone but not all. I think I will stop here.

TOP

本帖最後由 ckleea 於 2011-10-19 08:41 編輯

The latest set up as follow

1. VM - centos 6 + Asterisk 1.8.7.1 were built and run under a Centos 5.7 server
2. The Centos 5.7 server also has an Asterisk 1.8.7.1
3. the two asterisks were bound to two separate IPs through router configuration.
4. They were connected via SIP and IAX trunks
5. I also installed other SIP and IAX trunks to make connections to outside work
6. Both servers can access SPA3000 and OBi110 for GV and PSTN via HTTP digest auth
7. My primary server held the siptosis trunks. My VM server can assess SKYPE via intranet.
8. My VM server can access my overseas point via SIP and IAX trunks
9. All the config files were trimmed down to remove unnecessary coding.
10. Weekly scheduled task for backup was made
11. CDR records of VM Asterisk can be viewed via primary HTTP webserver

TOP

本帖最後由 ckleea 於 2011-10-19 08:44 編輯

Outstanding task

1. configure mail client to deliver voicemail via emails
2. configure fax service for the VM asterisk
3. configure other SIP trunks to improve coverage
4. review and revise the primary asterisk server to improve its functionality and trim down any unnecessary code.

TOP

本帖最後由 ckleea 於 2011-10-19 08:47 編輯

Asterisk GUI has been configured but is of no use now.

I have not used users.conf to hold the extensions information.

TOP

本帖最後由 ckleea 於 2011-10-19 08:48 編輯

My latest config files in /etc/asterisk

screenshot.19-10-2011 08.39.42.png

TOP

返回列表