PVE 2.2 + Elastix 2.3

Smart Translation:
Code:
proxmox ve 2.2 elastix2.3 templates to create 
Installed proxmox ve 2.2 
ssh to proxmox ve 
apt-get -y update 
apt-get -y makedev 
apt-get -y install build-essential make pve-headers-`uname -r` 
cd /usr/src/
wget [URL]http://downloads.digium.com/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz[/URL]
tar zxfv dahdi-linux-complete-current.tar.gz
cd dahdi-linux-complete-*
make all
make install
make config
mkdir /etc/asterisk
service dahdi start 
dahdi_genconf
vi /etc/dahdi/modules # All plus the # sign Comment 
sed -i 's|ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length|ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp|' /etc/vz/vz.conf 
/etc/init.d/vz restart
// Disable ipv6 
/boot/grub/grub.cfg 
linux /vmlinuz-2.6.32-16-pve root=/dev/mapper/pve-root ro quiet 
linux /vmlinuz-2.6.32-16-pve root=/dev/mapper/pve-root ro ipv6.disable=1 quiet 

elastix2.3 machine Reference:
[URL]http://wiki.openvz.org/Creating_a_CentOS_5.0_Template[/URL]
CentOS Physical to Container Reference:
[URL]http://openvz.org/Physical_to_container[/URL]
First, create a file called /tmp/exclude and add the following lines to it: 
.bash_history 
lost+found
/dev/* 
/mnt/* 
/tmp/*
/proc/*
/sys/* 
/usr/src/* 
tar --numeric-owner -czvf /tmp/centos-5.7-x86_64-elasitx_orig-image.tar.gz -X /tmp/exclude /
where < ARCH > represents the system architecture ( i386 or 
x86_64 ) and < DISTRO > represents the distribution (default, minimal, etc.). 
scp /tmp/centos-5.7-x86_64-elasitx_orig-image.tar.gz [EMAIL="root@ip:/var/lib/vz/template/iso"]root@ip:/var/lib/vz/template/iso[/EMAIL] 
Back to proxmox ve - use the web centos-5.7-x86_64-elasitx_orig-image as the template to create the virtual machine assumed VM ID 100 
ssh to proxmox ve 
cd /var/lib/vz/private/100 
Edit the etc/inittab file and comment out the lines that respawn /sbin/mingetty on tty1 through tty6 . Just put a # at the beginning of the line. (Only for Proxmox VE 1.x series)
etc/inittab file part contents: 
1:2345:respawn:/sbin/agetty tty1 38400 linux 

Remove the etc/mtab file and then create a symbolic link by typing 
ln -s /proc/mounts etc/mtab
 
Remove all of the lines from etc/fstab except for the line that mounts /dev/pts 
Edit etc/rc.d/rc.sysinit and comment out the line that starts /sbin/start_udev by placing a # at the beginning of the line. 
mknod dev/ptmx c 5 2 mknod dev / ptmx c 5 2 
mkdir dev/pts mkdir dev / pts 
cd dev 
/sbin/MAKEDEV ttyp ptyp 
 
cd ../ 
mknod dev/null c 1 3
mknod -m 644 dev/random c 1 8
mknod dev/urandom c 1 9
mknod dev/tty9 c 4 9
Create the var/lock/rpm folder. 
Edit etc/sysconfig/network and set NETWORKING_IPV6 to no . 
Add the following lines to etc/modprobe.d/blacklist.conf : 
blacklist ipv6
blacklist net-pf-10

Disable any physical NICs by modifying the etc/sysconfig/network-scripts/ifcfg-ethX files (where X is the interface number starting from 0 ) and setting ONBOOT to no . 
Check etc/sysconfig/init to see if PROMPT=yes, and then change to no. Otherwise when startup init script rc will enter interactive mode and wait there forever 

vzctl set 100 --devnodes dahdi/pseudo:rw --save
vzctl start 100
vzctl enter 100
chkconfig haldaemon off
chkconfig dahdi off
chkconfig wanrouter off
rm -rf /etc/init.d/dahdi
rm -rf /etc/init.d/wanrouter
chkconfig acpid off
chkconfig kudzu off
chkconfig xfs off
chkconfig rpcidmapd off
chkconfig rpcgssd off
chkconfig nfslock off
chkconfig mdmonitor off
chkconfig ip6tables off
exit
cd /var/lib/vz/private/100
(will have to remove IP of container if set)
tar -czvf /var/lib/vz/template/cache/centos-5-x86_64-elasitx.tar.gz ./ 
(will have to use numerical ids and maybe amd64 as the ARCH)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!