This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
virtualization:openvz [2012/08/25 18:35] gcooper |
virtualization:openvz [2012/08/31 14:46] (current) gcooper |
||
---|---|---|---|
Line 24: | Line 24: | ||
===== PBX ===== | ===== PBX ===== | ||
+ | |||
+ | http:// | ||
See [[voice: | See [[voice: | ||
Line 32: | Line 34: | ||
http:// | http:// | ||
+ | |||
+ | ==== Firewall ==== | ||
+ | |||
+ | We run the firewall on the Host Node (HN). | ||
+ | |||
+ | Stop all running VMs. | ||
+ | |||
+ | < | ||
+ | sed -i ' | ||
+ | |||
+ | / | ||
+ | </ | ||
==== DAHDI ==== | ==== DAHDI ==== | ||
Line 56: | Line 70: | ||
< | < | ||
- | cat / | + | echo hpet > / |
</ | </ | ||
Line 69: | Line 83: | ||
Acceptable score: >99.975 | Acceptable score: >99.975 | ||
+ | |||
+ | === Make DAHDI Timing Available to CTs === | ||
+ | |||
+ | This assumes Asterisk is running as the user ' | ||
+ | |||
+ | < | ||
+ | CTID=100 | ||
+ | vzctl stop $CTID | ||
+ | vzctl set $CTID --devnodes dahdi/ | ||
+ | vzctl start $CTID | ||
+ | vzctl exec $CTID chown -R asterisk.asterisk /dev/dahdi / | ||
+ | </ | ||
+ | |||
+ | === Alternate Method? === | ||
You can export devices from the Hardware Node (HN) to the container (CT) by using the devnodes flag. | You can export devices from the Hardware Node (HN) to the container (CT) by using the devnodes flag. | ||
Line 80: | Line 108: | ||
===== Templates ===== | ===== Templates ===== | ||
- | OpenVZ containers are created from templates. | + | OpenVZ containers are created from templates. |
==== Creating Templates ==== | ==== Creating Templates ==== | ||
Line 92: | Line 120: | ||
==== Create a FreePBX (Centos 5) Template on Proxmox ==== | ==== Create a FreePBX (Centos 5) Template on Proxmox ==== | ||
- | Install your Centos server and application to a physical machine. | + | - Install your Centos server and application to a physical machine. |
+ | - Create a Centos 5 container using an existing Centos template and shut it down. | ||
- | Create a Centos 5 container using an existing Centos template and shut it down. | + | === Physical Machine (Source) === |
- | Log into the Proxmox | + | Clean out the YUM database and stop running applications: |
+ | |||
+ | < | ||
+ | yum clean all | ||
+ | |||
+ | amportal stop | ||
+ | service dnsmasq stop | ||
+ | service httpd stop | ||
+ | service mysqld stop | ||
+ | </ | ||
+ | |||
+ | === Proxmox | ||
< | < | ||
Line 220: | Line 260: | ||
+ | Using '' | ||
+ | < | ||
+ | vim / | ||
+ | |||
+ | .bash_history | ||
+ | lost+found | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | /usr/src/* | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | tar --numeric-owner -czvf / | ||
+ | |||
+ | scp / | ||
+ | </ | ||