<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Thatha</id>
	<title>OpenVZ Virtuozzo Containers Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Thatha"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Thatha"/>
	<updated>2026-06-13T19:09:49Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Plesk_in_VE&amp;diff=2623</id>
		<title>Plesk in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Plesk_in_VE&amp;diff=2623"/>
		<updated>2007-01-04T21:17:09Z</updated>

		<summary type="html">&lt;p&gt;Thatha: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below is an example transcript of installing Plesk into an OpenVZ VE (VE#11):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl create 11 --ostemplate centos-4-i386-default&lt;br /&gt;
Creating VPS private area: /vz/private/11&lt;br /&gt;
Performing postcreate actions&lt;br /&gt;
VPS private area was created&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --quotaugidlimit 150 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --numproc 400:400 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --kmemsize 16384000:18022400 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --privvmpages 262144:292912 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --hostname=plesk.example.com --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --diskspace 2000000:2000000 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --shmpages 16384:16384 --save&lt;br /&gt;
UB limits were set successefully&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --ipadd 127.1.2.3 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --userpasswd root:pass&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --iptables &amp;quot;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&amp;quot; --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl start 11&lt;br /&gt;
Starting VPS ...&lt;br /&gt;
VPS is mounted&lt;br /&gt;
Adding IP address(es): 192.168.51.55&lt;br /&gt;
Setting CPU units: 1000&lt;br /&gt;
Set hostname: plesk.local&lt;br /&gt;
Setting quota ugidlimit: 150&lt;br /&gt;
VPS start in progress...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to run a VPN server inside the VE you need to [[VPN via the TUN/TAP device|TUN/TAP module]]. The following commands consolidate what needs to be done: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# modprobe tun&lt;br /&gt;
# lsmod | grep tun&lt;br /&gt;
tun                     6624  0 &lt;br /&gt;
# vzctl set 11 --devices c:10:200:rw --save&lt;br /&gt;
Setting devices&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
# vzctl exec 11 mkdir -p /dev/net&lt;br /&gt;
# vzctl exec 11 mknod /dev/net/tun c 10 200&lt;br /&gt;
# vzctl exec 11 chmod 600 /dev/net/tun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that the VE's hostname (plesk.example.com) is resolving correctly to the VE's IP address (127.1.2.3). You can also add the corresponding record to /etc/hosts as a workaround.&lt;br /&gt;
&lt;br /&gt;
Then, go to http://www.swsoft.com/download/plesk8/ and download the appropriate autoinstaller or the appropriate RPM. In this case, [[http://download1.swsoft.com/Plesk/Plesk8.1/CentOS4.3/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386|CentOS]] 4.3.&lt;br /&gt;
&lt;br /&gt;
If you want to download the autoinstaller all you need to do is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cp -f /etc/resolv.conf /vz/private/11/etc/resolv.conf &lt;br /&gt;
# vzctl enter 11&lt;br /&gt;
entered into VE 11&lt;br /&gt;
# cd&lt;br /&gt;
# wget http://download1.swsoft.com/Plesk/Plesk8.1/CentOS4.3/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386&lt;br /&gt;
# chmod a+x psa*&lt;br /&gt;
# ./psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed as you would if you were installing Plesk without OpenVZ.&lt;br /&gt;
&lt;br /&gt;
When the installation over you will see something along the lines of:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
                             Congratulations!&lt;br /&gt;
        Plesk has been successfully installed on your server.&lt;br /&gt;
        To complete the system configuration, please proceed to URL:&lt;br /&gt;
        https://plesk.local:8443/ or&lt;br /&gt;
        https://127.0.0.1:8443/&lt;br /&gt;
        Use the login name 'admin' and password 'setup'.&lt;br /&gt;
&lt;br /&gt;
        Further, use the following commands to start and stop Plesk:&lt;br /&gt;
        &amp;quot;/etc/init.d/psa start&amp;quot; and&lt;br /&gt;
        &amp;quot;/etc/init.d/psa stop&amp;quot; respectively.&lt;br /&gt;
&lt;br /&gt;
        All Plesk control panel documentation is available at&lt;br /&gt;
        http://www.swsoft.com/en/products/plesk80/docs&lt;br /&gt;
&lt;br /&gt;
 *****************************************************************************&lt;br /&gt;
 *                                                                           *&lt;br /&gt;
 *      NOTE:   You have a default key file with limited functionality       *&lt;br /&gt;
 *              currently installed for Plesk, which allows                  *&lt;br /&gt;
 *              creating one client account, one domain, one mail name and   *&lt;br /&gt;
 *              one web user.                                                *&lt;br /&gt;
 *              To extend the limits of your license key and enable          *&lt;br /&gt;
 *              additional features, please contact the SWsoft, Inc. sales   *&lt;br /&gt;
 *              department: sales@swsoft.com                                *&lt;br /&gt;
 *                                                                           *&lt;br /&gt;
 *      Thank you for choosing our products!                                 *&lt;br /&gt;
 *****************************************************************************&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Plesk install full output]]&lt;br /&gt;
&lt;br /&gt;
Done. You can create a [[Debian_template_creation#Preparing_for_and_packing_template_cache|prepackaged template]] from this VE for future installations.&lt;br /&gt;
&lt;br /&gt;
[[category:HOWTO]]&lt;/div&gt;</summary>
		<author><name>Thatha</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Plesk_in_VE&amp;diff=2622</id>
		<title>Plesk in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Plesk_in_VE&amp;diff=2622"/>
		<updated>2007-01-04T20:51:20Z</updated>

		<summary type="html">&lt;p&gt;Thatha: Oops! Should've used preview.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below is an example transcript of installing Plesk into an OpenVZ VE (VE#11):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl create 11 --ostemplate centos-4-i386-default&lt;br /&gt;
Creating VPS private area: /vz/private/11&lt;br /&gt;
Performing postcreate actions&lt;br /&gt;
VPS private area was created&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --quotaugidlimit 150 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --numproc 400:400 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --kmemsize 16384000:18022400 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --privvmpages 262144:292912 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --hostname=plesk.example.com --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --diskspace 2000000:2000000 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --shmpages 16384:16384 --save&lt;br /&gt;
UB limits were set successefully&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --ipadd 127.1.2.3 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --userpasswd root:pass&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --iptables &amp;quot;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&amp;quot; --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl start 11&lt;br /&gt;
Starting VPS ...&lt;br /&gt;
VPS is mounted&lt;br /&gt;
Adding IP address(es): 192.168.51.55&lt;br /&gt;
Setting CPU units: 1000&lt;br /&gt;
Set hostname: plesk.local&lt;br /&gt;
Setting quota ugidlimit: 150&lt;br /&gt;
VPS start in progress...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to run a VPN server inside the VE you need to [[VPN via the TUN/TAP device|TUN/TAP module]]. The following commands consolidate what needs to be done: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# modprobe tun&lt;br /&gt;
# lsmod | grep tun&lt;br /&gt;
tun                     6624  0 &lt;br /&gt;
# vzctl set 11 --devices c:10:200:rw --save&lt;br /&gt;
Setting devices&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
# vzctl exec 11 mkdir -p /dev/net&lt;br /&gt;
# vzctl exec 11 mknod /dev/net/tun c 10 200&lt;br /&gt;
# vzctl exec 11 chmod 600 /dev/net/tun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that the VE's hostname (plesk.example.com) is resolving correctly to the VE's IP address (127.1.2.3). You can also add the corresponding record to /etc/hosts as a workaround.&lt;br /&gt;
&lt;br /&gt;
Then, go to http://www.swsoft.com/download/plesk8/ and download the appropriate autoinstaller or the appropriate RPM. In this case, [[http://download1.swsoft.com/Plesk/Plesk8.1/CentOS4.3/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386|CentOS]] 4.3.&lt;br /&gt;
&lt;br /&gt;
If you want to download the autoinstaller all you need to do is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# wget http://download1.swsoft.com/Plesk/Plesk8.1/CentOS4.3/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386&lt;br /&gt;
# mv psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386 /vz/private/11/root/&lt;br /&gt;
# vzctl exec 11 /root/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed as you would if you were installing Plesk without OpenVZ.&lt;br /&gt;
&lt;br /&gt;
When the installation over you will see something along the lines of:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
                             Congratulations!&lt;br /&gt;
        Plesk has been successfully installed on your server.&lt;br /&gt;
        To complete the system configuration, please proceed to URL:&lt;br /&gt;
        https://plesk.local:8443/ or&lt;br /&gt;
        https://127.0.0.1:8443/&lt;br /&gt;
        Use the login name 'admin' and password 'setup'.&lt;br /&gt;
&lt;br /&gt;
        Further, use the following commands to start and stop Plesk:&lt;br /&gt;
        &amp;quot;/etc/init.d/psa start&amp;quot; and&lt;br /&gt;
        &amp;quot;/etc/init.d/psa stop&amp;quot; respectively.&lt;br /&gt;
&lt;br /&gt;
        All Plesk control panel documentation is available at&lt;br /&gt;
        http://www.swsoft.com/en/products/plesk80/docs&lt;br /&gt;
&lt;br /&gt;
 *****************************************************************************&lt;br /&gt;
 *                                                                           *&lt;br /&gt;
 *      NOTE:   You have a default key file with limited functionality       *&lt;br /&gt;
 *              currently installed for Plesk, which allows                  *&lt;br /&gt;
 *              creating one client account, one domain, one mail name and   *&lt;br /&gt;
 *              one web user.                                                *&lt;br /&gt;
 *              To extend the limits of your license key and enable          *&lt;br /&gt;
 *              additional features, please contact the SWsoft, Inc. sales   *&lt;br /&gt;
 *              department: sales@swsoft.com                                *&lt;br /&gt;
 *                                                                           *&lt;br /&gt;
 *      Thank you for choosing our products!                                 *&lt;br /&gt;
 *****************************************************************************&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Plesk install full output]]&lt;br /&gt;
