<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;Ck8FRHs8fSp7ImA9Wx9aFEw.&quot;'><id>tag:blogger.com,1999:blog-5470511991174807015</id><updated>2011-03-06T03:26:55.575-08:00</updated><title>Software - Games - Cars - WebHosting - Domains - Design</title><subtitle type='html'>Software - Games - Cars - WebHosting - Domains - Design - Gold - Euro -google</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://neqashalhobnet.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5470511991174807015/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://neqashalhobnet.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>neqashalhob</name><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;D0UCSX4zfip7ImA9Wx9WFE8.&quot;'><id>tag:blogger.com,1999:blog-5470511991174807015.post-1536861715226597668</id><published>2011-01-19T00:20:00.000-08:00</published><updated>2011-01-19T00:21:08.086-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-01-19T00:21:08.086-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='BMW'/><title>BMW M3 Track Edition exclusive for Netherlands</title><content type='html'>&lt;div class="content clearfix"&gt;In 2009 BMW has released several limited editions of the popular M3 Coupe, &lt;br /&gt;
starting with the M3 Tiger Edition, Frozen Black M3 or the Frozen Grey M3 &lt;br /&gt;
launched in the US. Continuing the same tradition, BMW is preparing to &lt;br /&gt;
launch another exclusive M3.&lt;br /&gt;
Dubbed BMW M3 Track Edition, the limited &lt;br /&gt;
edition model will be available exclusively for the Dutch market. The M3 is &lt;br /&gt;
said to be painted in mate Frozen Grey color and it will debut in April.&lt;br /&gt;
The interior will include the the Novillo Schwarz upholstery with red &lt;br /&gt;
stiching. Performance wise the M3 will include an M Performance exhaust. The &lt;br /&gt;
brake calipers are painted in red and the M3 will make extensive use of &lt;br /&gt;
carbon fiber parts, including a rear spoiler.&lt;br /&gt;
&lt;div align="center"&gt;&lt;script type="text/javascript"&gt;
&lt;!--
google_ad_client = "ca-pub-9628448185323255";
/* 300-250 */
google_ad_slot = "8557536981";
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"&gt;
&lt;/script&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.bmwblog.com/wp-content/uploads/bmw-m3-track-edition.jpg"&gt;&lt;br /&gt;
&lt;img alt="" class="alignnone size-medium wp-image-51108" height="337" src="http://www.bmwblog.com/wp-content/uploads/bmw-m3-track-edition-655x467.jpg" title="bmw-m3-track-edition" width="469" /&gt;&lt;/a&gt;&lt;span id="more-51099"&gt;&lt;/span&gt;&lt;br /&gt;
The car will include the now usual Competition Package with blacked out &lt;br /&gt;
wheels and kidneys.&lt;br /&gt;
More details and pricing are expected to be announced shortly.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5470511991174807015-1536861715226597668?l=neqashalhobnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5470511991174807015/posts/default/1536861715226597668?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5470511991174807015/posts/default/1536861715226597668?v=2'/><link rel='alternate' type='text/html' href='http://neqashalhobnet.blogspot.com/2011/01/bmw-m3-track-edition-exclusive-for.html' title='BMW M3 Track Edition exclusive for Netherlands'/><author><name>neqashalhob</name><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='13822274104678489637'/></author></entry><entry gd:etag='W/&quot;A0MFQn8zeyp7ImA9Wx9WEUU.&quot;'><id>tag:blogger.com,1999:blog-5470511991174807015.post-4810770062597055973</id><published>2011-01-16T06:46:00.000-08:00</published><updated>2011-01-16T06:50:13.183-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-01-16T06:50:13.183-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OpenVZ'/><title>how to install openvz ? install openvz so easy</title><content type='html'>&lt;span&gt;&lt;span&gt;&lt;h3&gt;&lt;a href="" name="whatisvps"&gt;1.1. What is VPS?&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;A virtual private server or virtual dedicated server (VPS or VDS)is a server run through virtualization. It is used to partition a single physical server into many isolated virtual private servers. Each virtual private server looks and behaves exactly like a real networked server system, complete with its own set of init scripts, users, processes, filesystems, etc.,It fills the gap between shared hosting and dedicated hosting.&lt;/span&gt;   &lt;br /&gt;
&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="whatisopenvz"&gt; 1.2. What is openvz?&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;OpenVZ is an operating system-level virtulization technology based on the Linux kernel and operating system. OpenVZ allows a physical server to run multiple isolated operating system instances, known as Virtual Private Servers (VPS) or Virtual Environments (VE).&lt;/span&gt; &lt;span&gt;OpenVZ offers the least flexibility in the choice of operating system: both the guest and host OS must be Linux (although Linux distributions can be different in different VEs). However, OpenVZ’s operating system-level virtulization provides better performance, scalability, density, dynamic resource management, and ease of administration than the alternatives.&lt;/span&gt;&lt;br /&gt;
&lt;span&gt;OpenVZ kernel is a modified Linux kernel which adds support for Virtual Environments (VE).So it is easy to create and configure a VPS using &lt;a href="http://en.wikipedia.org/wiki/OpenVZ"&gt;openvz.&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h2&gt;&lt;a href="" name="req"&gt;2. Requirements&lt;/a&gt;&lt;/h2&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="soft"&gt;2.1. Software Requirements&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;The Hardware Node should run either Red Hat Enterprise Linux 3 or 4, or Fedora Core 3 or 4, or CentOS 3.4 or 4. The detailed instructions on installing these operating systems for the best performance of OpenVZ are provided in the next sections.&lt;/span&gt; &lt;span&gt;This requirement does not restrict the ability of OpenVZ to provide other Linux versions as an operating system for Virtual Private Servers. The Linux distribution installed in a Virtual Private Server may differ from that of the host OS.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="hard"&gt;2.2. Hardware Requirements&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;The Hardware Node requirements for the standard 32-bit edition of OpenVZ are the following:&lt;/span&gt; &lt;span&gt;The computer should satisfy the Red Hat Enterprise Linux or Fedora Core hardware requirements.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;i)IBM PC-compatible computer.&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;ii)CPUs:&lt;/em&gt;&lt;/strong&gt; Intel Celeron, Pentium II, Pentium III, Pentium 4, Xeon, or AMD Athlon CPU. The more Virtual Private Servers you plan to run simultaneously, the more CPUs you need.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;iii)Memory:&lt;/em&gt;&lt;/strong&gt; Atleast 128 MB of RAM.The more memory you have, the more Virtual Private Servers you can run. The exact figure depends on the number and nature of applications you are planning to run in your Virtual Private Servers. However, on the average, at least 1 GB of RAM is recommended for every 20-30 Virtual Private Servers.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;iv)HDD:&lt;/em&gt;&lt;/strong&gt; Atleast 4 GB of free disk space. Each Virtual Private Server occupies 400-600 MB of hard disk space for system files in addition to the user data inside the Virtual Private Server (for example, website content). You should consider it when planning disk partitioning and the number of Virtual Private Servers to run.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;v)NIC:&lt;/em&gt;&lt;/strong&gt; Network card will be either Intel EtherExpress100 (i82557-, i82558- or i82559-based) or 3Com(3c905 or 3c905B or 3c595) or RTL8139-based are recommended.&lt;br /&gt;
A typical 2-way Dell PowerEdge 1650 1u-mountable server with 1 GB of RAM and 36 GB of hard drives is suitable for hosting 30 Virtual Private Servers. &lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h2&gt;&lt;a href="" name="instal"&gt;3.Installation And Configuration&lt;/a&gt;&lt;/h2&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="preset"&gt;3.1. Pre-Setup&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;The first step before starting installation is to set up the openvz yum repository.&lt;/span&gt; &lt;pre&gt;&lt;span&gt;# cd /etc/yum.repos.d&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# wget http://download.openvz.org/openvz.repo&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# rpm –import  http://download.openvz.org/RPM-GPG-Key-OpenVZ&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# yum update&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Now create a separate hard disk partition having atleast 4GB of space and mount it in /vz &lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="kernel"&gt;3.2. Kernel Installation&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
You can install the kernel using yum. But it will be not good always.&lt;br /&gt;
So here you can compile an optimized kernel by yourself.&lt;br /&gt;
Before kernel compilation you may need to check the hardware type that installed in your server. &lt;/span&gt; &lt;pre&gt;&lt;span&gt;# cat /proc/cpuinfo&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;This will give you the information about processor. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# lspci&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;This will give you the list of main other hardwares installed in your system.&lt;br /&gt;
Now we can start to build the vps kernel from source. So we need to download a kernel source. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# cd /usr/src&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.tar.bz2&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Now to download the appropriate patch from openvz. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# wget http://download.openvz.org/kernel/devel/026test018.1/
patches/patch-026test018-combined.gz&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;The kernel configs are also available from openvz. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;#wget http://download.openvz.org/kernel/devel/026test018.1/configs/kernel-2.6.16-026test018-i686-smp.config.ovz&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Let us start the buiding… &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# tar xvjf linux-2.6.16.tar.bz2&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# cd linux-2.6.16&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# mv ../patch-026test018-combined.gz &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# gzip -dc patch-026test018-combined.gz | patch -p1&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# cp ../kernel-2.6.16-026test018-i686-smp.config.ovz .config&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# make menuconfig&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Now you can select the options depend on your server configuration. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# make all&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# make modules_install&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# make&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# make install&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Now the VPS host  kernel was successfully compiled and installed. So go to configure the boot loader either (grub or lilo). &lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="boot"&gt;3.3. Boot Loader Configuration&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt; If GRUB is used as boot loader, it will configure automatically. Lines similar to following will be added to the grub.conf file.&lt;/span&gt; &lt;pre&gt;&lt;span&gt;# cat /boot/grub/grub.conf&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt; Now you can find the following lines in grub.conf &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;title Fedora Core (2.6.16-026test018)
        root (hd0,0)
        kernel /vmlinuz-2.6.16-026test018 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.16-026test018.img&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Now edit this file as follows. (It is not necessary and just for understanding) &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vi /boot/grub/grub.conf&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;title VPS-openvz(2.6.16-026test018)
        root (hd0,0)
        kernel /vmlinuz-2.6.16-026test018 ro root=LABEL=/ rhgb quiet panic=5
        initrd /initrd-2.6.16-026test018.img&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Now set the “default” value to the newly edited image (in most case it will be ‘0′). Then save grub.config.If you are installing a remote server please add the following to the grub. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# grub –no-floppy&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;grub&amp;gt; savedefault –default=0 –once&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;grub&amp;gt; quit&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Don’t reboot the system now. We must need to configure some more files too. &lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="sysctl"&gt;3.4. Sysctl&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;We need to set the following contents in sysctl.conf for its good working&lt;/span&gt; &lt;pre&gt;&lt;span&gt;# vi /etc/sysctl.conf&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Now add the following parameters. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;net.ipv4.ip_forward = 1&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;net.ipv4.conf.default.proxy_arp = 0&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;net.ipv4.conf.all.rp_filter = 1&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;kernel.sysrq = 1&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;net.ipv4.conf.default.send_redirects = 1&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;net.ipv4.conf.all.send_redirects = 0&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="selin"&gt;3.5. SELinux&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;SELinux should be disabled.&lt;/span&gt; &lt;pre&gt;&lt;span&gt;# vi /etc/sysconfig/selinux&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Add the following line to this file. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;SELINUX=disabled&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="conntracks"&gt;3.6. Conntracks&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;In the stable OpenVZ kernels (those that are 2.6.8-based) netfilter connection tracking for VE0 is disabled by default. If you have a stateful firewall enabled on the host node you should either disable it, or enable connection tracking for VE0.&lt;/span&gt; &lt;span&gt;To enable conntracks for VE0 please edit the file /etc/modprobe.conf&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vi /etc/modprobe.conf&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Now add the following. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;options ip_conntrack ip_conntrack_enable_ve0=1&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;In kernels later than 2.6.8, connection tracking is enabled by default. &lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="reboot"&gt;3.7. Rebooting Into VPS&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
