Hi I successfully managed to converted the kvm image of asterisk pbx based on Centos into openvz container image by following http://wiki.openvz.org/Physical_to_container
I also have downloaded the openvz image of mgate (proxmox mail gateway)
I compared the proxmox mail gateway, mgate container (105) conf file located in /etc/vz/conf/105.conf with
the one I created located at /etc/vz/conf/211.conf
I made some adjustments in my newly created conf file according to what was set in 105.
When I started the container 211, I got the beautiful root prompt on CLI.
The only problem I found was that the network was not showing up.
when I tried run the ifconfig eth0. It told me that could not find the eth device.
I have added an attachament of the screenshot in this post.
Here is the conf file I have for my container 211
# PVE default config for 256MB RAM
ONBOOT="no"
# Primary parameters
NUMPROC="1024:1024"
NUMTCPSOCK="9223372036854775807:9223372036854775807"
NUMOTHERSOCK="9223372036854775807:9223372036854775807"
VMGUARPAGES="262144:9223372036854775807"
# Secondary parameters
KMEMSIZE="9223372036854775807:9223372036854775807"
OOMGUARPAGES="262144:9223372036854775807"
PRIVVMPAGES="262144:274644"
TCPSNDBUF="9223372036854775807:9223372036854775807"
TCPRCVBUF="9223372036854775807:9223372036854775807"
OTHERSOCKBUF="9223372036854775807:9223372036854775807"
DGRAMRCVBUF="9223372036854775807:9223372036854775807"
# Auxiliary parameters
NUMFILE="9223372036854775807:9223372036854775807"
NUMFLOCK="9223372036854775807:9223372036854775807"
NUMPTY="255:255"
NUMSIGINFO="1024:1024"
DCACHESIZE="9223372036854775807:9223372036854775807"
LOCKEDPAGES="131072:131072"
SHMPAGES="9223372036854775807:9223372036854775807"
NUMIPTENT="9223372036854775807:9223372036854775807"
PHYSPAGES="0:9223372036854775807"
# Disk quota parameters
DISKSPACE="29360128:32296140"
DISKINODES="5600000:6160000"
QUOTATIME="0"
QUOTAUGIDLIMIT="0"
# CPU fair sheduler parameter
CPUUNITS="1000"
CPUS="1"
VE_ROOT="/var/lib/vz/root/$VEID"
VE_PRIVATE="/var/lib/vz/private/$VEID"
OSTEMPLATE="centos-5.0-aah_2.7_i386"
ORIGIN_SAMPLE="pve.auto"
IP_ADDRESS="192.168.45.51"
HOSTNAME="asterisk1.abc.com"
DESCRIPTION="aah"
NAMESERVER="192.168.45.1"
SEARCHDOMAIN="abc.com"
See Attachment as well.
Please let me know where am I going wrong.
Thanks in advance
I also have downloaded the openvz image of mgate (proxmox mail gateway)
I compared the proxmox mail gateway, mgate container (105) conf file located in /etc/vz/conf/105.conf with
the one I created located at /etc/vz/conf/211.conf
I made some adjustments in my newly created conf file according to what was set in 105.
When I started the container 211, I got the beautiful root prompt on CLI.
The only problem I found was that the network was not showing up.
when I tried run the ifconfig eth0. It told me that could not find the eth device.
I have added an attachament of the screenshot in this post.
Here is the conf file I have for my container 211
# PVE default config for 256MB RAM
ONBOOT="no"
# Primary parameters
NUMPROC="1024:1024"
NUMTCPSOCK="9223372036854775807:9223372036854775807"
NUMOTHERSOCK="9223372036854775807:9223372036854775807"
VMGUARPAGES="262144:9223372036854775807"
# Secondary parameters
KMEMSIZE="9223372036854775807:9223372036854775807"
OOMGUARPAGES="262144:9223372036854775807"
PRIVVMPAGES="262144:274644"
TCPSNDBUF="9223372036854775807:9223372036854775807"
TCPRCVBUF="9223372036854775807:9223372036854775807"
OTHERSOCKBUF="9223372036854775807:9223372036854775807"
DGRAMRCVBUF="9223372036854775807:9223372036854775807"
# Auxiliary parameters
NUMFILE="9223372036854775807:9223372036854775807"
NUMFLOCK="9223372036854775807:9223372036854775807"
NUMPTY="255:255"
NUMSIGINFO="1024:1024"
DCACHESIZE="9223372036854775807:9223372036854775807"
LOCKEDPAGES="131072:131072"
SHMPAGES="9223372036854775807:9223372036854775807"
NUMIPTENT="9223372036854775807:9223372036854775807"
PHYSPAGES="0:9223372036854775807"
# Disk quota parameters
DISKSPACE="29360128:32296140"
DISKINODES="5600000:6160000"
QUOTATIME="0"
QUOTAUGIDLIMIT="0"
# CPU fair sheduler parameter
CPUUNITS="1000"
CPUS="1"
VE_ROOT="/var/lib/vz/root/$VEID"
VE_PRIVATE="/var/lib/vz/private/$VEID"
OSTEMPLATE="centos-5.0-aah_2.7_i386"
ORIGIN_SAMPLE="pve.auto"
IP_ADDRESS="192.168.45.51"
HOSTNAME="asterisk1.abc.com"
DESCRIPTION="aah"
NAMESERVER="192.168.45.1"
SEARCHDOMAIN="abc.com"
See Attachment as well.
Please let me know where am I going wrong.
Thanks in advance
Attachments
Last edited: