How to Install, Create and Manage LXC (Linux Containers) in RHEL/CentOS 7

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

20 Responses

  1. Srini says:

    Very nice article, After installation I found, lxc-ls command was not found. I find out that, lxc-ls is part of the lxc-extra package. So I have installed it : yum install lxc-extra


  2. gianrico says:

    A very well written article. I don’t understand Hickmen criticism.

  3. Yash says:

    How do we install LXD?

    • Matei Cezar says:

      This topic covers LXC containers, so, installing LXD should be the subject for a different topic. Still, to answer your question, the answer is:
      sudo apt-get install lxd

      But, again, this in not enough to cover a LXD topic.

  4. Dick Hickmen says:

    A little proof reading would be nice. Either English is not your first language or you simply don’t care enough in order to conjugate a proper sentence. For example “allowing you to run multiple isolated distributions the same time.” should be “allowing you to run multiple isolated distributions at the same time.” And again “The difference between LXC and KVM virtualization is that LXC doesn’t emulates hardware” should be “The difference between LXC and KVM virtualization is that LXC doesn’t emulate hardware”. Pay attention or don’t torture people with having the read your broken speech more than once to figure out what your trying to say.

    • Ravi Saive says:


      Instead of finding those silly mistakes in the article, why not you appreciate the hard work put by the author? If you don’t appreciate someone’s work, then you don’t have any rights to insult someone..

    • Jeff D says:

      @Dick: “…figure out what your trying to say.” should be “…figure out what you’re trying to say.” I guess we all have problems with the English language!!

  5. Cristian Scurtescu says:

    Salut Matei,

    Could I ask you something in private, regarding a collaboration?
    If yes, how can I contact you?

  6. Marin Todorov says:

    I think it would be nice to tell people how to configure static IP addresses for their containers.

  7. dave says:

    whats about backing up vm ‘s , is there any backup solution in build or we must use third party software.

  8. Elio P. says:

    it maybe a good idea to include those detail on this guide about how to setup the network and such.

  9. Matei Cezar says:

    It does not use any network by default. You must manually define the network.

  10. What network topology does the containers use by default? (NAT, Bridge,…)

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.