<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>VPS Hosting Stuff</title>
	<atom:link href="http://vpshostingstuff.com/feed" rel="self" type="application/rss+xml" />
	<link>http://vpshostingstuff.com</link>
	<description>#1 VPS Web Hosting Articles, How-to's and Tutorials Resource</description>
	<pubDate>Sat, 21 Aug 2010 04:44:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Open source version of Virtuozzo - openVZ</title>
		<link>http://vpshostingstuff.com/open-source-version-of-virtuozzo-openvz.html</link>
		<comments>http://vpshostingstuff.com/open-source-version-of-virtuozzo-openvz.html#comments</comments>
		<pubDate>Fri, 20 Aug 2010 10:40:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[OpenVZ]]></category>

		<category><![CDATA[Virtualization Technologies]]></category>

		<guid isPermaLink="false">http://vpshostingstuff.com/?p=155</guid>
		<description><![CDATA[Open source version of Virtuozzo is called OpenVZ created by Paralles.

OpenVZ is container-based virtualization for Linux. OpenVZ creates multiple secure, isolated containers (otherwise known as VEs or VPSs) on a single physical server enabling better server utilization and ensuring that applications do not conflict. Each container performs and executes exactly like a stand-alone server; a [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #000080;">Open source version of Virtuozzo is called OpenVZ created by Paralles.<br />
</span></p>
<p>OpenVZ is container-based virtualization for Linux. OpenVZ creates multiple secure, isolated containers (otherwise known as VEs or VPSs) on a single physical server enabling better server utilization and ensuring that applications do not conflict. Each container performs and executes exactly like a stand-alone server; a container can be rebooted independently and have root access, users, IP addresses, memory, processes, files, applications, system libraries and configuration files.</p>
<p>OpenVZ is free open source software, available under GNU GPL.</p>
<p>OpenVZ project is supported by <a class="external text" title="http://www.parallels.com/" rel="nofollow" href="http://www.parallels.com/">Parallels</a></p>
<p>Looking for <a title="vps hosting" href="http://www.ehostpros.com">vps hosting</a> solutions ?? go to <a title="vps hosting" href="http://www.ehostpros.com/vps-hosting.html">http://www.ehostpros.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://vpshostingstuff.com/open-source-version-of-virtuozzo-openvz.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>VZPP : What is Virtuozzo Power Panel?</title>
		<link>http://vpshostingstuff.com/vzpp-what-is-virtuozzo-power-panel.html</link>
		<comments>http://vpshostingstuff.com/vzpp-what-is-virtuozzo-power-panel.html#comments</comments>
		<pubDate>Fri, 20 Aug 2010 10:31:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[VPS Hosting Providers]]></category>

		<category><![CDATA[Virtuozzo Containers]]></category>

		<guid isPermaLink="false">http://vpshostingstuff.com/?p=151</guid>
		<description><![CDATA[Virtuozzo Power Panels (VZPP) is a powerful web-based recovery and administration tool, intended for use by VPS Hosting owners. VZPP can be used on a standalone basis or within the Plesk interface. With VZPP, a user with administrative access to a VPS can easily perform many critical management tasks:
VPS Start/Stop/Reboot
Start, stop, fast stop and restart [...]]]></description>
			<content:encoded><![CDATA[<p>Virtuozzo Power Panels (VZPP) is a powerful web-based recovery and administration tool, intended for use by <a href="http://www.ehostpros.com/vps-hosting.html">VPS Hosting</a> owners. VZPP can be used on a standalone basis or within the Plesk interface. With VZPP, a user with administrative access to a VPS can easily perform many critical management tasks:</p>
<p>VPS Start/Stop/Reboot<br />
Start, stop, fast stop and restart the VPS</p>
<p>VPS Services Management.<br />
Manage VPS services and processes such as stopping an offending task or restarting a service</p>
<p>VPS Resource Monitoring<br />
Monitor VPS resource utilization for CPU, system, disk space and disk inodes</p>
<p>VPS Backup/Restore.<br />
Back up and restore the VPS from the backup including all system and user files</p>
<p>VPS Repair.<br />
Start the VPS in repair mode when a VPS is broken and does not boot</p>
<p>Embedded SSH Client<br />
Connect via integrated SSH client to the VPS</p>
<p>VPS Re-install<br />
Reinstall the VPS from scratch, either saving or discarding existing files.</p>
<p>VPS Actions Log<br />
View the VPS actions log to monitor resource shortage alerts and various VPS events.</p>
<p>VZPP accessible via 4643 port. Example:<br />
If your main VPS server IP 64.202.123.197, VZPP would be accessible as: http://64.202.123.197:4643</p>
]]></content:encoded>
			<wfw:commentRss>http://vpshostingstuff.com/vzpp-what-is-virtuozzo-power-panel.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Creating Container Manually</title>
		<link>http://vpshostingstuff.com/creating-container-manually.html</link>
		<comments>http://vpshostingstuff.com/creating-container-manually.html#comments</comments>
		<pubDate>Mon, 15 Feb 2010 14:20:22 +0000</pubDate>
		<dc:creator>vps_guru</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://vpshostingstuff.com/?p=148</guid>
		<description><![CDATA[









Creating Container
After the Container ID and the installed OS EZ template have been chosen, you can create the Container private area with the vzctl create command. The private area is the directory containing the VZFS symlinks, copy-on-write area, and private files of the given Container. The private area is mounted to the /vz/root/CT_ID directory on [...]]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr valign="top">
<td width="18"></td>
<td width="18"></td>
<td width="48"></td>
<td width="48"></td>
</tr>
</tbody>
</table>
<h3 class="heading3">Creating Container</h3>
<p class="bodytext">After the Container ID and the installed OS EZ template have been chosen, you can create the Container private area with the <code>vzctl create</code> command. The private area is the directory containing the VZFS symlinks, copy-on-write area, and private files of the given Container. The private area is mounted to the <code>/vz/root/</code><code>CT_ID</code> directory on the Hardware Node and provides Container users with a complete Linux file system tree.</p>
<p class="bodytext">The <code>vzctl create</code> command requires only the Container ID and the name of the OS template as arguments; however, in order to avoid setting all the Container resource control parameters after creating the private area, you can specify a sample configuration to be used for your new Container. The sample configuration files are residing in the <code>/etc/vz/conf</code> directory and have names with the following mask: <code>ve-&lt;</code><code>configname</code><code>&gt;.conf-sample</code>. The most commonly used sample is the <code>ve-basic.conf-sample</code> file; this sample file has resource control parameters suitable for most Containers.</p>
<p class="bodytext">Thus, for example, you can create a new Container by typing the following string:</p>
<p class="preformattedbold"># vzctl create 101 &#8211;ostemplate redhat-el5-x86 -–config basic</p>
<p class="preformatted">Creating Container private area (redhat-el5-x86)</p>
<p class="preformatted">Container is mounted</p>
<p class="preformatted">Postcreate action done</p>
<p class="preformatted">Container is unmounted</p>
<p class="preformatted">Container private area was created</p>
<p class="preformatted">Delete port redirection</p>
<p class="preformatted">Adding port redirection to Container(1): 4643 8443</p>
<p class="bodytext">In this case, the Virtuozzo Containers software will create a Container with ID 101, the private area based on the <code>redhat-el5-x86</code> OS EZ template, and configuration parameters taken from the <code>ve-basic.conf-sample</code> sample configuration file.</p>
<p class="bodytext">If you specify neither an OS template nor a sample configuration, <code>vzctl</code> will try to take the corresponding values from the global Virtuozzo configuration file (<code>/etc/vz/vz.conf</code>). So you can set the default values in this file using your favorite text file editor, for example:</p>
<p class="preformatted">DEF_OSTEMPLATE=&#8221;.redhat-el5-x86&#8243;</p>
<p class="preformatted">CONFIGFILE=&#8221;basic&#8221;</p>
<p class="bodytext">and do without specifying these parameters each time you create a new Container. Please keep in mind that the <code>.</code> symbol before the template name in the <code>DEF_OSTEMPLATE</code> parameter is used to indicate that the Container being created is to be based on an OS EZ template; otherwise, it will denote an OS standard template Now you can create a Container with ID 101 with the following command:</p>
<p class="preformattedbold"># vzctl create 101</p>
<p class="preformatted">Creating Container private area (redhat-el5-x86)</p>
<p class="preformatted">Container is mounted</p>
<p class="preformatted">Postcreate action done</p>
<p class="preformatted">Container is unmounted</p>
<p class="preformatted">Container private area was created</p>
<p class="preformatted">Delete port redirection</p>
<p class="preformatted">Adding port redirection to Container(1): 4643 8443</p>
<p>Source : parallels</p>
]]></content:encoded>
			<wfw:commentRss>http://vpshostingstuff.com/creating-container-manually.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>LITE SPEED COMPARED TO APACHE WEB SERVER</title>
		<link>http://vpshostingstuff.com/lite-speed-compared-to-apache-web-server.html</link>
		<comments>http://vpshostingstuff.com/lite-speed-compared-to-apache-web-server.html#comments</comments>
		<pubDate>Thu, 17 Sep 2009 14:12:43 +0000</pubDate>
		<dc:creator>vps_guru</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://vpshostingstuff.com/?p=144</guid>
		<description><![CDATA[===========================
Advantages of using lite speed compared to apache:
===========================
1. Lite speed is 6 times faster than Apache.
2. When it comes to dynamic content, LiteSpeed is more than 50% faster in PHP content delivery than Apache with mod_php
3. Increases PHP performance and security while doubling server capacity.
4. Efficient CGI daemon
5.  High performance Perl daemon
6. SECURE
* Strictest [...]]]></description>
			<content:encoded><![CDATA[<p>===========================</p>
<p>Advantages of using lite speed compared to apache:<br />
===========================</p>
<p>1. Lite speed is 6 times faster than Apache.<br />
2. When it comes to dynamic content, LiteSpeed is more than 50% faster in PHP content delivery than Apache with mod_php</p>
<p>3. Increases PHP performance and security while doubling server capacity.</p>
<p>4. Efficient CGI daemon</p>
<p>5.  High performance Perl daemon</p>
<p>6. SECURE</p>
<p>* Strictest HTTP request validation<br />
* Deny any buffer-overrun attempts<br />
* Anti-DDoS: Throttling &amp; Connection Accounting<br />
* System overloading prevention<br />
* Chroot web server process<br />
* CGI/FCGI/LSAPI/PHP suEXEC<br />
7.RELIABLE</p>
<p>* Watch Dog monitoring<br />
* Recover from service failure instantly<br />
* Zero down time graceful restart<br />
8.SCALABLE</p>
<p>* Small memory footprint<br />
* Thousands of concurrent connections<br />
* Increase scalability of external web applications</p>
<p>9.LiteSpeed support a wide set of server API and scripting languages.</p>
<p>* CGI/1.1<br />
* FastCGI<br />
* LSAPI (LiteSpeed SAPI)<br />
* JSP/Servlet via AJP 1.3<br />
* Transparent Reverse Proxy (interface to any web server, application server support HTTP)<br />
* PHP with 3rd party PHP Accelerators compatibilities (APC, eAccelerator, XCache).<br />
* Perl/Python (CGI, FastCGI)<br />
* Ruby/Roby on Rails<br />
* C/C++ (CGI, FastCGI, LSAPI)<br />
So, for shared hosting  <span class="std">environment</span> better to go for lite speed web server.</p>
]]></content:encoded>
			<wfw:commentRss>http://vpshostingstuff.com/lite-speed-compared-to-apache-web-server.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>PIM Resource Parameters Description</title>
		<link>http://vpshostingstuff.com/pim-resource-parameters-description.html</link>
		<comments>http://vpshostingstuff.com/pim-resource-parameters-description.html#comments</comments>
		<pubDate>Tue, 18 Aug 2009 11:19:21 +0000</pubDate>
		<dc:creator>vps_guru</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://vpshostingstuff.com/?p=142</guid>
		<description><![CDATA[Resource Parameters Description
The CPU-related resource management is based on the following parameters:
Parameter
Description
cpuunits
This is a positive integer number that determines the minimal guaranteed share of the CPU time your Container will receive.
cpulimit
This is a positive number indicating the CPU time in percent the corresponding Container is not allowed to exceed.
Linux burst_cpulimit
The CPU power limit, in percent, [...]]]></description>
			<content:encoded><![CDATA[<p>Resource Parameters Description</p>
<p>The CPU-related resource management is based on the following parameters:</p>
<p>Parameter</p>
<p>Description</p>
<p>cpuunits</p>
<p>This is a positive integer number that determines the minimal guaranteed share of the CPU time your Container will receive.</p>
<p>cpulimit</p>
<p>This is a positive number indicating the CPU time in percent the corresponding Container is not allowed to exceed.</p>
<p>Linux burst_cpulimit</p>
<p>The CPU power limit, in percent, the Container cannot exceed. The limitations set in this parameter are applied to the Container when it exceeds the limit specified in the burst_cpu_avg_usage parameter.</p>
<p>Linux burst_cpu_avg_usage</p>
<p>The CPU usage limit, in percent, set for the Container. This limit is calculated as the ratio of the current Container CPU usage to the CPU limit (i.e to the value of the CPULIMIT parameter) set for the Container. If the limit is not specified, the full CPU power of the Hardware Node is considered as the CPU limit. Upon exceeding the burst_cpu_avg_usage limit, the burst_cpulimit limit is applied to the Container.</p>
<p>Windows cpuguarantee</p>
<p>This is a positive integer number indicating the CPU time, in percent, the corresponding Container is guaranteed to receive. If both the cpuguarantee and cpuunits parameters are set, the cpuguarantee parameter is first taken into account when distributing processor(s) time among the Containers existing on the Node; the remaining CPU time, if any, is given to the Containers in accordance with the value of the cpuunits parameter.</p>
<p>cpus</p>
<p>The number of CPUs set to handle all the processes inside the given Container. By default, any Container is allowed to consume the CPU time of all processors on the Node.</p>
<p>The disk-related resource management is based on the following parameters:</p>
<p>Parameter</p>
<p>Description</p>
<p>diskspace</p>
<p>Total size of disk space consumed by the Container.</p>
<p>Linux When the space used by the Container hits the soft limit, the Container can allocate additional disk space up to the hard limit during the grace period indicated by the quotatime parameter value.</p>
<p>Linux diskinodes</p>
<p>Total number of disk inodes (files, directories, and symbolic links) allocated by the Container. When the number of inodes used by the Container hits the soft limit, the Container can create additional inodes up to the hard limit during the grace period indicated by the quotatime parameter value.</p>
<p>Linux quotaugidlimit</p>
<p>Number of user/group IDs allowed for the Container internal disk quota. If set to 0, UID/GID quota will not be enabled.</p>
<p>Linux quotatime</p>
<p>The grace period for the disk quota overusage defined in seconds. The Container is allowed to temporarily exceed its quota soft limits for no more than the QUOTATIME period.</p>
<p>Linux ioprio</p>
<p>The Container priority for disk I/O operations. The allowed range of values is 0-7. The greater the priority, the more time the Container has for writing to and reading from the disk. The default Container priority is 4.</p>
<p>The memory-related resource management parameters are divided into 4 groups: memory parameters, primary system parameters, secondary system parameters, and auxiliary system parameters.</p>
<p>Windows Windows-based Containers use only the primary system parameters.</p>
<p>Linux For Linux-based Containers, this screen displays the memory-based, or the system-based, or both memory- and system-based Container resources data, depending on your settings:</p>
<p>* If the memory management mode is enabled for the Container, it can be allocated memory in much the same way as a certain amount of physical memory is installed on a physical computer. This is the recommended mode for managing Containers for most administrators.<br />
* If the system management mode is enabled, the Container&#8217;s performance depends on the values of quite a number of fine-grained parameters. The primary parameters are the starting point for defining the relative power of a Container. The secondary parameters are dependent on the primary ones and are calculated from them according to a set of constraints. The auxiliary parameters help improve fault isolation among applications in a Container and the way applications handle errors and consume resources.<br />
* If both resource management modes are used, the more restrictive value is taken into account each time the system makes the decision whether to allocate this or that resource to the Container.</p>
<p>Linux Memory parameters</p>
<p>Parameter</p>
<p>Description</p>
<p>slmmemorylimit</p>
<p>An approximation of the size of the physical memory allocated to the Container. In other words, the Container performance is similar to the performance of a physical computer with as much physical memory installed as is indicated in this parameter.</p>
<p>Primary system parameters</p>
<p>Parameter</p>
<p>Description</p>
<p>numproc</p>
<p>The maximal number of processes the Container may create.</p>
<p>Windows numsessions</p>
<p>The number of simultaneous terminal sessions that can be opened to the Container.</p>
<p>Windows vprvmem</p>
<p>The size of private (or potentially private) memory allocated by the Container. The memory that is always shared among different applications is not included in this resource parameter.</p>
<p>Linux numtcpsock</p>
<p>The number of TCP sockets (PF_INET family, SOCK_STREAM type). This parameter limits the number of TCP connections and, thus, the number of clients the server application can handle in parallel.</p>
<p>Linux numothersock</p>
<p>The number of sockets other than TCP ones. Local (UNIX-domain) sockets are used for communications inside the system. UDP sockets are used, for example, for Domain Name Service (DNS) queries. UDP and other sockets may also be used in some very specialized applications (SNMP agents and others).</p>
<p>Linux vmguarpages</p>
<p>The memory allocation guarantee, in pages. Container applications are guaranteed to be able to allocate additional memory so long as the amount of memory accounted as privvmpages (see the auxiliary parameters) does not exceed the configured barrier of the vmguarpages parameter. Above the barrier, additional memory allocation is not guaranteed and may fail in case of overall memory shortage.</p>
<p>Linux avnumproc</p>
<p>The average number of processes and threads.</p>
<p>Linux Secondary system parameters</p>
<p>Parameter</p>
<p>Description</p>
<p>kmemsize</p>
<p>The size of unswappable kernel memory allocated for the internal kernel structures for the processes of a particular Container.</p>
<p>Note: For the Virtuozzo Containers 64-bit version for IA-64 processors, it takes 4 (four) times more the size of the kernel memory than that for the Virtuozzo Containers 32-bit version to handle one and the same process.</p>
<p>tcpsndbuf</p>
<p>The total size of send buffers for TCP sockets, i.e. the amount of kernel memory allocated for the data sent from an application to a TCP socket, but not acknowledged by the remote side yet.</p>
<p>tcprcvbuf</p>
<p>The total size of receive buffers for TCP sockets, i.e. the amount of kernel memory allocated for the data received from the remote side, but not read by the local application yet.</p>
<p>othersockbuf</p>
<p>The total size of UNIX-domain socket buffers, UDP, and other datagram protocol send buffers.</p>
<p>dgramrcvbuf</p>
<p>The total size of receive buffers of UDP and other datagram protocols.</p>
<p>oomguarpages</p>
<p>The out-of-memory guarantee, in pages. Any Container process will not be killed even in case of heavy memory shortage if the current memory consumption (including both physical memory and swap) does not reach the oomguarpages barrier.</p>
<p>privvmpages</p>
<p>The size of private (or potentially private) memory allocated by an application. The memory that is always shared among different applications is not included in this resource parameter.</p>
<p>Linux Auxiliary system parameters</p>
<p>Parameter</p>
<p>Description</p>
<p>lockedpages</p>
<p>The memory not allowed to be swapped out (locked with the mlock() system call), in pages.</p>
<p>shmpages</p>
<p>The total size of shared memory (including IPC, shared anonymous mappings and tmpfs objects) allocated by the processes of a particular Container, in pages.</p>
<p>numfile</p>
<p>The number of files opened by all Container processes.</p>
<p>numflock</p>
<p>The number of file locks created by all Container processes.</p>
<p>numpty</p>
<p>The number of pseudo-terminals, such as an ssh session, screen or xterm applications, etc.</p>
<p>numsiginfo</p>
<p>The number of siginfo structures (essentially, this parameter limits the size of the signal delivery queue).</p>
<p>dcachesize</p>
<p>The total size of dentry and inode structures locked in the memory.</p>
<p>numiptent</p>
<p>The number of IP packet filtering entries.</p>
<p>Source : PIM DOCS</p>
]]></content:encoded>
			<wfw:commentRss>http://vpshostingstuff.com/pim-resource-parameters-description.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>CSF installation in a VPS</title>
		<link>http://vpshostingstuff.com/csf-installation-in-a-vps.html</link>
		<comments>http://vpshostingstuff.com/csf-installation-in-a-vps.html#comments</comments>
		<pubDate>Mon, 03 Aug 2009 09:54:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[OpenVZ]]></category>

		<category><![CDATA[Virtuozzo Containers]]></category>

		<category><![CDATA[CSF]]></category>

		<category><![CDATA[lfd]]></category>

		<category><![CDATA[virtuozzo]]></category>

		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://vpshostingstuff.com/?p=140</guid>
		<description><![CDATA[Introduction:
In general csf is giving good compatibility with cpanel servers . But in a vps (openvz or Virtuzzo) the csf configuration is something different.
Sometimes you may get an error as follow after the csf installation in vps
————–
Error: iptables command [/sbin/iptables -v -A LOGDROPIN -p tcp -m limit --limit 30/m --limit-burst 5 -j LOG --log-prefix 'Firewall: [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction:</strong></p>
<p>In general csf is giving good compatibility with cpanel servers . But in a vps (openvz or Virtuzzo) the csf configuration is something different.</p>
<p>Sometimes you may get an error as follow after the csf installation in vps</p>
<p>————–</p>
<p>Error: iptables command [/sbin/iptables -v -A LOGDROPIN -p tcp -m limit --limit 30/m --limit-burst 5 -j LOG --log-prefix 'Firewall: *TCP_IN Blocked* '] failed, at line 196</p>
<p>—————</p>
<p>So how to resolve this issue. Let us do it as follows,</p>
<p>There are two steps to configure the csf in vps</p>
<p>i)Main vps server ( The host server ,in which the vps nodes are running) configuration</p>
<p>ii) Vps node configuration.</p>
<p><strong>Main vps serverconfiguration</strong></p>
<p>Before starting the csf installation in a node login to the main server (host server) and check whether the following modules are inserted in to the kernel</p>
<p><em>———<br />
ipt_conntrack<br />
ipt_LOG<br />
ipt_owner<br />
ipt_state<br />
ip_conntrack_ftp<br />
———</em></p>
<p>You can check it as follows</p>
<p><em>—————<br />
# lsmod |grep -i &lt;module-name&gt;<br />
—————</em></p>
<p>If not please insert these modules into the kernel.</p>
<p><em> ————<br />
#modprob &lt;module-name&gt;<br />
eg: modprob ipt_conntrack<br />
————-</em></p>
<p>Now add these modules to iptable configuration as follows.</p>
<p><em> ———–<br />
# vi /etc/sysconfig/iptables-config<br />
Add the following in this file<br />
IPTABLES_MODULES=”ipt_conntrack  ipt_LOG ipt_owner ipt_state ip_conntrack_ftp”<br />
———–</em></p>
<p>Now edit the vps configuration file from /etc/sysconfig/vz-scripts/ Let 101 is the VEID, add the above inserted modules in to the IPTABLE section in this configuration file.</p>
<p><em> ———-<br />
# vi /etc/sysconfig/vz-scripts/101.conf<br />
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 ipt_state<br />
iptable_nat ip_nat_ftp ipt_owner ip_conntrack_ftp”<br />
————-</em></p>
<p>Here we completed the main vps server configuration . So now reboot the child node (not main server) as follows</p>
<p><em>—————</em></p>
<p><em># vzctl restart &lt;veid&gt; </em></p>
<p><em>eg: vzctl restart 101</em></p>
<p><em>——————-</em></p>
<p><strong>ii) Vps node configuration.</strong></p>
<p>Now ssh /enter your child vps node</p>
<p>Now download and install the csf  . You can download the csf from<a href="http://www.configserver.com/cp/csf.html">here</a></p>
<p>Before restarting the csf let us do some configurations as follows , Edit the file /etc/csf/csf.conf .Then set the following variables</p>
<p><em>——–<br />
ETH_DEVICE = “venet0″  #from ifconfig you can see the n/w device<br />
MONOLITHIC_KERNEL = “1″<br />
VERBOSE = “0″  # will disable the verbose output during start<br />
———</em><br />
Now start the csf and lfd  .</p>
<p><em>———–</em></p>
<p><em>/etc/init.d/csf start </em></p>
<p><em>/etc/init.d/lfd start</em></p>
<p><em>———–</em></p>
<p>Note: If it is cpanel server go to whm and configure the firewall settings</p>
<p>Enjoy it <img class="wp-smiley" src="http://www.sherin.co.in/wp-includes/images/smilies/icon_wink.gif" alt=";)" /></p>
]]></content:encoded>
			<wfw:commentRss>http://vpshostingstuff.com/csf-installation-in-a-vps.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>vps command line usage</title>
		<link>http://vpshostingstuff.com/vps-command-line-usage.html</link>
		<comments>http://vpshostingstuff.com/vps-command-line-usage.html#comments</comments>
		<pubDate>Tue, 24 Feb 2009 13:16:42 +0000</pubDate>
		<dc:creator>vps_guru</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://vpshostingstuff.com/?p=138</guid>
		<description><![CDATA[Hi,
Some vps command line usage commands:
Add a domain from the command line
/script/add &#8211;class=domain &#8211;name=testdomain4.com v-docroot=testdomain.com/curent/public &#8211;v-password=xyz &#8211;v-dnstemplate_name=default.dnst
Delete a client who has no domains:
/script/update &#8211;class=client &#8211;name=testclient &#8211;action=delete
Vps that uses the maximum traffic by using this:
/script/filter/vps-sort-traffic &#124; head -1
Vpses that have gone overquota re traffic.
/script/filter/vps-overquota-traffic
To add a simple cron job, that&#8217;s executed either  &#8216;every-hour&#8217; every-day  with an  [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Some vps command line usage commands:<br />
Add a domain from the command line</p>
<p>/script/add &#8211;class=domain &#8211;name=testdomain4.com v-docroot=testdomain.com/curent/public &#8211;v-password=xyz &#8211;v-dnstemplate_name=default.dnst</p>
<p>Delete a client who has no domains:</p>
<p>/script/update &#8211;class=client &#8211;name=testclient &#8211;action=delete</p>
<p>Vps that uses the maximum traffic by using this:</p>
<p>/script/filter/vps-sort-traffic | head -1</p>
<p>Vpses that have gone overquota re traffic.</p>
<p>/script/filter/vps-overquota-traffic</p>
<p>To add a simple cron job, that&#8217;s executed either  &#8216;every-hour&#8217; every-day  with an  cron_day_hour  also specified.</p>
<p>/script/add &#8211;parent-class=client &#8211;parent-name=admin &#8211;class=cron &#8211;v-ttype=simple &#8211;v-simple_cron=every-day &#8211;v-cron_day_hour=6 &#8211;v-command=&#8221;ls -al&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://vpshostingstuff.com/vps-command-line-usage.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Oracle 10g VE</title>
		<link>http://vpshostingstuff.com/oracle-10g-ve.html</link>
		<comments>http://vpshostingstuff.com/oracle-10g-ve.html#comments</comments>
		<pubDate>Wed, 31 Dec 2008 10:30:48 +0000</pubDate>
		<dc:creator>vps_guru</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://vpshostingstuff.com/?p=135</guid>
		<description><![CDATA[ Create the container on the Host system 
vzctl create 1001 --ostemplate centos-4-i386-default
vzctl set 1001 --userpasswd root:password --save
vzctl set 1001 --hostname ve-oracle.example.com --save
vzctl set 1001 --ipadd 192.168.0.62 --save

 Reset resource limits 
I decided to have max limits to avoid problems during installation. Once the installation is done and the system left running for some time, [...]]]></description>
			<content:encoded><![CDATA[<h2><span class="mw-headline"> Create the container on the Host system </span></h2>
<pre>vzctl create 1001 --ostemplate centos-4-i386-default
vzctl set 1001 --userpasswd root:password --save
vzctl set 1001 --hostname ve-oracle.example.com --save
vzctl set 1001 --ipadd 192.168.0.62 --save</pre>
<p><a name="Reset_resource_limits"></a></p>
<h2><span class="mw-headline"> Reset resource limits </span></h2>
<p>I decided to have max limits to avoid problems during installation. Once the installation is done and the system left running for some time, these limits should be adjusted.</p>
<p>Note: setting the UBC limits to &#8220;unlimited&#8221; value like below can only be done on a trusted single-container machine, and can create problems. For more info about UBC, see Resource shortage and UBC.</p>
<p><strong>Warning</strong>: The above UBC values might not be consistent; see <a title="UBC consistency check" href="http://wiki.openvz.org/UBC_consistency_check">UBC consistency check</a>.</p>
<pre>vzctl set 1001 --kmemsize unlimited --save
vzctl set 1001 --lockedpages unlimited --save
vzctl set 1001 --privvmpages unlimited --save
vzctl set 1001 --shmpages unlimited --save
vzctl set 1001 --numproc unlimited --save
vzctl set 1001 --numtcpsock unlimited --save
vzctl set 1001 --numflock unlimited --save
vzctl set 1001 --numpty unlimited --save
vzctl set 1001 --numsiginfo unlimited --save
vzctl set 1001 --tcpsndbuf unlimited --save
vzctl set 1001 --tcprcvbuf unlimited --save
vzctl set 1001 --othersockbuf unlimited --save
vzctl set 1001 --dgramrcvbuf unlimited --save
vzctl set 1001 --numothersock unlimited --save
vzctl set 1001 --dcachesize unlimited --save
vzctl set 1001 --numfile unlimited --save
vzctl set 1001 --numiptent unlimited --save</pre>
<p>Or you can set these limits in your <code>/etc/vz/conf/1001.conf</code> file:</p>
<p>Note : The above UBC values might not be consistent; see <a title="UBC consistency check" href="http://wiki.openvz.org/UBC_consistency_check">UBC consistency check</a>.</p>
<pre># Primary parameters
AVNUMPROC="unlimited"
NUMPROC="unlimited"
NUMTCPSOCK="unlimited"
NUMOTHERSOCK="unlimited"
VMGUARPAGES="unlimited"

# Secondary parameters
KMEMSIZE="unlimited"
TCPSNDBUF="unlimited"
TCPRCVBUF="unlimited"
OTHERSOCKBUF="unlimited"
DGRAMRCVBUF="unlimited"
OOMGUARPAGES="unlimited"

# Auxiliary parameters
LOCKEDPAGES="unlimited"
SHMPAGES="unlimited"
PRIVVMPAGES="unlimited"
NUMFILE="unlimited"
NUMFLOCK="unlimited"
NUMPTY="unlimited"
NUMSIGINFO="unlimited"
DCACHESIZE="unlimited"

PHYSPAGES="unlimited"
NUMIPTENT="unlimited"</pre>
<p><a name="Start_the_container"></a></p>
<h2><span class="mw-headline"> Start the container </span></h2>
<pre>vzctl start 1001</pre>
<p><a name="Update_.2Fetc.2Fresolv.conf_on_the_container"></a></p>
<h2><span class="mw-headline"> Update <code>/etc/resolv.conf</code> on the container </span></h2>
<p>Put the following into your container&#8217;s /etc/resolv.conf:</p>
<pre>search example.com
nameserver &lt;ip address of your name server&gt;</pre>
<p><a name="Install_Required_Packages"></a></p>
<h2><span class="mw-headline"> Install Required Packages </span></h2>
<pre>vzyum 1001 install binutils compat-db gcc gcc-c++ glibc \
 glibc-common libstdc++ libstdc++-devel gnome-libs make \
 pdksh sysstat libaio xscreensaver openmotif21 xorg-x11-xfs \
 usbutils urw-fonts shared-mime-info perl-libwww-perl \
 perl-XML-Parser perl-URI perl-HTML-Tagset perl-HTML-Parser \
 patch lvm2 intltool libIDL libart_lgpl libbonobo xterm \
 libcap libcroco libgnomecanvas libexif libgnomecups \
 libgnomeprint22 libsoup libwnck libxklavier</pre>
<p><a name="Check_the_following_rpms_are_installed_on_the_container"></a></p>
<h2><span class="mw-headline"> Check the following rpms are installed on the container </span></h2>
<pre>vzctl exec 1001 rpm -q binutils gcc gcc-c++ glibc gnome-libs \
 libstdc++ libstdc++-devel make pdksh sysstat xscreensaver libaio</pre>
<p><a name="Add_Oracle_User.2FGroup"></a></p>
<h2><span class="mw-headline"> Add Oracle User/Group </span></h2>
<pre>vzctl exec 1001 /usr/sbin/groupadd oinstall
vzctl exec 1001 /usr/sbin/groupadd dba
vzctl exec 1001 /usr/sbin/useradd -m -g oinstall -G dba oracle
vzctl exec 1001 id oracle</pre>
<p><a name="Set_Password_for_the_Oracle_user"></a></p>
<h2><span class="mw-headline"> Set Password for the Oracle user </span></h2>
<pre>vzctl exec 1001 passwd oracle</pre>
<p><a name="Create_Directories_for_Oracle_Home.2FData_and_the_download_directory"></a></p>
<h2><span class="mw-headline"> Create Directories for Oracle Home/Data and the download directory </span></h2>
<pre>vzctl exec 1001 mkdir /home/oracle/10gR2_db
vzctl exec 1001 mkdir -p /u01/app/oracle/product/10.2.0/db_1
vzctl exec 1001 mkdir /u01/app/oracle/oradata
vzctl exec 1001 chown -R oracle:oinstall /u01/app/oracle /home/oracle/10gR2_db
vzctl exec 1001 chmod -R 775 /u01/app/oracle /home/oracle/10gR2_db
vzctl exec 1001 ln -s /usr/lib/libstdc++.so.6.0.3 /usr/lib/libstdc++.so.5</pre>
<p><a name="Put_these_values_in_.2Fetc.2Fsysctl.conf_on_the_HN"></a></p>
<h2><span class="mw-headline"> Put these values in /etc/sysctl.conf on the HN </span></h2>
<p>Put these values in /etc/sysctl.conf on the HN:</p>
<pre>kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=262144
net.core.wmem_max=262144</pre>
<p>Then execute on the HN the following command:</p>
<pre>/sbin/sysctl -p</pre>
<p>At this point the container is ready for Oracle installation. We take a backup of the container at this point in case we need to rebuild the system or do a clean Oracle install.</p>
<p><a name="Shutdown_the_container_and_take_a_backup"></a></p>
<h2><span class="mw-headline"> Shutdown the container and take a backup </span></h2>
<pre>vzctl stop 1001
cd /u01/backups
tar czpvf ve-1001-preOracle.tar.gz /vz/private/1001/ /etc/vz/conf/1001.conf</pre>
<p><a name="Start_the_container_again"></a></p>
<h2><span class="mw-headline"> Start the container again </span></h2>
<pre>vzctl start 1001</pre>
<p><a name="Put_oracle_distro_into_the_container"></a></p>
<h2><span class="mw-headline"> Put oracle distro into the container </span></h2>
<p>Copy the downloaded Oracle zip file to the container and change its ownership to &#8220;oracle&#8221; on the container.</p>
<pre>cp /u01/software/10201_database_linux32.zip /vz/private/1001/home/oracle/10gR2_db/
vzctl exec 1001 chown oracle:oinstall /home/oracle/10gR2_db/10201_database_linux32.zip</pre>
<p><a name="Start_installation"></a></p>
<h2><span class="mw-headline"> Start installation </span></h2>
<p>Now login as oracle on the ve-1001, and run the following commands:</p>
<pre>cd /home/oracle/10gR2_db
unzip 10201_database_linux32.zip
cd database/
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
export DISPLAY=192.168.0.149:0</pre>
<p>Make sure you can run xterm, then:</p>
<pre>./runInstaller</pre>
<p><strong>When prompted to run scripts as root. Login as root and execute</strong></p>
<pre>export DISPLAY=192.168.0.149:0
/u01/app/oracle/oraInventory/orainstRoot.sh
/u01/app/oracle/product/10.2.0/db_1/root.sh</pre>
<p><strong>Update oracle&#8217;s profile with the following</strong></p>
<pre>cd
vi /home/oracle/.bashrc
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_SID=orcl</pre>
<p><strong>Delete installation files (optional)</strong></p>
<pre>cd /home/oracle/10gR2_db
rm -rf database</pre>
<p><strong>Time to take another backup of the container on the hardware node.</strong></p>
<p>This backup will allow you to restore the container to the point where no database has yet been created.</p>
<pre>vzctl stop 1001
cd /u01/backups
tar czpvf ve-1001-postOracleSoftware.tar.gz \
  /vz/private/1001/ /etc/vz/conf/1001.conf</pre>
<p>Start the container</p>
<pre>vzctl start 1001</pre>
<p><strong>Login as oracle and create the database</strong></p>
<pre>export DISPLAY=192.168.0.149:0
dbca</pre>
<p><strong>Create listener</strong></p>
<pre>netca</pre>
<p><strong>Now take another backup on the HN node</strong></p>
<pre>vzctl stop 1001
cd /u01/backups
tar czpvf ve-1001-postOracleDatabase.tar.gz \
  /vz/private/1001/ /etc/vz/conf/1001.conf

Source : wiki.openvz.org.</pre>
]]></content:encoded>
			<wfw:commentRss>http://vpshostingstuff.com/oracle-10g-ve.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>firewall for vps</title>
		<link>http://vpshostingstuff.com/firewall-for-vps.html</link>
		<comments>http://vpshostingstuff.com/firewall-for-vps.html#comments</comments>
		<pubDate>Thu, 25 Dec 2008 09:00:10 +0000</pubDate>
		<dc:creator>vps_guru</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://vpshostingstuff.com/?p=130</guid>
		<description><![CDATA[You can protect your HyperVM node (Master or slave) by adding the ConfigServer Security and Firewall.
Here&#8217;s howto:
wget http://www.configserver.com/free/csf.tgz
tar -zxvf csf.tgz
cd csf
ls
./install.sh
Once it has been installed, you&#8217;ll need to configure it correctly before use, or you&#8217;ll have some really weird problems.
Ok, so the configuration file is /etc/csf/csf.conf, edit with your favourite editor:
Leave ETH_DEVICE blank, CSF will [...]]]></description>
			<content:encoded><![CDATA[<p>You can protect your HyperVM node (Master or slave) by adding the ConfigServer Security and Firewall.</p>
<p>Here&#8217;s howto:</p>
<p>wget http://www.configserver.com/free/csf.tgz<br />
tar -zxvf csf.tgz<br />
cd csf<br />
ls<br />
./install.sh</p>
<p>Once it has been installed, you&#8217;ll need to configure it correctly before use, or you&#8217;ll have some really weird problems.</p>
<p>Ok, so the configuration file is /etc/csf/csf.conf, edit with your favourite editor:</p>
<p>Leave ETH_DEVICE blank, CSF will work this out on it&#8217;s own.</p>
<p>Modify the following lines as follows: (These can be customized as per your own requirements, the 777*, 888* and 5558 ports are required for HyperVM to work)</p>
<p># Allow incoming TCP ports<br />
TCP_IN = &#8220;25,53,110,953,993,995,22,7776,7777,7778,7779,8886,8887,8888,8889,5558&#8243;<br />
# Allow outgoing TCP ports<br />
TCP_OUT = &#8220;25,53,80,110,113,443,953,7776,7777,7778,7779,8886,8887,8888,8889,5558&#8243;</p>
<p>If you want to be able to ping your HyperVM node, set:</p>
<p># Allow incoming PING<br />
ICMP_IN = &#8220;1&#8243;</p>
<p>Save and exit /etc/csf/csf.conf</p>
<p>If you&#8217;re using openvz in your node, you&#8217;ll have to add the following into /etc/csf/csfpre.sh</p>
<p>iptables -A INPUT -i venet0 -j ACCEPT<br />
iptables -A OUTPUT -o venet0 -j ACCEPT<br />
iptables -A FORWARD -j ACCEPT -p all -s 0/0 -i venet0<br />
iptables -A FORWARD -j ACCEPT -p all -s 0/0 -o venet0</p>
<p>Note 1: The /etc/csf/csfpre.sh will probably not exist, you&#8217;ll have to create it. csfpre.sh will be executed each time before csf starts.</p>
<p>Note 2: I&#8217;ve added (cd /usr/local/lxlabs/hypervm/httpdocs/ ; lphp.exe ../bin/misc/openvz-iptables-traffic.php) to the top of my csfpre.sh due to the traffic calculations, yet I think something else is wrong&#8230; I&#8217;ll update this once I figured it out.</p>
<p>You are now ready to begin testing&#8230; run from the command line:</p>
<p>service csf start</p>
<p>Once you are happy with the configuration and everything works as you wish, disable the testing mode:</p>
<p># Testing flag - enables a CRON job that clears iptables incase of<br />
# configuration problems when you start csf. This should be enabled until you<br />
# are sure that the firewall works - i.e. incase you get locked out of your<br />
# server! Then do remember to set it to 0 and restart csf when you&#8217;re sure<br />
# everything is OK. Stopping csf will remove the line from /etc/crontab<br />
TESTING = &#8220;0&#8243;</p>
<p>Productionize with:</p>
<p>service csf restart</p>
<p>You are done.</p>
<p>Additionally you can disable disable process tracking and user process tracking by setting (in the csf.conf):</p>
<p>PT_USERTIME = &#8220;0&#8243;<br />
PT_LIMIT = &#8220;0&#8243;<br />
PT_USERPROC = &#8220;0&#8243;</p>
<p>Source : lxwiki</p>
]]></content:encoded>
			<wfw:commentRss>http://vpshostingstuff.com/firewall-for-vps.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Creating a CentOS 5.0 Template</title>
		<link>http://vpshostingstuff.com/creating-a-centos-50-template.html</link>
		<comments>http://vpshostingstuff.com/creating-a-centos-50-template.html#comments</comments>
		<pubDate>Mon, 22 Dec 2008 14:04:32 +0000</pubDate>
		<dc:creator>vps_guru</dc:creator>
		
		<category><![CDATA[OpenVZ]]></category>

		<guid isPermaLink="false">http://vpshostingstuff.com/?p=127</guid>
		<description><![CDATA[1.Install a system (virtual or physical) with the default CentOS installation that you wish to package. This could be a minimal distro or the default distro or even something custom.
1. It&#8217;s generally quicker to bootstrap a CentOS system on another yum/rpm-based, or Debian based system by following the instructions in [1]
2. Once the OS has [...]]]></description>
			<content:encoded><![CDATA[<p>1.Install a system (virtual or physical) with the default CentOS installation that you wish to package. This could be a minimal distro or the default distro or even something custom.</p>
<p>1. It&#8217;s generally quicker to bootstrap a CentOS system on another yum/rpm-based, or Debian based system by following the instructions in [1]</p>
<p>2. Once the OS has been installed, you need to tar the contents of the OS.</p>
<p>1. First, create a file called /tmp/exclude and add the following lines to it:</p>
<p>.bash_history<br />
lost+found<br />
/dev/*<br />
/mnt/*<br />
/tmp/*<br />
/proc/*<br />
/sys/*<br />
/usr/src/*</p>
<p>1.  Now, tar the OS file up by typing: tar –czvf /tmp/centos-5.0-&lt;ARCH&gt;-&lt;DISTRO&gt;-image.tar.gz –X /tmp/exclude / where &lt;ARCH&gt; represents the system architecture (i386 or</p>
<p>x86_64) and &lt;DISTRO&gt; represents the distribution (default, minimal, etc.).</p>
<p>1. Now transfer the file over to the OpenVZ server into /vz/template/cache folder.</p>
<p>3.On the OpenVZ server create a “dummy” container by creating a folder called /vz/private/50</p>
<p>and copying the /etc/vz/conf/ve-vps.basic.conf-sample to /etc/vz/conf/50.conf.<br />
NOTE: 50 is the CTID for the container. You can choose any unused CTID on the OpenVZ server.</p>
<p>4.Now create a new folder called /vz/template/centos/5/&lt;ARCH&gt;/config again where</p>
<p>&lt;ARCH&gt; represents the system architecture.</p>
<p>5.Create a file in the folder called rpm and add the following line:</p>
<p>43<br />
6. Create a file called yum.conf in the folder and add the following lines:</p>
<p>[main]<br />
cachedir=/vz/template/centos/5/&lt;ARCH&gt;/yum-cache/<br />
reposdir=/dev/null<br />
installonlypkgs=<br />
[centos5-base]<br />
name=CentOS 5 - &lt;ARCH&gt; - Base<br />
baseurl=http://mirror.centos.org/centos/5/os/&lt;ARCH&gt;/<br />
enabled=1<br />
gpgcheck=1<br />
[centos5-updates-released]<br />
name=CentOS 5 - &lt;ARCH&gt; - Released Updates<br />
baseurl=http://mirror.centos.org/centos/5/updates/&lt;ARCH&gt;/<br />
enabled=1<br />
gpgcheck=1<br />
7 Copy /etc/vz/dists/centos-4.conf to /etc/vz/dists/centos-5.conf.<br />
8 Copy /vz/template/centos/4/i386/config/minimal.list to /vz/template/centos/5/i386/config/minimal.list.</p>
<p>9.Change to the /vz/private/50 folder and then run the command gunzip –dc /vz/template/cache/centos-5-&lt;ARCH&gt;-&lt;DISTRO&gt;-image.tar.gz | tar –xvf – to unpack the base image to the folder.</p>
<p>10.  Make sure you are in the /vz/private/50 folder.<br />
11. Edit etc/shadow and remove the replace the root password with !! instead of the hashed value.<br />
12. 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.</p>
<p>13.Remove the etc/mtab file and then create a symbolic link by typing ln -s /proc/mounts etc/mtab.</p>
<p>14. Remove all of the lines from etc/fstab except for the line that mounts /dev/pts.</p>
<p>15  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.</p>
<p>16 Now create device nodes by typing:</p>
<p>mknod dev/ptmx c 5 2<br />
mkdir dev/pts<br />
/sbin/MAKEDEV –d /vz/private/50/dev ttyp ptyp<br />
mknod dev/null c 1 3<br />
mknod -m 644 /dev/random c 1 8<br />
mknod dev/urandom c 1 9</p>
<p>17 Create the var/lock/rpm folder.<br />
18 If you wish to disable IPv6, do the following:</p>
<p>1. Edit etc/sysconfig/network and set NETWORKING_IPV6 to no.<br />
2. Add the following lines to etc/modprobe.d/blacklist:</p>
<p>blacklist ipv6<br />
blacklist net-pf-10</p>
<p>19 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.</p>
<p>20 Now you’re ready to start the template. Type vzctl start 50 and wait for it to start.</p>
<p>21 You can install additional packages into the container by typing vzyum 50 install &lt;package&gt; at the prompt where &lt;package&gt; represents the name of the software package you wish to install.</p>
<p>22 Finally, you should turn off unnecessary services.</p>
<p>1. Enter the container by typing vzctl enter 50.<br />
2. View the services that are set to run at startup by typing chkconfig &#8211;list | grep 5:on.<br />
3. Disable any unwanted service by typing chkconfig &#8211;levels 2345 &lt;service&gt; off where &lt;service&gt; represents the service to disable.</p>
<p>Services that you can (and should) turn off without harm are acpid, apmd, kudzu, and microcode_ctl.</p>
<p>23  Exit the container by typing exit at the prompt.</p>
<p>24 Stop the container by typing vzctl stop 50.</p>
<p>25 Make sure you are in the /vz/private/50 folder.</p>
<p>26 Finally, package up the new template by typing tar –czvf /vz/template/cache/centos-5-&lt;ARCH&gt;-&lt;DISTRO&gt;.tar.gz ./.</p>
<p>27. The template is ready for use.</p>
<p>Source : openvz wiki</p>
]]></content:encoded>
			<wfw:commentRss>http://vpshostingstuff.com/creating-a-centos-50-template.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
