What should i choose? LXC vs OpenVZ

23,623

Solution 1

Personally I find LXC is in rapid development and documentation lags.

I personally use openvz on "production servers" and do not think LXC is yet mature enough to use in "production".

I suggest you look at proxmox

http://pve.proxmox.com/wiki/Main_Page

Offers a Debian host, web interface, and KVM and openvz. They are planning to use LXC once they consider it stable.

enter image description here

Solution 2

From what I can tell LXC has some advantages like being available on the Linux kernel (so you don't need a special kernel to use it). From the other side, OpenVZ supports live migration.

You will have to check the capabilities of each tool and see which ones are most important to you.

Edit:

You can find here a short review of the capabilities of each own.

Update for OpenVZ 4:

As of OpenVZ 4, you can run OpenVZ on a stock Linux 3.0 kernel. OpenVZ still benefits from it's own kernel; there are some OpenVZ kernel specific features.

Solution 3

This is a 1 year old question, but in view of changes in the playing field I would add my 2 cents.

I would recommend that for containerization people should look at Docker. It is built on top of LXC (and other tools) and provides extensive tooling for container building, maintenance, distribution, and upgrade. As well, there is a fairly large community around it.

One notable difference is that Docker promotes "single-process containers" as opposed to the traditional use of LXC which is more of a light-weight fully fledged virtual machine. This requires some adjustment in thinking, but it has its benefits.

Solution 4

I find it curious that there is all this sudden interest in LXC when the much more mature OpenVZ platform has been doing this very successfully for many years. LXC is actually a derivative of OpenVZ for the mainline kernel so it's not some new idea. Booting from different kernels has always been trival so I don't see why that would be an issue with using OpenVZ. I guess some people are not comfortable using a non-mainline kernel and maybe think newer things are sexier.

LXC will probably eventually replace OpenVZ....in 10 years. It's no where near ready yet. Not even for bleeding edge development unless you don't mind missing features, spotty documentation, lack of 'internet experience' (ie. built up knowledge base that is found by doing internet searches).

In another year or two when it is more feature complete and there is more of a knowledgebase it will probably be ready for some offline non-critical things. However, doing an internet search, people were saying that about it a year ago and it's still not there yet imho.

Share:
23,623

Related videos on Youtube

dhojgaard
Author by

dhojgaard

Love the free beer "Ubuntu", nah just kidding, actually love the freedom philosophy. "We had nothing, we give what we gained for free"

Updated on September 18, 2022

Comments

  • dhojgaard
    dhojgaard over 1 year

    As an alternative to Virtualizing several Ubuntu Servers im looking into the possibility of using containers. But I am not sure if I should go for OpenVZ or LXC. Can anyone recommend one of them, or maybe list pros and cons?

  • muru
    muru over 9 years
    Any updates on this?
  • Panther
    Panther over 8 years
    Proxmox now uses lxc
  • Wendy William
    Wendy William about 8 years
    If you see Proxmox forum then there are many bugs on LXC implementation here, Need more time to make LXC more stable. Also I read LXC security issue here: janoszen.com/2013/01/22/lxc-vs-openvz/#container-lockdown
  • Panther
    Panther about 8 years
    @WendyWilliam - IMHO those are long standing issues with LXC. IMHO documentation lags in LXC, the isolation is not as great as other options leading to security issues . IMHO LXC is not ready for production, I still prefer openvz or KVM.