{"id":112,"date":"2015-04-27T11:12:52","date_gmt":"2015-04-27T11:12:52","guid":{"rendered":"http:\/\/betakb.veeble.org\/?p=112"},"modified":"2025-04-24T11:10:32","modified_gmt":"2025-04-24T05:40:32","slug":"openvz-installation","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/openvz-installation\/","title":{"rendered":"Installing OpenVZ on CentOS: Full Server &#038; VPS Setup Guide"},"content":{"rendered":"<p>Follow the below steps to install OpenVZ in your server.<\/p>\n<p>1. Add the openvz repo.<\/p>\n<pre>cd \/etc\/yum.repos.d\nwget <a class=\"external free\" href=\"http:\/\/download.openvz.org\/openvz.repo\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/download.openvz.org\/openvz.repo<\/a>\nyum -y install ovzkernel\n<\/pre>\n<p>2. Adjust the sysctl.conf<\/p>\n<pre>vi \/etc\/sysctl.conf \n<\/pre>\n<pre># Controls IP packet forwarding\nnet.ipv4.ip_forward = 1 \n# Controls source route verification\nnet.ipv4.conf.default.rp_filter = 1\n# Controls the System Request debugging functionality of the kernel\nkernel.sysrq = 1 \nnet.ipv4.conf.default.proxy_arp = 0\nnet.ipv4.conf.default.send_redirects = 1\nnet.ipv4.conf.default.send_redirects = 1\nnet.ipv4.conf.all.send_redirects = 0\n# Enables source route verification\nnet.ipv4.conf.all.rp_filter = 1\n<\/pre>\n<pre>sysctl -p\n<\/pre>\n<pre>shutdown -r now\nuname -r\n<\/pre>\n<p>3. Install openvz tools.<\/p>\n<pre>yum install vzctl vzquota vzpkg\n<\/pre>\n<p>4. Start<\/p>\n<pre>\/etc\/init.d\/vz start\n<\/pre>\n<p>5. Download pre-created templates from <a class=\"external free\" href=\"http:\/\/download.openvz.org\/template\/precreated\/\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/download.openvz.org\/template\/precreated\/<\/a> to your server.<\/p>\n<pre>cd \/vz\/template\/cache\/\nwget <a class=\"external free\" href=\"http:\/\/download.openvz.org\/template\/precreated\/centos-6-x86.tar.gz\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/download.openvz.org\/template\/precreated\/centos-6-x86.tar.gz<\/a>\n<\/pre>\n<p>6. Create a VPS<\/p>\n<pre>vzctl create 101 --ostemplate centos-5-x86 --config vps.basic\n<\/pre>\n<p>7. Set hostname<\/p>\n<pre>vzctl set 101 --hostname veeble --save\n<\/pre>\n<p>Now you have a installed openvz and created a virtual server with it!!!<\/p>\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-7a874b59 wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Optimize Node.js Performance with Veeble&#8217;s High-Speed Hosting<\/h3><p class=\"uagb-cta__desc\">Boost your app&#8217;s speed with SSD storage and load balancing. Global data centers mean low latency and high performance.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/nodejs-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Explore Node.js Plans<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Follow the below steps to install OpenVZ in your server. 1. Add the openvz repo. cd \/etc\/yum.repos.d wget http:\/\/download.openvz.org\/openvz.repo yum -y install ovzkernel 2. [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":8709,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[3],"tags":[],"class_list":["post-112","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-installation"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Installing-OpenVZ-on-CentOS-Full-Server-VPS-Setup-Guide.jpg",1472,832,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Installing-OpenVZ-on-CentOS-Full-Server-VPS-Setup-Guide-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Installing-OpenVZ-on-CentOS-Full-Server-VPS-Setup-Guide-300x170.jpg",300,170,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Installing-OpenVZ-on-CentOS-Full-Server-VPS-Setup-Guide-768x434.jpg",768,434,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Installing-OpenVZ-on-CentOS-Full-Server-VPS-Setup-Guide-1024x579.jpg",1024,579,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Installing-OpenVZ-on-CentOS-Full-Server-VPS-Setup-Guide.jpg",1472,832,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Installing-OpenVZ-on-CentOS-Full-Server-VPS-Setup-Guide.jpg",1472,832,false]},"uagb_author_info":{"display_name":"Vipin Raj","author_link":"https:\/\/www.veeble.com\/kb\/author\/vipin\/"},"uagb_comment_info":0,"uagb_excerpt":"Follow the below steps to install OpenVZ in your server. 1. Add the openvz repo. cd \/etc\/yum.repos.d wget http:\/\/download.openvz.org\/openvz.repo yum -y install ovzkernel 2. [&hellip;]","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=112"}],"version-history":[{"count":4,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/112\/revisions"}],"predecessor-version":[{"id":8710,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/112\/revisions\/8710"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8709"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}