VirtualBox 6.1 : No compatible version of Vagrant yet! (or is there?)

VirtualBox 6.1 was released on the 11th of December and I totally missed it.

The downloads and changelog are in the usual places.

I spotted it this morning, downloaded it and installed in straight away. I had no installation dramas on Windows 10, macoS Catalina and Oracle Linux 7 hosts.

The problem *for me* was the current version of Vagrant (2.2.6) doesn’t support VirtualBox 6.1 yet. I can’t live without Vagrant these days, so I installed VirtualBOx 6.0.14 again and normal life resumed. See Update.

I’m sure there will be a new release of Vagrant soon that supports VirtualBox 6.1, but for now if you use Vagrant, don’t upgrade to VirtualBox 6.1 yet. I’m sure you won’t have to wait long… See Update.



Update 1 : A couple of people Peter Wahl and Andrea Cremonesi pointed me at this post by Simon Coter, which contains config changes to allow Vagrant 2.2.6 to run with VirtualBox 6.1.

Update 2 : I’ve followed Simon’s post and it worked fine. If you are using Windows 10 as the host and have done a default installation of Vagrant, the files he’s discussing are in these directories.



Update 3 : I updated by work PC also. It required a couple of reboots to get things working. I think it may be something to do with the way we do security here. It’s working fine now.

Author: Tim...

DBA, Developer, Author, Trainer.

4 thoughts on “VirtualBox 6.1 : No compatible version of Vagrant yet! (or is there?)”

  1. # Patch Vagrant 2.2.6 to work with VirtualBox 6.1 in 3 steps :

    1) D:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\virtualbox\driver\
    Edit the file meta.rb and add to the map driver_map :
    “6.1” => Version_6_1,

    2) D:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\virtualbox\driver
    Copy the file version_6_0.rb as version_6_1.rb
    Edit the new file version_6_1.rb
    – Remplace
    # Driver for VirtualBox 6.0.x
    class Version_6_0 < Version_5_0
    # Driver for VirtualBox 6.1.x
    class Version_6_1 < Version_6_0

    – Remplace
    @logger ="vagrant::provider::virtualbox_6_0")
    @logger ="vagrant::provider::virtualbox_6_1")

    3) D:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\virtualbox
    Edit the file Plugin.rb and add to the module Driver :
    autoload :Version_6_1, File.expand_path("../driver/version_6_1", __FILE__)

Leave a Reply

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.