Menggunakan OpenVZ

From SmartCommunity

Revision as of 06:52, 29 January 2016 by Admin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

OpenVZ is a free and Open Source virtualization platform that allows you to separate your operating system to multiple containers. Each of them has it’s own directory structure, software and users (including root). The purpose of OpenVZ is providing VPS hosting.


The most easy way to get installed OpenVZ is to install CentOS operating system and follow some simple steps.

cd /etc/yum.repos.d
rpm --import
yum install ovzkernel vzctl vzquota
chkconfig --add vz
chkconfig vz on

After that edit your /etc/sysctl.conf as shown below

# On Hardware Node we generally need
# packet forwarding enabled and proxy arp disabled
net.ipv4.ip_forward = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.forwarding = 1
net.ipv4.conf.default.proxy_arp = 0

# Enables source route verification
net.ipv4.conf.all.rp_filter = 1

# Enables the magic-sysrq key
kernel.sysrq = 1

# We do not want all our interfaces to send redirects
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0

Be sure to have disabled SELinux as well. CentOS installer usually suggest you to enable/disable it during the install process, but if you are not sure, you always may check it by editing /etc/sysconfig/selinux.


Note that your new installed OpenVZ kernel has been automatically added to your /boot/grub/menu.lst as default boot option, so, you may reboot into your OpenVZ environment right now.

Web panel

OpenVZ web panel is software that gives ability to create, destroy and edit OpenVZ containers through it’s simple AJAX based web interface. The project has a Google Code page.