Librenix
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

VPS: Xen vs. OpenVZ

Up
vote
Down

This is a short overview of the key differences between OpenVZ and Xen that you might consider when choosing a VPS. Note that this article is based on my opinions and that you must do your own research to determine which, if either, technology is best for you and your application.

First, some terminology. OpenVZ isn't fully virtualized and could be more properly referred to as a 'container', not a VPS. That shouldn't affect your choice. It's the technical differences that matter.

Cheap VPS offers are everywhere lately, it seems. However, upon closer inspection I saw that almost all of the low-priced offers were for OpenVZ. While both Xen and OpenVZ offer their advantages, I chose Xen. So, there's my first bias, right up front. :)

OpenVZ advantages:

  • Efficient (fast)
OpenVZ disadvantages:
  • Shared kernel (no custom kernel)
  • Shared memory with other users
  • Vendor can easily oversell, killing performance
Xen advantages:
  • Dedicated memory
  • fully virtualized (can run other kernels or even OS's)
  • vendor more limited in overselling
Xen disadvantages
  • Less efficient (more overhead due to a kernel-per-VPS)

You'll notice I left price out of the above comparison. In theory, there should be a small price advantage for OpenVZ. I don't know how big it should be but it pertains to two things: 1) Xen uses more memory due to each VPS having its own kernel, and 2) Xen uses more CPU, also due to the additional software layer required to virtualize the kernel.

In practice, however, the price gap appears larger than the above technical differences suggest it should be. I think the remainder of OpenVZ's price advantage is based on 1) the ability for a vendor to easily oversell OpenVZ, and 2) The price competition that results from some vendors overselling OpenVZ.

OpenVZ doesn't encapsulate its containers into a fixed amount of memory, so it runs processes in the host environment to monitor memory usage and kill processes as a container allocates more than its assigned amount.

As a result of this difference, loading down an OpenVZ container is problematic. To partially offset this disadvantage, most OpenVZ vendors offer 'burst' memory in addition to 'dedicated' memory. That is, the monitor process is set to allow the container to use more than its allocated memory -- for a short period of time. This messy situation results in a potentially unreliable environment as some of your processes may be arbitrarily killed -- at the busiest times.

Xen, on the other hand, allows the use of a swap space and excess memory allocation results in (hopefully) idle segments being rolled out to the swap area. While this is good for the memory-hungry VPS user, it can consume significant I/O capacity when memory is overallocated to the point of busy segments getting swapped out. This is bad for everyone sharing the underlying hardware.

I see Xen as clearly the superior technology. A Xen VPS feels and behaves more like a dedicated server. However, I still would have purchased OpenVZ at some price difference. After a bit of research, however, I located Xen VPS's at practically the same price as the cheapest OpenVZ containers. That made my decision easy.

With that said, keep in mind that a bad hosting vendor can ruin either technology through various means. Both technologies share the disk drives and I/O paths as well as the processor cores. Hardware can be poorly configured and managed in any case. A reputable vendor is probably the single most important consideration in choosing a virtual server.

Lastly, carefully check the 'allowed use' policy. Make sure your application is allowed on the server you intend to purchase. Note that due to their different characteristics, the allowed use policy may differ between OpenVZ and Xen for the same host. Also, it's good to understand the memory usage characteristics of your applications. If you know how much memory/swap they require on a physical system, it'll probably work with that same amount of memory/swap on Xen.

