VPS.Stoned-IT.com uses OpenVZ virtualisation to provide it’s users with Virtual Linux Environments. In this article I will try to describe how OpenVZ works, why we use OpenVZ, and what the advantages and disadvantages of using OpenVZ are.
OpenVZ
OpenVZ is a virtualisation technology that was developed by Parallels, and is the basis for their Virtuozzo platform. OpenVZ consists of the open sourced parts of Virtuozzo.
OpenVZ works somewhat like Solaris Zones or FreeBSD jails, in the aspect that it utilizes a single operating system kernel and creates various user-environments within the single operating system space. The various user-environments are called Virtual Environments, of VE.
Users in a VE will have their own view on the available resources in the system. They are only able to see and interact with processes running in the same VE, they only have access to files and diskspace assigned to the VE and can only see network-traffic destined to the IP address assigned to the VE.
Advantages and disadvantages
Due to the fact that OpenVZ uses a single operating system kernel to provide various Virtual Environments the overhead of OpenVZ is very low. No memory is wasted by loading copies of the kernel for every VE, no translation is needed for I/O going to the storage or network.
This allows for very lightweight VE’s, with some environments taking less then 8MB of memory and only a few megabytes of diskspace.
Another advantage of OpenVZ is that it doesn’t require any hardware-assisted virtualisation on the system and it doesn’t need to ‘emulate’ any cpu or I/O instructions, which would put a large strain on the resources.
A disadvantage of the OpenVZ VE’s is that only Linux environments are possible, since the kernel is shared between all environments it’s not possible for a VE to make modifications to the kernel. It’s also not allowed for the VE’s to change their IP-configuration, to act as NFS servers or to mount filesystems, as this would have an impact on the host’s security system.
Your files and processes are visible on the host-system, but hidden from other users of the system. Only the root-user on the host can access your resources. This access is also used to make backups of all your files, so we can help you with a restore in case you accidentally erase some files.
It is possible to mount iso images and use sshfs systems using fuse, but kernel-mode mounting is not available.
Why OpenVZ
For VPS.Stoned-IT.com we decided to use OpenVZ, since it allowed us to use available hardware (without hardware assisted virtualisation) and provide cheap and fast Virtual Environments. The low memory usage and high throughput allows us to provide the users with more memory and I/O speed than would be possible using other techniques.