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

LXD

97
175
+ 1
68
Vagrant

9.6K
7K
+ 1
1.5K
Add tool

LXD vs Vagrant: What are the differences?

LXD: Daemon based on liblxc offering a REST API to manage containers. 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; Vagrant: A tool for building and distributing development environments. Vagrant provides the framework and configuration format to create and manage complete portable development environments. These development environments can live on your computer or in the cloud, and are portable between Windows, Mac OS X, and Linux.

LXD and Vagrant are primarily classified as "Virtual Machine Platforms & Containers" and "Virtual Machine Management" tools respectively.

"More simple" is the primary reason why developers consider LXD over the competitors, whereas "Development environments" was stated as the key factor in picking Vagrant.

LXD and Vagrant are both open source tools. Vagrant with 18.6K GitHub stars and 3.74K forks on GitHub appears to be more popular than LXD with 2.25K GitHub stars and 526 GitHub forks.

Decisions about LXD and Vagrant
Florian Sager
IT DevOp at Agitos GmbH · | 2 upvotes · 290.6K views
Chose
LXDLXD
over
DockerDocker

lxd/lxc and Docker aren't congruent so this comparison needs a more detailed look; but in short I can say: the lxd-integrated administration of storage including zfs with its snapshot capabilities as well as the system container (multi-process) approach of lxc vs. the limited single-process container approach of Docker is the main reason I chose lxd over Docker.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of LXD
Pros of Vagrant
  • 10
    More simple
  • 8
    Open Source
  • 8
    API
  • 8
    Best
  • 7
    Cluster
  • 5
    Multiprocess isolation (not single)
  • 5
    Fast
  • 5
    I like the goal of the LXD and found it to work great
  • 4
    Full OS isolation
  • 3
    Container
  • 3
    More stateful than docker
  • 2
    Systemctl compatibility
  • 352
    Development environments
  • 290
    Simple bootstraping
  • 238
    Free
  • 139
    Boxes
  • 130
    Provisioning
  • 84
    Portable
  • 81
    Synced folders
  • 69
    Reproducible
  • 51
    Ssh
  • 44
    Very flexible
  • 5
    Works well, can be replicated easily with other devs
  • 5
    Easy-to-share, easy-to-version dev configuration
  • 3
    Great
  • 3
    Just works
  • 2
    Quick way to get running
  • 1
    DRY - "Do Not Repeat Yourself"
  • 1
    What is vagrant?
  • 1
    Good documentation
  • 1
    Container Friendly

Sign up to add or upvote prosMake informed product decisions

Cons of LXD
Cons of Vagrant
    Be the first to leave a con
    • 2
      Can become v complex w prod. provisioner (Salt, etc.)
    • 2
      Multiple VMs quickly eat up disk space
    • 1
      Development environment that kills your battery

    Sign up to add or upvote consMake informed product decisions

    - No public GitHub repository available -

    What is 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.

    What is Vagrant?

    Vagrant provides the framework and configuration format to create and manage complete portable development environments. These development environments can live on your computer or in the cloud, and are portable between Windows, Mac OS X, and Linux.

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

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

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

    What tools integrate with LXD?
    What tools integrate with Vagrant?

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

    What are some alternatives to LXD and Vagrant?
    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
    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.
    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).
    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.
    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.
    See all alternatives