[I'll post a review shortly of my current VPS vendor and I will then add a link to that article here.]

mail this link | permapage | score:9627 | -Ray, June 13, 2011

Installing, Using OpenVZ on CentOS 6.4

Up
vote
Down

In this HowTo I will describe how to prepare a CentOS 6.4 server for OpenVZ. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. The OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license. read more...
permapage | score:9562 | -falko, April 7, 2013

Install OpenVZ on Debian 6

Up
vote
Down

In this HowTo I will describe how to prepare a Debian Squeeze server for OpenVZ. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. The OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license. read more...
permapage | score:9284 | -falko, February 17, 2011

Using OpenVZ on Scientific Linux 6.3

Up
vote
Down

In this HowTo I will describe how to prepare a Scientific Linux 6.3 server for OpenVZ. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. The OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license. read more...
permapage | score:8864 | -falko, February 18, 2013

Installing OpenVZ on CentOS 6.3

Up
vote
Down

In this HowTo I will describe how to prepare a CentOS 6.3 server for OpenVZ. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. The OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license. read more...
permapage | score:8751 | -falko, August 6, 2012

Comparison: OpenVZ vs Virtuozzo Virtual Environments

Up
vote
Down

Find out how open source OpenVZ and proprietary Virtuozzo, both products of vendor SWsoft, match up at the enterprise-level in the ongoing competition for the virtual private server space.
OpenVZ is a subset of the Virtuozzo platform and a test bed for future development of the commercial product line. The OpenVZ platform supports eight 32- or 64-bit CPUs, 64 gigabytes of RAM and a maximum of 100 concurrent VPS instances. Without being restarted, a single OpenVZ host can scale dynamically between minimal and maximal system resources according to increased demand.
read more...
mail this link | permapage | score:8650 | -janewalker6847, June 7, 2006

Install OpenVZ on Fedora 14

Up
vote
Down

In this HowTo I will describe how to prepare a Fedora 14 server for OpenVZ. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. The OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license. read more...
permapage | score:8647 | -falko, December 17, 2010

Tutorial: Install OpenVZ under RHEL / CentOS Linux

Up
vote
Down

OpenVZ virtualization uses the concept of containers to run Linux only instances on the same hadware. OpenVZ is an operating system-level virtualization technology based. It allows a physical server to run multiple isolated different Linux distributions operating system instances, known as containers or Virtual Private Servers (VPSs), or Virtual Environments (VEs). It's similar to FreeBSD Jails and Solaris Zones. This article explains how to install and setup VEs under RHEL and CentOS Linux server 5.x. read more...
mail this link | permapage | score:8312 | -nixcraft, August 8, 2009

Install OpenVZ on CentOS 6.0

Up
vote
Down

In this HowTo I will describe how to prepare a CentOS 6.0 server for OpenVZ. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. The OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license. read more...
permapage | score:8300 | -falko, August 1, 2011

Tutorial: OpenVZ on Fedora 15

Up
vote
Down

In this HowTo I will describe how to prepare a Fedora 15 server for OpenVZ. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. The OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license. read more...
permapage | score:8274 | -falko, July 5, 2011

OpenVZ Mount Tutorial: Mount Host Devices, Partitions, Directories in Containers (Debian, Ubuntu)

Up
vote
Down

Sometimes you are in a situation where you need to mount a hard drive, partiiton or directory from the OpenVZ host inside an OpenVZ container - for example, you add a fast SSD to the host and want to put your container's MySQL databases on it to make MySQL faster. This tutorial explains how you can mount host devices/partitions/directories in an OpenVZ container with bind mounts. read more...
permapage | score:8249 | -falko, July 22, 2012

Tutorial: Install OpenVZ plus VM Management on Debian 6.0

Up
vote
Down

This tutorial describes the installation of an OpenVZ host server to manage virtual machines from within the ISPConfig 3 hosting control panel. OpenVZ is a lightweight virtualization technology for Linux servers, similar to jails on *BSD systems. ISPConfig 3 contains a module to manage OpenVZ virtual machines on the local server and on remote servers that run ISPConfig. read more...
permapage | score:8084 | -falko, January 12, 2012

OpenVZ Tutorial: Build virtual host with Web, MySQL, Email, DNS servers on Debian 6

Up
vote
Down

This tutorial describes how you can set up a single dedicated server as a virtual multiserver environment using OpenVZ with dedicated Web & MySQL, Email and DNS servers on Debian Squeeze. Also, you will learn how to maintain all these servers. As an addition, you will learn how to install some very useful packages on all of them, how to protect them and how to monitor them. At the end you will have a fully functional virtual multiserver environment, ready for shared hosting. read more...
permapage | score:8068 | -falko, May 26, 2012

How to Install and Use OpenVZ on Ubuntu 10.04

Up
vote
Down

In this HowTo I will describe how to prepare an Ubuntu 10.04 server for OpenVZ. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. The OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license. read more...
permapage | score:7957 | -falko, August 24, 2010

Installing OpenVZ on CentOS 5.7

Up
vote
Down

In this HowTo I will describe how to prepare a CentOS 5.7 server for OpenVZ. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. The OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license. read more...
permapage | score:7914 | -falko, November 7, 2011

Howto: OpenVZ on Debian

Up
vote
Down

In this HowTo I will describe how to prepare a Debian Etch server for OpenVZ. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. The OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license. read more...
permapage | score:7906 | -falko, May 25, 2008

Convert Debian systems and Xen VMs into OpenVZ containers

Up
vote
Down

This guide explains how you can convert physical systems (running Debian Etch) or Xen domUs (also running Debian Etch) into an OpenVZ container. This procedure should also work for converting VMware VMs, VirtualBox VMs, or KVM VMs into OpenVZ containers, but I haven't tried this. It should work for other Linux distributions as well, with minor modifications (for example, the network configuration is not located in /etc/network/interfaces if you're not on Debian/Ubuntu). read more...
permapage | score:7756 | -falko, January 16, 2009

