Getting Started with Vagrant for Local Development: Lesson 9 of 20

Providers (vm.provider): Where the Box / OS Lives

Up Next

Networking ( How to see inside and access the Box

Autoplaying in 7 seconds!


Providers (vm.provider): Where the Box / OS Lives

What is a provider?

Provider simply means where the box (our virtual dev environment) is going to live. Default is VirtualBox but you can use others such as VMWare or Mac Parallels.

I'd advise you to stick to VirtualBox unless you know what you're doing.

Setting the Provider

Virtualbox is set by default, but let's just add this to the Vagrantfile for clarity of what is going on:

Table of Contents

    config.vm.provider "virtualbox" do |vb|

    You can see that you have full control over the provider, so if you wanted to do custom settings or anything like that. For example:

    config.vm.provider "virtualbox" do |vb|
        # Customize the amount of memory on the VM:
        vb.memory = 4096
        vb.cpus = 4

    For now, probably don't mess with this. We'll touch on this a little more later in the course.