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

Vagrant

8.5K
6.3K
+ 1
1.5K
VirtualBox

23.5K
18.6K
+ 1
1.1K
Add tool

Vagrant vs VirtualBox: What are the differences?

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

What is VirtualBox? Run nearly any operating system on a single machine and to freely switch between OS instances running simultaneously. 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.

Vagrant can be classified as a tool in the "Virtual Machine Management" category, while VirtualBox is grouped under "Virtualization Platform".

Some of the features offered by Vagrant are:

  • Boxes
  • Up And SSH
  • Synced Folders

On the other hand, VirtualBox provides the following key features:

  • Portability
  • No hardware virtualization required
  • Guest Additions: shared folders, seamless windows, 3D virtualization

"Development environments", "Simple bootstraping" and "Free" are the key factors why developers consider Vagrant; whereas "Free", "Easy" and "Default for vagrant" are the primary reasons why VirtualBox is favored.

Vagrant is an open source tool with 18.6K GitHub stars and 3.74K GitHub forks. Here's a link to Vagrant's open source repository on GitHub.

According to the StackShare community, VirtualBox has a broader approval, being mentioned in 721 company stacks & 944 developers stacks; compared to Vagrant, which is listed in 802 company stacks and 475 developer stacks.

Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Vagrant
Pros of VirtualBox
  • 352
    Development environments
  • 291
    Simple bootstraping
  • 238
    Free
  • 139
    Boxes
  • 132
    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
  • 2
    Quick way to get running
  • 2
    Just works
  • 1
    What is vagrant?
  • 1
    Container Friendly
  • 1
    DRY - "Do Not Repeat Yourself"
  • 1
    Good documentation
  • 359
    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
  • 21
    Extensive customization
  • 2
    Free to use
  • 1
    Cross-platform
  • 1
    Mouse integration
  • 1
    Easy tool

Sign up to add or upvote prosMake informed product decisions

Cons of Vagrant
Cons of VirtualBox
  • 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
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions

    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.

    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 Vagrant?
    What companies use VirtualBox?
    See which teams inside your own company are using Vagrant or VirtualBox.
    Sign up for Private StackShareLearn More

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

    What tools integrate with Vagrant?
    What tools integrate with VirtualBox?

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

    What are some alternatives to Vagrant and VirtualBox?
    Ansible
    Ansible is an IT automation tool. It can configure systems, deploy software, and orchestrate more advanced IT tasks such as continuous deployments or zero downtime rolling updates. Ansible’s goals are foremost those of simplicity and maximum ease of use.
    Packer
    Packer automates the creation of any type of machine image. It embraces modern configuration management by encouraging you to use automated scripts to install and configure the software within your Packer-made images.
    Terraform
    With Terraform, you describe your complete infrastructure as code, even as it spans multiple service providers. Your servers may come from AWS, your DNS may come from CloudFlare, and your database may come from Heroku. Terraform will build all these resources across all these providers in parallel.
    OpenStack
    OpenStack is a cloud operating system that controls large pools of compute, storage, and networking resources throughout a datacenter, all managed through a dashboard that gives administrators control while empowering their users to provision resources through a web interface.
    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
    See all alternatives