Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I choose KVM or OpenVZ for my VPS? [closed]

Tags:

kvm

vps

People also ask

What is the difference between KVM and OpenVZ?

First of all, the most basic difference between OpenVZ and KVM is that OpenVZ can ONLY host Linux operating systems, while KVM is more flexible and can host Linux, Windows, and custom OS options. Both a pro and a con of OpenVZ is the complete sharing of resources it allows.

What is KVM in VPS?

KVM VPS Hosting Kernel-based Virtual Machine (KVM) is an open-source virtualisation technology that is built into Linux. In essence, it allows you to turn your Linux into a hypervisor. As we mentioned earlier, a hypervisor allows a host machine to run multiple, isolated Virtual Machines.

Can I install KVM on VPS?

Running KVM (Kernel-based Virtual Machine) hypervisor on VPS servers. Some of current VPS servers are OpenStack KVM virtual machines with nested virtualization enable, so you are able to run a nested KVM virtual machine. Check whether VPS CPU supports Intel virtualization instruction set.

What is OpenVZ virtualization?

OpenVZ (Open Virtuozzo) is an operating-system-level virtualization technology for Linux. It allows a physical server to run multiple isolated operating system instances, called containers, virtual private servers (VPSs), or virtual environments (VEs). OpenVZ is similar to Solaris Containers and LXC.


KVM does not provide anywhere near the performance of OpenVZ (or Virtuozzo, its commercial equivalent). It's extremely important to note that KVM requires a running kernel inside the VPS, whereas OpenVZ runs containers using a shared kernel. This means that a 256MB KVM VPS does not actually have the same amount of memory available to userspace that OpenVZ does. OpenVZ is an extremely lightweight virtualization technology that easily outperforms full virtualization.

KVM does provide better isolation, although this isn't usually apparent to userspace in a container.

As for the original question, if I were shopping for a VPS, there are two factors to consider:

1) At the same price point, you'll get less for your money with KVM. 256MB of KVM is less than 256MB of OpenVZ because you have to run your own kernel so there's less for your actual applications. On the other hand, some hosters charge more for OpenVZ, so you'll need to do the math.

2) It's easier for hosting companies to overcommit OpenVZ systems, so bad hosting companies may put you on a system with too many containers, so be wary of this.


KVM has much better isolation than OpenVZ and in my experience KVM gets better performance as well. However I've heard some say they get better performance from OpenVZ. KVM has come a long way in the past year though, so I wouldn't be surprised if it's surpassed OpenVZ by now...

KVM also supports any operating system (in theory), whereas OpenVZ is limited to Linux only.

We're using KVM exclusively for our virtualization systems and have no interest in switching to anything else.


If your buying from a VPS provider, then KVM/Xen. OpenVZ/LXC suppliers can oversell their products.

If it's your own server then you can have a mix of OpenVZ/LXC and KVM on the same machine.


Choose KVM because OpenVZ is often cheaper to others hosts :)