Now reboot the server. If it is loaded successfully we can proceed to installing the user-level tools for OpenVZ &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="utilities"&gt;3.8. Install Utilities&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;Now we need to install three basic utility packages .&lt;/span&gt; &lt;span&gt;&lt;strong&gt;&lt;em&gt;vzctl: &lt;/em&gt;&lt;/strong&gt;it is used to perform different operations  on the OpenVZ VPS (eg : create, destroy, start, stop, set parameters etc.)&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;vzquota: &lt;/em&gt;&lt;/strong&gt;This package is used to manage the VPS quotas.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;vzpkg: &lt;/em&gt;&lt;/strong&gt;this package is used to work with OpenVZ templates&lt;br /&gt;
Let us install this packages as follows &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# yum install vzctl&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# yum install vzquota&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# yum install vzpkg&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Now check the virtual ethernet device &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# ifconfig&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;If it is not there use the following command to make it up. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# ifconfig venet0 up &lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Now reboot the server &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# reboot&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="installos"&gt;3.9. Install OS Templates&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;Now you need to install at leaset one os template.&lt;/span&gt; &lt;pre&gt;&lt;span&gt;# yum install vztmpl-fedora-core&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Also you need to download a template package for creating vps . &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# cd /vz/template/cache/&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# wget http://download.openvz.org/template/precreated/fedora-core-4-i386-default.tar.gz&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h2&gt;&lt;a href="" name="usage"&gt;4. Usages&lt;/a&gt;&lt;/h2&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="create"&gt;4.1. Create VPS&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;First you need to select a vps id. The id 0  is used for the hardware node  itself.&lt;/span&gt; &lt;pre&gt;&lt;span&gt;# vzlist -a&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;This command list all the vps in the host. &lt;/span&gt;&lt;span&gt;You can create a vps using the default template or you can define a template package and a configuration. The default creation is as follows,&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzctl create 101&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;If you want to create a vps using a  OS template as follows &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzctl create 101 –ostemplate fedora-core-4 -i –config vps.basic&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;101: is the vp id&lt;br /&gt;
fedora-core-4: is the OS template&lt;br /&gt;
vps.basic: is the configurations defined in vps.basic.conf&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="configurevps"&gt;4.2. Configure VPS&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;Now we need to configure our vps. In this process we need to set up the following parameters.&lt;/span&gt; &lt;span&gt;i) Set the startup parameters&lt;br /&gt;
ii) Set the network parameters&lt;br /&gt;
iii) Set the root(user) password&lt;br /&gt;
So do the following commands in the host server. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzctl stop 101&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# vzctl set 101 –onboot yes –save&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# vzctl set 101 –hostname cyborg.com –save&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# vzctl set 101 –ipadd 192.168.1.169  –save&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# vzctl set 101 –nameserver 192.168.1.9 –save&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# vzctl set 101 –userpasswd root:qwerty&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# vzctl start 101&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Now our vps will automatically start at the boot time of host. Also it have the host name “cyborg.com” with ip 192.168.1.169 and nameserver 192.168.1.9. The root password was set to “qwerty”. Now do the following &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzlist -a
      VEID      NPROC STATUS  IP_ADDR         HOSTNAME
         1         17 running 192.168.1.166   localhost
       101         31 running 192.168.1.169   cyborg.com&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="start"&gt;4.3. Start,Stop and Restart&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;Now  you need to do the following operations in  your vps&lt;/span&gt; &lt;span&gt;i) start&lt;br /&gt;
ii)stop&lt;br /&gt;
iii)restart&lt;br /&gt;
iv)status&lt;br /&gt;
So run the following commands. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzctl stop 101
# vzctl start 101
# vzctl restart 101
# vzctl status 101&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;In my server it shows the following output. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzctl stop 101
Stopping VE …
VE was stopped
VE is unmounted

# vzctl start 101
Starting VE …
VE is mounted
Adding IP address(es): 192.168.1.169
Setting CPU units: 1000
Set hostname: cyborg.com
File resolv.conf was modified
VE start in progress…

# vzctl restart 101
Restarting VE
Stopping VE …
VE was stopped
VE is unmounted
Starting VE …
VE is mounted
Adding IP address(es): 192.168.1.169
Setting CPU units: 1000
Set hostname: cyborg.com
File resolv.conf was modified
VE start in progress…

# vzctl status 101
VEID 101 exist mounted running&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="delete"&gt;4.4. Delete VPS&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;To delete a vps node we use the “destroy” command.&lt;/span&gt; &lt;pre&gt;&lt;span&gt;# vzctl stop 101&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# vzctl destroy 101&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt; Now the vps node 101 is deleted.You can check the status of this node. My server give the following output on the status operation. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzctl status 101
VPS 101 deleted unmounted down&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h2&gt;&lt;a href="" name="commands"&gt;5. Commands &amp;amp; Tools&lt;/a&gt;&lt;/h2&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="run"&gt;5.1. Running Commands In VPS&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;We can run commands in a VPS through the host using “exec”.&lt;/span&gt; &lt;pre&gt;&lt;span&gt;# vzctl exec 101 &lt;comand&gt; &lt;/comand&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;An example is given below. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzctl exec 101 ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:27 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3118 (3.0 KiB)  TX bytes:3720 (3.6 KiB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:192.168.1.169  P-t-P:192.168.1.169  Bcast:192.168.1.169  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="template"&gt;5.2. OS Template Management&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;In this section we can see the list of cached and other templates.&lt;/span&gt; &lt;span&gt;To list the OS templates in the host please do the following commands. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzpkgls&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;To see the cached templates ,do the folowing &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzpkgls –cached&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;To see the template used by a vps do the following, &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzpkgls 101&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;The above commands give the following results in my server. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzpkgls
fedora-core-4-i386-default
fedora-core-4-i386-minimal

# vzpkgls –cached
fedora-core-4-i386-default

# vzpkgls 101
fedora-core-4-i386-default&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="operations"&gt;5.3. Operations in VPS&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;To update the vps do the folllowing&lt;/span&gt; &lt;pre&gt;&lt;span&gt;# vzyum 101 update&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;To install a package (eg: php) do the following. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzyum 101 install php &lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;To install an rpm(eg: MySQL-shared-3.23.57-1.i386.rpm) from the host ,do it as follows &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzrpm 101 -ihv MySQL-shared-3.23.57-1.i386.rpm&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h2&gt;&lt;a href="" name="resource"&gt;6. Resource Management&lt;/a&gt;&lt;/h2&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;This section is main important . The main goal of resource control in a VPS is to prevent a particular VPS from malicious or accidental usage of hardware resources.&lt;/span&gt; &lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="conffiles"&gt;6.1 Configuration Files&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;We can control the resource through a set of control parameters.All of these parameters placed in the openvz global configuration file or in the respective VPS configuration file.&lt;/span&gt; &lt;span&gt;The global configuration file is located in ” /etc/sysconfig/vz ” and the individual configuration file is located in ” /etc/sysconfig/vz-scripts/VPSID.conf “&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="disk"&gt;6.2 Disk Quota Management&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;There are a set of parameters determines disk quota in OpenVZ. The OpenVZ disk quota is realized on two levels:the per-VPS level and the per-user/group level. You can turn on/off disk quota on any level and configure its settings.&lt;/span&gt; &lt;span&gt;The main parameters are DISK_QUOTA, DISKSPACE,DISKINODES, QUOTATIME,QUOTAUGIDLIMIT.&lt;br /&gt;
DISK_QUOTA : Indicates whether first-level quotas are on or off for all VPSs or for a separate VPS.If is defined in the global configuration file (GF).&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# grep DISK_QUOTA /etc/sysconfig/vz
DISK_QUOTA=yes&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;DISKSPACE  : Total size of disk space the VPS may consume, in 1-Kb blocks.It is defined in the separate configuration file(SF). &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# grep DISKSPACE /etc/sysconfig/vz-scripts/101.conf
DISKSPACE=”2000000:2200000″&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;DISKINODES : Total number of disk inodes (files, directories, and symbolic links) the Virtual Private Server can allocate.It is defined in the separate configuration file(SF). &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# grep DISKINODES /etc/sysconfig/vz-scripts/101.conf
DISKINODES=”200000:220000″&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;QUOTATIME : The grace period for the disk quota overusage defined in seconds. The Virtual Private Server is allowed to temporarily exceed its quota soft limits for no more than the QUOTATIME period.It is defined in SF. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# grep QUOTATIME /etc/sysconfig/vz-scripts/101.conf
QUOTATIME=”0″&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;QUOTAUGIDLIMIT : Number of user/group IDs allowed for the VPS internal disk quota. If set to 0, the UID/GID quota will not be enabled.It is defined in SF.&lt;br /&gt;
&lt;strong&gt;Turning on/off per vps disk  quota:&lt;/strong&gt;Now to turning on per vps disk quota do the following.&lt;br /&gt;
Edit the separate configuration file &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vi /etc/sysconfig/vz-scripts/101.conf&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Add the following, &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;DISK_QUOTA=yes&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;If you set  the above value to “no”. The quota will be off. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzctl restart 101&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# vzctl exec 101 df -h&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;&lt;strong&gt;Set up per vps disk quota:&lt;/strong&gt;Now to set up per vps disk quota(eg : for a nod 102) we need to set up the following parameters DISKSPACE ,DISKINODES ,QUOTATIME &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;#  vzctl set 102 –diskspace 1000000:1100000 –save&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;#  vzctl set 102 –diskinodes 90000:91000 –save&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;#  vzctl set 102 –quotatime 600 –save&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;#  vzctl restart 102&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;#  vzctl exec 102 df -h&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;&lt;strong&gt;Turning On/Off Second-Level Quotas for Virtual Private Server:&lt;/strong&gt;The parameter that controls the second-level disk quotas is QUOTAUGIDLIMIT in the VPS configuration file. By default, the value of this parameter is zero and this corresponds to disabled per-user/group quotas. &lt;/span&gt;&lt;span&gt;Enabling per-user/group quotas for a Virtual Private Server requires restarting the VPS. The value for it should be carefully chosen; the bigger value you set, the bigger kernel memory overhead this Virtual Private Server creates. This value must be greater than or equal to the number of entries in the VPS /etc/passwd and /etc/group files.&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# cat /etc/passwd|wc -l
55
# cat /etc/group|wc -l
66
# vzctl set 102 –quotaugidlimit 100 –save
# vzctl restart 102&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;&lt;strong&gt;Setting Up Second-Level Disk Quota Parameters:&lt;/strong&gt;first to check the required packages are there in the vps. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzctl exec 102 rpm -q quota&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;Then ssh to the node 102&lt;br /&gt;
Now to edit the quota for the root do the following, &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# edquota root&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;To report the quota do the folowing, &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# repquota -a&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;This command gives the following output in my test vps. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# repquota -a
*** Report for user quotas on device /dev/simfs
Block grace time: 00:00; Inode grace time: 00:00
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
———————————————————————-
root      —  455028       0       0          19878     0     0
smmsp     —       8       0       0              2     0     0
named     —      40       0       0             10     0     0
apache    —       8       0       0              2     0     0
rpm       —    9472       0       0             75     0     0
mysql     —    1332       0       0            163     0     0&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;To check the quota stats do the following operation in the host server. &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;# vzquota stat 102 -t&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="cpu"&gt;6.3 CPU Sharing&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span&gt;We can set up the cpu utilization of a vps as follows.&lt;/span&gt; &lt;pre&gt;&lt;span&gt;# vzcpucheck&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# vzctl set 102 –cpuunits 1500 –cpulimit 4 –save&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span&gt;# vzctl restart 102&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h2&gt;&lt;a href="" name="conclusion"&gt;7. Conclusion&lt;/a&gt;&lt;/h2&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
This document provide a minimum information to create a VPS server. There was an advanced section and it will be published soon.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="ack"&gt;A. Acknowledgment&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;em&gt;First thanks to SWSoft to for designing and writing such a powerful and elegant system.&lt;br /&gt;
I would also like to thank the members of cyborg team in Bobcares, especially Sujith MK and Amal.&lt;br /&gt;
Thanks to everyone who reviewed this document&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="author"&gt;B. Author&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;Sherinmon A&lt;br /&gt;
Bobcares.com (&lt;a href="http://bobcares.com/"&gt;bobcares.com&lt;/a&gt;)&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;em&gt;&lt;em&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="download"&gt;C. Downloads&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
Linux kernel repository:&lt;a href="http://www.kernel.org/pub/linux/kernel/"&gt; http://www.kernel.org/pub/linux/kernel/ &lt;/a&gt;&lt;br /&gt;
OpenVZ kernels,patches and configs:&lt;a href="http://download.openvz.org/kernel/devel/"&gt; http://download.openvz.org/kernel/devel/&lt;/a&gt;&lt;br /&gt;
OpenVZ utilities:&lt;a href="http://download.openvz.org/utils/"&gt; http://download.openvz.org/utils/&lt;/a&gt;&lt;br /&gt;
Os templates:&lt;a href="http://download.openvz.org/template/"&gt; http://download.openvz.org/template/&lt;/a&gt;&lt;br /&gt;
Other downloads:&lt;a href="http://download.openvz.org/"&gt; http://download.openvz.org&lt;/a&gt;&lt;/em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;em&gt;&lt;em&gt;&lt;span&gt; &lt;h3&gt;&lt;a href="" name="reference"&gt;D. References&lt;/a&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;em&gt;http://openvz.org/&lt;br /&gt;
http://forum.openvz.org/&lt;br /&gt;
http://blog.openvz.org/&lt;br /&gt;
http://wiki.openvz.org/&lt;/em&gt;&lt;/em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;em&gt;&lt;em&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;/em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;em&gt;&lt;em&gt;&lt;em&gt;From : http://bobcares.com/blog/?p=107 &lt;/em&gt;&lt;/em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5470511991174807015-4810770062597055973?l=neqashalhobnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5470511991174807015/posts/default/4810770062597055973?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5470511991174807015/posts/default/4810770062597055973?v=2'/><link rel='alternate' type='text/html' href='http://neqashalhobnet.blogspot.com/2011/01/how-to-install-openvz-install-openvz-so.html' title='how to install openvz ? install openvz so easy'/><author><name>neqashalhob</name><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='13822274104678489637'/></author></entry><entry gd:etag='W/&quot;CEAARX8_eip7ImA9Wx9WEUU.&quot;'><id>tag:blogger.com,1999:blog-5470511991174807015.post-5477795572604398366</id><published>2011-01-16T04:59:00.000-08:00</published><updated>2011-01-16T04:59:04.142-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-01-16T04:59:04.142-08:00</app:edited><title>Nginx Catch-All Host As Front End To Apache For ISPConfig 2 On CentOS 5</title><content type='html'>&lt;b&gt;Nginx&lt;/b&gt; (pronounced “engine X”) is a lightweight,  high-performance Web server/reverse proxy and e-mail (IMAP/POP3) proxy, licensed  under a BSD-like license. It runs on UNIX, GNU/Linux, BSD variants, Mac OS X,  Solaris, and Microsoft Windows. Apache's performance is generally very good as well. However, in a  resource-constrained environment , Apache does not necessarily provide optimal  performance or resource utilization. One of the “best practice” approaches to  reducing the strain on Apache is to let a leaner lighter web server take over  the serving of the site's static files (images, javascript, css, etc.), leaving  the heavy lifting of serving the dynamic content to Apache. This tutorial shows how you can setup Nginx as front end to apache for ISPConfig  2 On CentOS 5.x.&lt;br /&gt;
I do not issue any guarantee that this will work for you!&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Configure ISPConfig 2&lt;/h3&gt;First, you need to change ISPConfig 2 config file as follows :&lt;br /&gt;
&lt;div class="command"&gt; cp -v /root/ispconfig/scripts/lib/config.lib.php /root/ispconfig/scripts/lib/config.lib.php.orig&lt;br /&gt;
vi /root/ispconfig/scripts/lib/config.lib.php&lt;/div&gt;Find line number 1283 and change port 80 to 8080:&lt;br /&gt;
&lt;pre&gt;$web_port = ":80";&lt;/pre&gt;&lt;br /&gt;
&lt;pre&gt;$web_port = ":8080";&lt;/pre&gt;Find line numbers 2088 and 2089 and change port 80 to 8080 as well:&lt;br /&gt;
&lt;pre&gt;$test_vhost = "\n".'&lt;virtualhost 10.0.0.1:80=""&gt;
ServerName www.test.tld:80
ServerAdmin webmaster@test.tld
DocumentRoot /home
'.$web_httpd_include.'&lt;/virtualhost&gt;';&lt;/pre&gt;&lt;br /&gt;
&lt;pre&gt;$test_vhost = "\n".'&lt;virtualhost 10.0.0.1:8080=""&gt;
ServerName www.test.tld:8080
ServerAdmin webmaster@test.tld
DocumentRoot /home
'.$web_httpd_include.'&lt;/virtualhost&gt;';&lt;/pre&gt;If you like much simpler method use :&lt;br /&gt;
&lt;div class="command"&gt; sed -ie 's/:80/:8080/g' /root/ispconfig/scripts/lib/config.lib.php&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;Configure Apache &lt;/h3&gt;Change the default listening port in Apache from 80 to 8080.&lt;br /&gt;
&lt;div class="command"&gt; vi /etc/httpd/conf/httpd.conf&lt;/div&gt;&lt;pre&gt;Listen 80
UseCanonicalName Off&lt;/pre&gt;&lt;br /&gt;
&lt;pre&gt;Listen 8080
UseCanonicalName On&lt;/pre&gt;&lt;br /&gt;
&lt;h3&gt;Install Nginx &lt;/h3&gt;To install nginx web server:&lt;br /&gt;
&lt;div class="command"&gt; yum install httpd-devel pcre perl pcre-devel zlib zlib-devel&lt;br /&gt;
cd /tmp&lt;br /&gt;
wget http://download.fedora.redhat.com/pub/epel/5/i386/nginx-0.6.39-5.el5.i386.rpm&lt;br /&gt;
rpm -ivh nginx-0.6.39-5.el5.i386.rpm&lt;/div&gt;&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;And now, you must configure nginx.&lt;br /&gt;
&lt;div class="command"&gt; vi /etc/nginx/nginx.conf&lt;/div&gt;&lt;pre&gt;user nginx;
worker_processes 4;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
#----------------------------------------------------------------------
# Events Module 
#
# http://wiki.codemongers.com/NginxEventsModule
#
#----------------------------------------------------------------------
events {
 worker_connections 1024;
 use epoll;
}
#----------------------------------------------------------------------
# HTTP Core Module
#
# http://wiki.codemongers.com/NginxHttpCoreModule 
#
#----------------------------------------------------------------------
http {
 include /etc/nginx/mime.types;
 default_type application/octet-stream;
 
 log_format main '$remote_addr - $remote_user [$time_local] $request '
 '"$status" $body_bytes_sent "$http_referer" '
 '"$http_user_agent" "$http_x_forwarded_for"';
 
 access_log /var/log/nginx/access.log main;
 
 sendfile on;
 tcp_nopush on;
 tcp_nodelay on;
 
 keepalive_timeout 65;
 
 gzip on;
 gzip_vary on;
 gzip_comp_level 6;
 gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
 gzip_buffers 16 8k;
 gzip_disable "MSIE [1-6].(?!.*SV1)";
 
 # 
 proxy_temp_path /var/cache/nginx/temp;
 proxy_cache_path /var/cache/nginx/cached levels=1:2 keys_zone=global:60m inactive=15m max_size=1G;
 proxy_cache_valid    200 302 10m;
 proxy_cache_valid    301 1h;
 proxy_cache_valid    404 3m; 
 proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504; 
 proxy_cache_key "$scheme$host$request_uri $cookie_user";
 #
 
 upstream apache {
 server PLACE-IP-ADDRESS-OF-YOUR-SERVER-HERE:8080;
 }
 ###########################################################
 #
 # The default server
 #
 server {
 
  proxy_cache global;
  
  listen 80;
  server_name _;
  server_name_in_redirect off;
  resolver 127.0.0.1;
  server_tokens off;
  
  if ($host ~* ^(www\.)(.+)) {
   set $rawdomain $2;
   rewrite ^/(.*)$ http://$rawdomain/$1 permanent;
  }
  
  client_max_body_size 30m;
  client_body_buffer_size 256k;
  
  location / {
  
  if (-d $request_filename) {
   rewrite ^/(.+[^/])$ http://$host/$1/ permanent;
  }
  
  proxy_pass http://apache;
  proxy_redirect off;
  proxy_pass_header Set-Cookie;
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  
  proxy_connect_timeout 120;
  proxy_send_timeout 120;
  proxy_read_timeout 120;
  proxy_buffer_size 4k;
  proxy_buffers 4 32k;
  proxy_busy_buffers_size 64k;
  
  root /var/www/www.$host/web;
   index index.php index.html index.htm default.htm default.html;
  }
  
  error_page 404 /404.html;
  location = /404.html {
   root /usr/share/nginx/html;
  }
  
  # redirect server error pages to the static page /50x.html
  #
  error_page 500 502 503 504 /50x.html;
  location = /50x.html {
   root /usr/share/nginx/html;
  }
  
  location ~* ^.+.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|swf|flv|mp3)$ {
   root /var/www/www.$host/web; 
   access_log off;
   proxy_cache_valid 200 10h;
   expires 3d;
  }
 }
 include /etc/nginx/conf.d/*.conf;
}&lt;/pre&gt;&lt;div class="highlight"&gt;Important note: Do not forget to replace IP ADDRESS of your  Apache server in this config file.&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;Restart required services and enjoy!&lt;/h3&gt;Restart ISPConfig and Apache services and start the nginx service.&lt;br /&gt;
&lt;div class="command"&gt; service httpd restart&lt;br /&gt;
service ispconfig_server restart &lt;br /&gt;
service nginx start&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;Testing&lt;/h3&gt;First, check the virtual host ispconfig file:&lt;br /&gt;
&lt;div class="command"&gt; cat /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf &lt;/div&gt;It must look like:&lt;br /&gt;
&lt;pre&gt;######################################
# Vhost: www.example.com:8080
######################################
#
#
&lt;virtualhost xxx.xxx.xxx.xxx:8080=""&gt;ServerName www.example.com:8080
ServerAdmin info@example.com
DocumentRoot /var/www/web100/web
...&lt;/virtualhost&gt;&lt;/pre&gt;Secondly, check the nginx log and error files.&lt;br /&gt;
&lt;div class="command"&gt; tail -f /var/log/nginx/access.log&lt;br /&gt;
tail -f /var/log/nginx/error.log&lt;/div&gt;Restart the server if required.&lt;br /&gt;
&lt;div class="command"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5470511991174807015-5477795572604398366?l=neqashalhobnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5470511991174807015/posts/default/5477795572604398366?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5470511991174807015/posts/default/5477795572604398366?v=2'/><link rel='alternate' type='text/html' href='http://neqashalhobnet.blogspot.com/2011/01/nginx-catch-all-host-as-front-end-to.html' title='Nginx Catch-All Host As Front End To Apache For ISPConfig 2 On CentOS 5'/><author><name>neqashalhob</name><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='13822274104678489637'/></author></entry></feed>