&lt;br /&gt;
Done. You can create a [[Debian_template_creation#Preparing_for_and_packing_template_cache|prepackaged template]] from this VE for future installations.&lt;br /&gt;
&lt;br /&gt;
[[category:HOWTO]]&lt;/div&gt;</summary>
		<author><name>Thatha</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Plesk_in_VE&amp;diff=2621</id>
		<title>Plesk in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Plesk_in_VE&amp;diff=2621"/>
		<updated>2007-01-04T20:50:43Z</updated>

		<summary type="html">&lt;p&gt;Thatha: Added link to Debian_template_creation#Preparing_for_and_packing_template_cache&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below is an example transcript of installing Plesk into an OpenVZ VE (VE#11):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl create 11 --ostemplate centos-4-i386-default&lt;br /&gt;
Creating VPS private area: /vz/private/11&lt;br /&gt;
Performing postcreate actions&lt;br /&gt;
VPS private area was created&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --quotaugidlimit 150 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --numproc 400:400 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --kmemsize 16384000:18022400 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --privvmpages 262144:292912 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --hostname=plesk.example.com --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --diskspace 2000000:2000000 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --shmpages 16384:16384 --save&lt;br /&gt;
UB limits were set successefully&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --ipadd 127.1.2.3 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --userpasswd root:pass&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --iptables &amp;quot;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&amp;quot; --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl start 11&lt;br /&gt;
Starting VPS ...&lt;br /&gt;
VPS is mounted&lt;br /&gt;
Adding IP address(es): 192.168.51.55&lt;br /&gt;
Setting CPU units: 1000&lt;br /&gt;
Set hostname: plesk.local&lt;br /&gt;
Setting quota ugidlimit: 150&lt;br /&gt;
VPS start in progress...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to run a VPN server inside the VE you need to [[VPN via the TUN/TAP device|TUN/TAP module]]. The following commands consolidate what needs to be done: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# modprobe tun&lt;br /&gt;
# lsmod | grep tun&lt;br /&gt;
tun                     6624  0 &lt;br /&gt;
# vzctl set 11 --devices c:10:200:rw --save&lt;br /&gt;
Setting devices&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
# vzctl exec 11 mkdir -p /dev/net&lt;br /&gt;
# vzctl exec 11 mknod /dev/net/tun c 10 200&lt;br /&gt;
# vzctl exec 11 chmod 600 /dev/net/tun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that the VE's hostname (plesk.example.com) is resolving correctly to the VE's IP address (127.1.2.3). You can also add the corresponding record to /etc/hosts as a workaround.&lt;br /&gt;
&lt;br /&gt;
Then, go to http://www.swsoft.com/download/plesk8/ and download the appropriate autoinstaller or the appropriate RPM. In this case, [[http://download1.swsoft.com/Plesk/Plesk8.1/CentOS4.3/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386|CentOS]] 4.3.&lt;br /&gt;
&lt;br /&gt;
If you want to download the autoinstaller all you need to do is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# wget http://download1.swsoft.com/Plesk/Plesk8.1/CentOS4.3/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386&lt;br /&gt;
# mv psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386 /vz/private/11/root/&lt;br /&gt;
# vzctl exec 11 /root/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed as you would if you were installing Plesk without OpenVZ.&lt;br /&gt;
&lt;br /&gt;
When the installation over you will see something along the lines of:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
                             Congratulations!&lt;br /&gt;
        Plesk has been successfully installed on your server.&lt;br /&gt;
        To complete the system configuration, please proceed to URL:&lt;br /&gt;
        https://plesk.local:8443/ or&lt;br /&gt;
        https://127.0.0.1:8443/&lt;br /&gt;
        Use the login name 'admin' and password 'setup'.&lt;br /&gt;
&lt;br /&gt;
        Further, use the following commands to start and stop Plesk:&lt;br /&gt;
        &amp;quot;/etc/init.d/psa start&amp;quot; and&lt;br /&gt;
        &amp;quot;/etc/init.d/psa stop&amp;quot; respectively.&lt;br /&gt;
&lt;br /&gt;
        All Plesk control panel documentation is available at&lt;br /&gt;
        http://www.swsoft.com/en/products/plesk80/docs&lt;br /&gt;
&lt;br /&gt;
 *****************************************************************************&lt;br /&gt;
 *                                                                           *&lt;br /&gt;
 *      NOTE:   You have a default key file with limited functionality       *&lt;br /&gt;
 *              currently installed for Plesk, which allows                  *&lt;br /&gt;
 *              creating one client account, one domain, one mail name and   *&lt;br /&gt;
 *              one web user.                                                *&lt;br /&gt;
 *              To extend the limits of your license key and enable          *&lt;br /&gt;
 *              additional features, please contact the SWsoft, Inc. sales   *&lt;br /&gt;
 *              department: sales@swsoft.com                                *&lt;br /&gt;
 *                                                                           *&lt;br /&gt;
 *      Thank you for choosing our products!                                 *&lt;br /&gt;
 *****************************************************************************&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Plesk install full output]]&lt;br /&gt;
&lt;br /&gt;
Done. You can create a [[Debian_template_creation#Preparing_for_and_packing_template_cache]]prepackaged template from this VE for future installations.&lt;br /&gt;
&lt;br /&gt;
[[category:HOWTO]]&lt;/div&gt;</summary>
		<author><name>Thatha</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Plesk_in_VE&amp;diff=2620</id>
		<title>Plesk in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Plesk_in_VE&amp;diff=2620"/>
		<updated>2007-01-04T20:45:28Z</updated>

		<summary type="html">&lt;p&gt;Thatha: Various edits, fixes and updates.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below is an example transcript of installing Plesk into an OpenVZ VE (VE#11):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl create 11 --ostemplate centos-4-i386-default&lt;br /&gt;
Creating VPS private area: /vz/private/11&lt;br /&gt;
Performing postcreate actions&lt;br /&gt;
VPS private area was created&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --quotaugidlimit 150 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --numproc 400:400 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --kmemsize 16384000:18022400 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --privvmpages 262144:292912 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --hostname=plesk.example.com --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --diskspace 2000000:2000000 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --shmpages 16384:16384 --save&lt;br /&gt;
UB limits were set successefully&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --ipadd 127.1.2.3 --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --userpasswd root:pass&lt;br /&gt;
Changing password for user root.&lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
&lt;br /&gt;
# vzctl set 11 --iptables &amp;quot;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&amp;quot; --save&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
&lt;br /&gt;
# vzctl start 11&lt;br /&gt;
Starting VPS ...&lt;br /&gt;
VPS is mounted&lt;br /&gt;
Adding IP address(es): 192.168.51.55&lt;br /&gt;
Setting CPU units: 1000&lt;br /&gt;
Set hostname: plesk.local&lt;br /&gt;
Setting quota ugidlimit: 150&lt;br /&gt;
VPS start in progress...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to run a VPN server inside the VE you need to [[VPN via the TUN/TAP device|TUN/TAP module]]. The following commands consolidate what needs to be done: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# modprobe tun&lt;br /&gt;
# lsmod | grep tun&lt;br /&gt;
tun                     6624  0 &lt;br /&gt;
# vzctl set 11 --devices c:10:200:rw --save&lt;br /&gt;
Setting devices&lt;br /&gt;
Saved parameters for VPS 11&lt;br /&gt;
# vzctl exec 11 mkdir -p /dev/net&lt;br /&gt;
# vzctl exec 11 mknod /dev/net/tun c 10 200&lt;br /&gt;
# vzctl exec 11 chmod 600 /dev/net/tun&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that the VE's hostname (plesk.example.com) is resolving correctly to the VE's IP address (127.1.2.3). You can also add the corresponding record to /etc/hosts as a workaround.&lt;br /&gt;
&lt;br /&gt;
Then, go to http://www.swsoft.com/download/plesk8/ and download the appropriate autoinstaller or the appropriate RPM. In this case, [[http://download1.swsoft.com/Plesk/Plesk8.1/CentOS4.3/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386|CentOS]] 4.3.&lt;br /&gt;
&lt;br /&gt;
If you want to download the autoinstaller all you need to do is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# wget http://download1.swsoft.com/Plesk/Plesk8.1/CentOS4.3/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386&lt;br /&gt;
# mv psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386 /vz/private/11/root/&lt;br /&gt;
# vzctl exec 11 /root/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proceed as you would if you were installing Plesk without OpenVZ.&lt;br /&gt;
&lt;br /&gt;
When the installation over you will see something along the lines of:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
                             Congratulations!&lt;br /&gt;
        Plesk has been successfully installed on your server.&lt;br /&gt;
        To complete the system configuration, please proceed to URL:&lt;br /&gt;
        https://plesk.local:8443/ or&lt;br /&gt;
        https://127.0.0.1:8443/&lt;br /&gt;
        Use the login name 'admin' and password 'setup'.&lt;br /&gt;
&lt;br /&gt;
        Further, use the following commands to start and stop Plesk:&lt;br /&gt;
        &amp;quot;/etc/init.d/psa start&amp;quot; and&lt;br /&gt;
        &amp;quot;/etc/init.d/psa stop&amp;quot; respectively.&lt;br /&gt;
&lt;br /&gt;
        All Plesk control panel documentation is available at&lt;br /&gt;
        http://www.swsoft.com/en/products/plesk80/docs&lt;br /&gt;
&lt;br /&gt;
 *****************************************************************************&lt;br /&gt;
 *                                                                           *&lt;br /&gt;
 *      NOTE:   You have a default key file with limited functionality       *&lt;br /&gt;
 *              currently installed for Plesk, which allows                  *&lt;br /&gt;
 *              creating one client account, one domain, one mail name and   *&lt;br /&gt;
 *              one web user.                                                *&lt;br /&gt;
 *              To extend the limits of your license key and enable          *&lt;br /&gt;
 *              additional features, please contact the SWsoft, Inc. sales   *&lt;br /&gt;
 *              department: sales@swsoft.com                                *&lt;br /&gt;
 *                                                                           *&lt;br /&gt;
 *      Thank you for choosing our products!                                 *&lt;br /&gt;
 *****************************************************************************&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Plesk install full output]]&lt;br /&gt;
&lt;br /&gt;
Done. You can create a prepackaged template from this VE for further installations.&lt;br /&gt;
&lt;br /&gt;
[[category:HOWTO]]&lt;/div&gt;</summary>
		<author><name>Thatha</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=OS_template_cache_preparation&amp;diff=2412</id>
		<title>OS template cache preparation</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=OS_template_cache_preparation&amp;diff=2412"/>
		<updated>2006-10-17T02:40:08Z</updated>

		<summary type="html">&lt;p&gt;Thatha: Missed a tag&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article describes the procedure of an OS template cache creation.  Is assumes you already have OpenVZ installed and running. The steps needed to achieve it are documented in the [[Quick installation]] document.&lt;br /&gt;
&lt;br /&gt;
== Terminology ==&lt;br /&gt;
&lt;br /&gt;
Please make sure you understand these terms:&lt;br /&gt;
&lt;br /&gt;
* [[OS template]]&lt;br /&gt;
* [[OS template metadata]]&lt;br /&gt;
* [[OS template cache]]&lt;br /&gt;
&lt;br /&gt;
== Creating an OS template cache ==&lt;br /&gt;
You can create an [[OS template cache]] using template utilities and [[OS template metadata]] right on your [[hardware node]]. The process it automated and will take from about 10 minutes to a few hours, depending on the network speed, and the result will be most up-to-date template cache.&lt;br /&gt;
&lt;br /&gt;
=== Installing template utilities ===&lt;br /&gt;
&lt;br /&gt;
You have to install a few packages in order to be able to create/update OS template cache(s).&lt;br /&gt;
&lt;br /&gt;
==== Using yum ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum install vzpkg vzyum vzrpm43-python vzrpm44-python&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using rpm ====&lt;br /&gt;
Packages are available from [http://openvz.org/download/template/utils/ Download » Templates » Utilities]. You need both &amp;lt;tt&amp;gt;vzpkg&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;vzyum&amp;lt;/tt&amp;gt; packages, as well as one or both &amp;lt;tt&amp;gt;vzrpm43&amp;lt;/tt&amp;gt;/&amp;lt;tt&amp;gt;vzrpm44&amp;lt;/tt&amp;gt; (including their &amp;lt;tt&amp;gt;-python&amp;lt;/tt&amp;gt; counterparts), depending on the OS templates being used.&lt;br /&gt;
&lt;br /&gt;
Install these utilities using rpm:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# rpm -ihv vzpkg*.rpm vzyum*.rpm vzrpm44*.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Red Hat Enterprise Linux, to install &amp;lt;tt&amp;gt;vzyum&amp;lt;/tt&amp;gt; you will need &amp;lt;tt&amp;gt;[http://rpmfind.net/linux/rpm2html/search.php?query=python-elementtree&amp;amp;system=redhat python-elementtree]&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;[http://rpmfind.net/linux/rpm2html/search.php?query=python-sqlite&amp;amp;system=redhat python-sqlite]&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;[http://rpmfind.net/linux/rpm2html/search.php?query=python-urlgrabber&amp;amp;system=redhat python-urlgrabber]&amp;lt;/tt&amp;gt;. These packages might have dependencies of their own. For example, &amp;lt;tt&amp;gt;python-sqlite&amp;lt;/tt&amp;gt; needs &amp;lt;tt&amp;gt;[http://rpmfind.net/linux/rpm2html/search.php?query=sqlite&amp;amp;system=redhat sqlite]&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Installing OS template metadata ===&lt;br /&gt;
&lt;br /&gt;
To create an [[OS template cache]], you need to get the [[OS template metadata|metadata]] for the chosen OS template(s).&lt;br /&gt;
&lt;br /&gt;
==== Using yum ====&lt;br /&gt;
To see which templates are available, run&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum search vztmpl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install some of the templates, run&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum install vztmpl-XXX [...]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using rpm ====&lt;br /&gt;
Get the chosen &amp;lt;tt&amp;gt;vztmpl-*&amp;lt;/tt&amp;gt; packages from [http://openvz.org/download/template/metadata/ Downloads » Templates » Metadata] (or directly from [http://download.openvz.org/template/metadata/ download.openvz.org/template/metadata] or one of the [[Download mirrors|mirrors]] and install them:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# rpm -ihv vztmpl-*.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing repository cache (optional) ===&lt;br /&gt;
&lt;br /&gt;
Optionally, you may want to get a snapshot of the local copy of the package repository for the chosen OS template(s). This is not required but might speed up the initial OS template cache creation considerably. The tarballs are available from [http://openvz.org/download/template/repocache/ Downloads » Templates » Repo Cache]; download and untar them to the &amp;lt;tt&amp;gt;/vz/template&amp;lt;/tt&amp;gt; directory on your OpenVZ [[Hardware Node]]. If you choose to skip this step, all the needed files will be downloaded from the Internet automatically when needed.&lt;br /&gt;
&lt;br /&gt;
=== Running &amp;lt;tt&amp;gt;vzpkgcache&amp;lt;/tt&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Run the &amp;lt;tt&amp;gt;vzpkgcache&amp;lt;/tt&amp;gt; utility; see the vzpkgcache(8) man page for details. It will create or update the caches of all the templates for which the corresponding metadata exist.&lt;br /&gt;
&lt;br /&gt;
== Alternative: use precreated template cache ==&lt;br /&gt;
&lt;br /&gt;
As an alternative to creating a cache using template metadata, you can use precreated template cache taken from [http://openvz.org/download/template/cache Downloads » Templates » Precreated], or directly from [http://download.openvz.org/template/precreated/ download.openvz.org/template/precreated], or from one of the [[Download mirrors|mirrors]].&lt;br /&gt;
&lt;br /&gt;
However, this option is not recommended for production systems since without installing template metadata you will not be able to update your template cache.&lt;br /&gt;
&lt;br /&gt;
In order to use precreated template cache files, download files for chosen OS distributions and place them as-is (no unpacking needed) to the &amp;lt;tt&amp;gt;/vz/template/cache&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
&lt;br /&gt;
== Next step ==&lt;br /&gt;
&lt;br /&gt;
Follow on to the [[VE creation]] article.&lt;br /&gt;
&lt;br /&gt;
[[Category: Installation]]&lt;br /&gt;
[[Category: Templates]]&lt;/div&gt;</summary>
		<author><name>Thatha</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=OS_template_cache_preparation&amp;diff=2411</id>
		<title>OS template cache preparation</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=OS_template_cache_preparation&amp;diff=2411"/>
		<updated>2006-10-17T02:34:42Z</updated>

		<summary type="html">&lt;p&gt;Thatha: /* Using rpm */  Added reference to sqlite.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article describes the procedure of an OS template cache creation.  Is assumes you already have OpenVZ installed and running. The steps needed to achieve it are documented in the [[Quick installation]] document.&lt;br /&gt;
&lt;br /&gt;
== Terminology ==&lt;br /&gt;
&lt;br /&gt;
Please make sure you understand these terms:&lt;br /&gt;
&lt;br /&gt;
* [[OS template]]&lt;br /&gt;
* [[OS template metadata]]&lt;br /&gt;
* [[OS template cache]]&lt;br /&gt;
&lt;br /&gt;
== Creating an OS template cache ==&lt;br /&gt;
You can create an [[OS template cache]] using template utilities and [[OS template metadata]] right on your [[hardware node]]. The process it automated and will take from about 10 minutes to a few hours, depending on the network speed, and the result will be most up-to-date template cache.&lt;br /&gt;
&lt;br /&gt;
=== Installing template utilities ===&lt;br /&gt;
&lt;br /&gt;
You have to install a few packages in order to be able to create/update OS template cache(s).&lt;br /&gt;
&lt;br /&gt;
==== Using yum ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum install vzpkg vzyum vzrpm43-python vzrpm44-python&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using rpm ====&lt;br /&gt;
Packages are available from [http://openvz.org/download/template/utils/ Download » Templates » Utilities]. You need both &amp;lt;tt&amp;gt;vzpkg&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;vzyum&amp;lt;/tt&amp;gt; packages, as well as one or both &amp;lt;tt&amp;gt;vzrpm43&amp;lt;/tt&amp;gt;/&amp;lt;tt&amp;gt;vzrpm44&amp;lt;/tt&amp;gt; (including their &amp;lt;tt&amp;gt;-python&amp;lt;/tt&amp;gt; counterparts), depending on the OS templates being used.&lt;br /&gt;
&lt;br /&gt;
Install these utilities using rpm:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# rpm -ihv vzpkg*.rpm vzyum*.rpm vzrpm44*.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Red Hat Enterprise Linux, to install &amp;lt;tt&amp;gt;vzyum&amp;lt;/tt&amp;gt; you will need &amp;lt;tt&amp;gt;[http://rpmfind.net/linux/rpm2html/search.php?query=python-elementtree&amp;amp;system=redhat python-elementtree]&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;[http://rpmfind.net/linux/rpm2html/search.php?query=python-sqlite&amp;amp;system=redhat python-sqlite]&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;[http://rpmfind.net/linux/rpm2html/search.php?query=python-urlgrabber&amp;amp;system=redhat python-urlgrabber]&amp;lt;/tt&amp;gt;. These packages might have dependencies of their own. For example, &amp;lt;tt&amp;gt;python-sqlite&amp;lt;/tt&amp;gt; needs &amp;lt;tt&amp;gt;[http://rpmfind.net/linux/rpm2html/search.php?query=sqlite&amp;amp;system=redhat sqlite].&lt;br /&gt;
&lt;br /&gt;
=== Installing OS template metadata ===&lt;br /&gt;
&lt;br /&gt;
To create an [[OS template cache]], you need to get the [[OS template metadata|metadata]] for the chosen OS template(s).&lt;br /&gt;
&lt;br /&gt;
==== Using yum ====&lt;br /&gt;
To see which templates are available, run&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum search vztmpl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install some of the templates, run&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum install vztmpl-XXX [...]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using rpm ====&lt;br /&gt;
Get the chosen &amp;lt;tt&amp;gt;vztmpl-*&amp;lt;/tt&amp;gt; packages from [http://openvz.org/download/template/metadata/ Downloads » Templates » Metadata] (or directly from [http://download.openvz.org/template/metadata/ download.openvz.org/template/metadata] or one of the [[Download mirrors|mirrors]] and install them:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# rpm -ihv vztmpl-*.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing repository cache (optional) ===&lt;br /&gt;
&lt;br /&gt;
Optionally, you may want to get a snapshot of the local copy of the package repository for the chosen OS template(s). This is not required but might speed up the initial OS template cache creation considerably. The tarballs are available from [http://openvz.org/download/template/repocache/ Downloads » Templates » Repo Cache]; download and untar them to the &amp;lt;tt&amp;gt;/vz/template&amp;lt;/tt&amp;gt; directory on your OpenVZ [[Hardware Node]]. If you choose to skip this step, all the needed files will be downloaded from the Internet automatically when needed.&lt;br /&gt;
&lt;br /&gt;
=== Running &amp;lt;tt&amp;gt;vzpkgcache&amp;lt;/tt&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Run the &amp;lt;tt&amp;gt;vzpkgcache&amp;lt;/tt&amp;gt; utility; see the vzpkgcache(8) man page for details. It will create or update the caches of all the templates for which the corresponding metadata exist.&lt;br /&gt;
&lt;br /&gt;
== Alternative: use precreated template cache ==&lt;br /&gt;
&lt;br /&gt;
As an alternative to creating a cache using template metadata, you can use precreated template cache taken from [http://openvz.org/download/template/cache Downloads » Templates » Precreated], or directly from [http://download.openvz.org/template/precreated/ download.openvz.org/template/precreated], or from one of the [[Download mirrors|mirrors]].&lt;br /&gt;
&lt;br /&gt;
However, this option is not recommended for production systems since without installing template metadata you will not be able to update your template cache.&lt;br /&gt;
&lt;br /&gt;
In order to use precreated template cache files, download files for chosen OS distributions and place them as-is (no unpacking needed) to the &amp;lt;tt&amp;gt;/vz/template/cache&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
&lt;br /&gt;
== Next step ==&lt;br /&gt;
&lt;br /&gt;
Follow on to the [[VE creation]] article.&lt;br /&gt;
&lt;br /&gt;
[[Category: Installation]]&lt;br /&gt;
[[Category: Templates]]&lt;/div&gt;</summary>
		<author><name>Thatha</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=OS_template_cache_preparation&amp;diff=2410</id>
		<title>OS template cache preparation</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=OS_template_cache_preparation&amp;diff=2410"/>
		<updated>2006-10-17T02:32:28Z</updated>

		<summary type="html">&lt;p&gt;Thatha: Added reference to vzyum's prerequisites&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article describes the procedure of an OS template cache creation.  Is assumes you already have OpenVZ installed and running. The steps needed to achieve it are documented in the [[Quick installation]] document.&lt;br /&gt;
&lt;br /&gt;
== Terminology ==&lt;br /&gt;
&lt;br /&gt;
Please make sure you understand these terms:&lt;br /&gt;
&lt;br /&gt;
* [[OS template]]&lt;br /&gt;
* [[OS template metadata]]&lt;br /&gt;
* [[OS template cache]]&lt;br /&gt;
&lt;br /&gt;
== Creating an OS template cache ==&lt;br /&gt;
You can create an [[OS template cache]] using template utilities and [[OS template metadata]] right on your [[hardware node]]. The process it automated and will take from about 10 minutes to a few hours, depending on the network speed, and the result will be most up-to-date template cache.&lt;br /&gt;
&lt;br /&gt;
=== Installing template utilities ===&lt;br /&gt;
&lt;br /&gt;
You have to install a few packages in order to be able to create/update OS template cache(s).&lt;br /&gt;
&lt;br /&gt;
==== Using yum ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum install vzpkg vzyum vzrpm43-python vzrpm44-python&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using rpm ====&lt;br /&gt;
Packages are available from [http://openvz.org/download/template/utils/ Download » Templates » Utilities]. You need both &amp;lt;tt&amp;gt;vzpkg&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;vzyum&amp;lt;/tt&amp;gt; packages, as well as one or both &amp;lt;tt&amp;gt;vzrpm43&amp;lt;/tt&amp;gt;/&amp;lt;tt&amp;gt;vzrpm44&amp;lt;/tt&amp;gt; (including their &amp;lt;tt&amp;gt;-python&amp;lt;/tt&amp;gt; counterparts), depending on the OS templates being used.&lt;br /&gt;
&lt;br /&gt;
Install these utilities using rpm:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# rpm -ihv vzpkg*.rpm vzyum*.rpm vzrpm44*.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Red Hat Enterprise Linux, to install &amp;lt;tt&amp;gt;vzyum&amp;lt;/tt&amp;gt; you will need &amp;lt;tt&amp;gt;[http://rpmfind.net/linux/rpm2html/search.php?query=python-elementtree&amp;amp;system=redhat python-elementtree]&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;[http://rpmfind.net/linux/rpm2html/search.php?query=python-sqlite&amp;amp;system=redhat python-sqlite]&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;[http://rpmfind.net/linux/rpm2html/search.php?query=python-urlgrabber&amp;amp;system=redhat python-urlgrabber]&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Installing OS template metadata ===&lt;br /&gt;
&lt;br /&gt;
To create an [[OS template cache]], you need to get the [[OS template metadata|metadata]] for the chosen OS template(s).&lt;br /&gt;
&lt;br /&gt;
==== Using yum ====&lt;br /&gt;
To see which templates are available, run&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum search vztmpl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install some of the templates, run&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum install vztmpl-XXX [...]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using rpm ====&lt;br /&gt;
Get the chosen &amp;lt;tt&amp;gt;vztmpl-*&amp;lt;/tt&amp;gt; packages from [http://openvz.org/download/template/metadata/ Downloads » Templates » Metadata] (or directly from [http://download.openvz.org/template/metadata/ download.openvz.org/template/metadata] or one of the [[Download mirrors|mirrors]] and install them:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# rpm -ihv vztmpl-*.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing repository cache (optional) ===&lt;br /&gt;
&lt;br /&gt;
Optionally, you may want to get a snapshot of the local copy of the package repository for the chosen OS template(s). This is not required but might speed up the initial OS template cache creation considerably. The tarballs are available from [http://openvz.org/download/template/repocache/ Downloads » Templates » Repo Cache]; download and untar them to the &amp;lt;tt&amp;gt;/vz/template&amp;lt;/tt&amp;gt; directory on your OpenVZ [[Hardware Node]]. If you choose to skip this step, all the needed files will be downloaded from the Internet automatically when needed.&lt;br /&gt;
&lt;br /&gt;
=== Running &amp;lt;tt&amp;gt;vzpkgcache&amp;lt;/tt&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Run the &amp;lt;tt&amp;gt;vzpkgcache&amp;lt;/tt&amp;gt; utility; see the vzpkgcache(8) man page for details. It will create or update the caches of all the templates for which the corresponding metadata exist.&lt;br /&gt;
&lt;br /&gt;
== Alternative: use precreated template cache ==&lt;br /&gt;
&lt;br /&gt;
As an alternative to creating a cache using template metadata, you can use precreated template cache taken from [http://openvz.org/download/template/cache Downloads » Templates » Precreated], or directly from [http://download.openvz.org/template/precreated/ download.openvz.org/template/precreated], or from one of the [[Download mirrors|mirrors]].&lt;br /&gt;
&lt;br /&gt;
However, this option is not recommended for production systems since without installing template metadata you will not be able to update your template cache.&lt;br /&gt;
&lt;br /&gt;
In order to use precreated template cache files, download files for chosen OS distributions and place them as-is (no unpacking needed) to the &amp;lt;tt&amp;gt;/vz/template/cache&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
&lt;br /&gt;
== Next step ==&lt;br /&gt;
&lt;br /&gt;
Follow on to the [[VE creation]] article.&lt;br /&gt;
&lt;br /&gt;
[[Category: Installation]]&lt;br /&gt;
[[Category: Templates]]&lt;/div&gt;</summary>
		<author><name>Thatha</name></author>
		
	</entry>
</feed>