Need advice about which tool to choose?Ask the StackShare community!

LXC

117
224
+ 1
19
VirtualBox

30.3K
24.9K
+ 1
1.1K
Add tool

LXC vs VirtualBox: What are the differences?

Key Differences between LXC and VirtualBox

Introduction:

LXC (Linux Containers) and VirtualBox are both used for virtualization, but they have several key differences. Here, we will discuss six specific differences between LXC and VirtualBox.

  1. Resource Utilization: LXC provides lightweight virtualization by running containers directly on the host's kernel, which leads to better resource utilization compared to VirtualBox's full virtualization approach. LXC containers share the host's resources and only require minimal overhead, resulting in faster performance and efficient use of system resources.

  2. Isolation: LXC containers are less isolated from the host system compared to VirtualBox virtual machines. LXC containers share the host's kernel and some resources, which allows for easier communication between containers and the host. VirtualBox virtual machines, on the other hand, are fully isolated from the host system, providing a higher level of security and stability.

  3. Operating System Support: LXC primarily focuses on Linux-based operating systems, as it relies on the host's kernel. It allows for seamless containerization of Linux applications and services. In contrast, VirtualBox supports a wide range of operating systems, including various versions of Windows, macOS, and Linux, making it more versatile for running different virtual machines.

  4. Snapshot and Cloning: VirtualBox excels in providing snapshot and cloning capabilities compared to LXC. VirtualBox allows users to take snapshots of a virtual machine's state at a particular point in time, making it easier to revert or branch off from a specific configuration. LXC, on the other hand, lacks built-in snapshot functionalities, making it more challenging to create and manage container snapshots.

  5. GUI Interface: VirtualBox comes with a graphical user interface (GUI) that simplifies the management of virtual machines. Users can easily create, configure, and monitor virtual machines through the intuitive interface. LXC, on the contrary, primarily relies on command-line tools for container management, requiring users to have a good understanding of the command line.

  6. Performance: LXC exhibits better performance compared to VirtualBox due to its lightweight nature. LXC containers have lower overhead and faster startup times, allowing for improved responsiveness and quicker application deployment. VirtualBox, being a full virtualization solution, incurs more overhead, resulting in slightly slower performance compared to LXC.

In Summary, LXC provides lightweight virtualization with better resource utilization and Linux-focused containerization, while VirtualBox offers more extensive operating system support, advanced snapshot capabilities, a GUI interface, and broader isolation from the host system.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of LXC
Pros of VirtualBox
  • 5
    Easy to use
  • 4
    Lightweight
  • 3
    Simple and powerful
  • 3
    Good security
  • 2
    LGPL
  • 1
    Reliable
  • 1
    Trusted
  • 358
    Free
  • 231
    Easy
  • 169
    Default for vagrant
  • 110
    Fast
  • 73
    Starts quickly
  • 45
    Open-source
  • 42
    Running in background
  • 41
    Simple, yet comprehensive
  • 27
    Default for boot2docker
  • 22
    Extensive customization
  • 3
    Free to use
  • 2
    Mouse integration
  • 2
    Easy tool
  • 2
    Cross-platform

Sign up to add or upvote prosMake informed product decisions

- No public GitHub repository available -

What is LXC?

LXC is a userspace interface for the Linux kernel containment features. Through a powerful API and simple tools, it lets Linux users easily create and manage system or application containers.

What is VirtualBox?

VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. Not only is VirtualBox an extremely feature rich, high performance product for enterprise customers, it is also the only professional solution that is freely available as Open Source Software under the terms of the GNU General Public License (GPL) version 2.

Need advice about which tool to choose?Ask the StackShare community!

What companies use LXC?
What companies use VirtualBox?
See which teams inside your own company are using LXC or VirtualBox.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with LXC?
What tools integrate with VirtualBox?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to LXC and VirtualBox?
Docker
The Docker Platform is the industry-leading container platform for continuous, high-velocity innovation, enabling organizations to seamlessly build and share any application — from legacy to what comes next — and securely run them anywhere
LXD
LXD isn't a rewrite of LXC, in fact it's building on top of LXC to provide a new, better user experience. Under the hood, LXD uses LXC through liblxc and its Go binding to create and manage the containers. It's basically an alternative to LXC's tools and distribution template system with the added features that come from being controllable over the network.
KVM
KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V).
OpenVZ
Virtuozzo leverages OpenVZ as its core of a virtualization solution offered by Virtuozzo company. Virtuozzo is optimized for hosters and offers hypervisor (VMs in addition to containers), distributed cloud storage, dedicated support, management tools, and easy installation.
Kubernetes
Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions.
See all alternatives