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.

Cheers

Tim…

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.

C:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\virtualbox\driver\

C:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\virtualbox\

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.

6 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
    By
    # Driver for VirtualBox 6.1.x
    class Version_6_1 < Version_6_0

    – Remplace
    @logger = Log4r::Logger.new("vagrant::provider::virtualbox_6_0")
    By
    @logger = Log4r::Logger.new("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__)

  2. While I don’t use Vagrant, Minishift and IBM Cloud Private seem to as they have been failing on my Mac. It seems to be related to changes to the VBoxManage command-line arguments and networking. Downgrading VirtualBox to 6.0 resolved the startup issues, but VirtualBox seems to be unstable.
    The UI occasionally freezes (particularly when multi-selecting hosts to startup/shutdown). Some VM’s are not completely shutdown, and VBoxManage hangs when I use it to attempt to power off the guest and the only option is to kill the PID.
    I uninstalled 6.1 with AppCleaner but left all the configuration and other directories intact and only removed the .app file. Perhaps some configuration leftover from 6.1 is causing the issue.
    Have you experienced any issues since downgrading?

  3. I only downgraded for a short time, then upgraded again. 🙂 During that time I didn’t have a problem though.

    I’ve downgraded before by removing and reinstalling, and never had a problem those time.

    If you are having problems, file a bug with the team. https://www.virtualbox.org/wiki/Bugtracker

    They are usually pretty responsive, and maintenance releases come through pretty quickly.

    Cheers

    Tim…

Comments are closed.