Install and use OpenVZ on Debian Linux

Up
vote
Down

In this HowTo I will describe how to prepare a Debian Lenny server for OpenVZ. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. The OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license. read more...
permapage | score:7696 | -falko, March 3, 2009

How to install and use OpenVZ on CentOS 5.2

Up
vote
Down

In this HowTo I will describe how to prepare a CentOS 5.2 server for OpenVZ. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. The OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license. read more...
permapage | score:7594 | -falko, July 31, 2008

Install OpenVZ on CentOS 5.6

Up
vote
Down

In this HowTo I will describe how to prepare a CentOS 5.6 server for OpenVZ. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. The OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license. read more...
permapage | score:7542 | -falko, April 28, 2011
More articles...
Abstract Art Online Gallery

Recent headlines

Upgrade Ubuntu 12.10 to 13.04

Tutorial: Ubuntu 13.04 Samba Server with tdbsam

Tutorial: Replace Windows with Ubuntu 13.04

Tutorial: Build an Ubuntu 13.04 Server (Apache2, BIND, Dovecot)

Virtual Users/Domains with Postfix, Courier, MySQL, SquirrelMail (CentOS 6.3)

Using Multiple PHP Versions (PHP-FPM FastCGI) With ISPConfig 3 (Ubuntu 12.04)

Tutorial: Install Nginx, PHP5, PHP-FPM, and MySQL on CentOS 6.4

KVM Virtualization on CentOS 6.4

Setting up ProFTPd + TLS on Ubuntu 12.10

4 gui applications for installing Linux from USB key

Install Mplayer and Multimedia codecs on Ubuntu 13.04

Encrypt your data with EncFS (OpenSUSE 12.3)

Virtual Hosting: Proftpd, MySQL on Ubuntu 12.10

Multiboot Linux distributions from one USB key

Tutorial: Automatically add a disclaimer to emails with alterMIME (Postfix on Debian 6)

tmux: terminal multiplexer

Tutorial: Install Lighttpd, PHP5, MySQL on CentOS 6.4

Tutorial: Multiple PHP Versions (Ubuntu 12.10)

Tutorial: Install Apache2, PHP5, MySQL on OpenSUSE 12.3

Infotainment systems: The next generation

Tutorial: PrestaShop 1.5.x on Nginx (Debian 7/Ubuntu 12.10

Tutorial: Install Piwigo Gallery on Nginx (Debian 7)

The Coming HTML 5 Revolution in Linux

Riak Cloud Storage released under Apache 2 license

Tutorial: Run Joomla 1.7 on Nginx on Debian 6, Ubuntu 11.10

VirtualBox 4.2.10 released and ubuntu installation instructions included

Virtual Hosting with PureFTPd, MySQL on CentOS 6.4

Google Reader axed. Is FeedBurner next?

Deploy Piwik Web Analytics on OpenShift Online

Kali Linux 1.0 review

Tutorial: OpenSUSE 12.3 Samba Server with tdbsam

The Debate OS Project

Tutorial: Build a CentOS 6.4 x86_64 Server

Tutorial: Webcam streaming your desktop plus audio with ffmpeg, crtmpserver, Flowplayer

LibreOffice migration guide

Tutorial: Run ActiveCollab 3 on Nginx (LEMP) on Debian 7/Ubuntu 12.10

Tutorial: mod_spdy with Apache2 on CentOS 6.4

PDNSD HowTo: A DNS Caching Personal Server

Fedora 16 security features

Pissed Off Penguins: A Free Game Project

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin