Changes
Update to allow Plesk VPN install to recognize kernel release
Below is an example transcript of how to install installing Plesk into an OpenVZ VE container (VEcontainer#11):
<pre>
# vzctl create 11 --ostemplate centos-4-i386-default
Creating VPS container private area: /vz/private/11
Performing postcreate actions
# vzctl set 11 --quotaugidlimit 150 --saveSaved parameters for VPS 11\# vzctl set 11 --numproc 400:400 --save\Saved parameters for VPS 11 # vzctl set 11 --kmemsize 16384000:18022400 --saveSaved parameters for VPS 11\# vzctl set 11 --privvmpages 262144:292912 --saveSaved parameters for VPS 11\# vzctl set 11 --hostname=plesk.local --saveexample.com \Saved parameters for VPS 11 # vzctl set 11 --diskspace 2000000:2000000 --saveSaved parameters for VPS 11\ # vzctl set 11 --shmpages 16384:16384 --saveUB limits were set successefully\ # vzctl set 11 --ipadd 192127.1681.512.55 3 \ --saveSaved parameters for VPS container 11
# vzctl set 11 --userpasswd root:pass
# vzctl set 11 --iptables "iptable_filter iptable_mangle ipt_limit ipt_multiport ipt_tos ipt_TOS ipt_REJECT ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_LOG ipt_length ip_conntrack ip_conntrack_ftp ip_conntrack_irc ipt_conntrack ipt_state ipt_helper iptable_nat ip_nat_ftp ip_nat_irc" --save
Saved parameters for VPS container 11
# vzctl start 11
Starting VPS container ...VPS container is mounted
Adding IP address(es): 192.168.51.55
Setting CPU units: 1000
Set hostname: plesk.local
Setting quota ugidlimit: 150
If you want to run a VPN server inside the container you need to [[VPN via the TUN/TAP device|TUN/TAP module]]. The following commands consolidate what needs to be done:
<pre>
# modprobe tun
# lsmod | grep tun
# vzctl set 11 --devices c:10:200:rw --save
Setting devices
Saved parameters for VPS container 11
# vzctl exec 11 mkdir -p /dev/net
# vzctl exec 11 mknod /dev/net/tun c 10 200
# vzctl exec 11 chmod 600 /dev/net/tun
</pre>
<pre>
# cp -f /usretc/localresolv.conf /vz/private/11/etc/resolv.conf # vzctl enter 11entered into container 11# cd# wget http://download1.parallels.com/Plesk/Plesk8.1/CentOS4.3/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386# chmod a+x psa*# ./bin/autoinstallerpsa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386
</pre>
When the installation over you will see something along the lines of:
<pre>
Congratulations!
Plesk has been successfully installed on your server.
"/etc/init.d/psa start" and
"/etc/init.d/psa stop" respectively.
</pre>
[[Plesk install full output]]
Plesk "about" webpage:: http://www.parallels.com/en/products/plesk/: http://www.parallels.com/en/products/plesk/docs/ Done. You can create a [[Debian_template_creation#Preparing_for_and_packing_template_cache|prepackaged template ]] from this VE container for further future installations.
[[categoryCategory:HOWTO]]