Поиск по моему блогу

Elastix 2.0 and OpenVZ / Proxmox template

Here is a howto on installing Elastix 2.0 in a vm under OpenVZ / Proxmox:

#Download, compile, and install dahdi on hardware node

#Download a Centos 5.4 template for the same platform the hardware node is 32/64 bit
cd /var/lib/vz/template/cache
wget download.openvz.org/template/precreated/centos-5-x86_64.tar.gz

#Start vm and give it access to the /dev folder
vzctl start $VID
vzctl set $VID --devnodes dahdi/channel:rw --save
vzctl set $VID --devnodes dahdi/ctl:rw --save
vzctl set $VID --devnodes dahdi/timer:rw --save
vzctl set $VID --devnodes dahdi/pseudo:rw --save
vzctl set $VID --devnodes null:rw --save

#Download Elastix 2.0, mount on hardware node, and copy the folder to the vm
cd /var/lib/vz/template/iso/

wget downloads.sourceforge.net/project/elasti...64-bin-07ago2010.iso
mkdir /mnt/Elastix
mount -t iso9660 -o loop /var/lib/vz/template/iso/Elastix-2.0.1-x86_64-bin-07ago2010.iso /mnt/Elastix
cp -R /mnt/Elastix /var/lib/vz/private/$VID/usr/src

#Enter vm and configure below:
ifconfig eth0 192.168.128.12/24
route add default gw 192.168.128.1

yum -y install createrepo
createrepo /usr/src/Elastix

echo '
[local]
enabled = 1
name = Elastix
baseurl = file:///usr/src/Elastix
gpgcheck = 0
' > /etc/yum.repos.d/elastix.repo

yum -y update

yum -y install asterisk* elastix-* freeze fxload libmfcr2 lzop perl-HTML-TokeParser-Simple perl-WWW-Mechanize mod_ssl mlocate gcc gcc-c++ system-config-network-tui wget sox nano

mv -f /etc/yum.repos.d/elastix.repo.rpmnew /etc/yum.repos.d/elastix.repo

yum clean all

sed -i 's/TTY=9/#TTY=9/g' /usr/sbin/safe_asterisk
sed -i 's/chown asterisk \/dev\/tty9/#chown asterisk \/dev\/tty9/g' /etc/init.d/asterisk
sed -i 's/\/sbin\/start_udev/#\/sbin\/start_udev/g' /etc/rc.d/rc.sysinit
sed -i 's/\/usr\/sbin\/fxotune -s/#\/usr\/sbin\/fxotune -s/g' /etc/rc.local
sed -i 's/chown $AMPASTERISKUSER \/dev\/tty9/#chown $AMPASTERISKUSER \/dev\/tty9/g' /var/lib/asterisk/bin/freepbx_engine

chkconfig haldaemon off
chkconfig asterisk off
chkconfig dahdi off
chkconfig wanrouter off

rm -rf /etc/init.d/dahdi
rm -rf /etc/init.d/wanrouter
rm -rf /usr/src/Elastix

echo 'DEVICE=eth0' > /etc/sysconfig/network-scripts/ifcfg-eth0
system-config-network

service mysqld start
/etc/rc3.d/S66elastix-firstboot start

reboot

yum -y update

################

I also have a 64 built template for download:
docs.google.com/uc?id=0B8T1zyMjIRDgMjBjM...t=download&hl=en

You must run below and reboot on first boot:
/etc/rc3.d/S66elastix-firstboot start

Have fun,
Gil

Источник http://www.elastix.org/en/component/kunena/25-newbies-corner-/57615-elastix-20-and-openvz--proxmox-template.html

Комментариев нет:

Реклама от BigBN