Downgrading VirtualBox for using Vagrant

I’m working on a project in which I should use Vagrant for provisioning.
I installed Vagrant and VirtualBox as versions below, but they are not compatible so I have to downgrade VirtualBox. How can I do it?

Kernel Version: 6.10.13-3-MANJARO
Vagrant Version: Vagrant 2.4.1
Vagrant Error:

Vagrant has detected that you have a version of VirtualBox installed
that is not supported by this version of Vagrant. Please install one of
the supported versions listed below to use Vagrant:

4.0, 4.1, 4.2, 4.3, 5.0, 5.1, 5.2, 6.0, 6.1, 7.0

I used downgrade and manjaro-downgrade to do so, but they didn’t help.

At the time of writing, the following VirtualBox versions are current:

Branch Version
stable 7.1.2-0.1
testing 7.1.4-1
unstable 7.1.4-1

You should likely focus your efforts on updating Vagrant:

Branch Version
stable 2.4.1-2
testing 2.4.2-1
unstable 2.4.2-1

Vagrant 2.4.2-1 is currently in both unstable and testing.

You might for example:

  • Switch branches; see: Switching branches and see if the versioning then suits your needs.
  • Wait for Vagrant 2.4.2-1 to reach the stable branch.

I’d suggest monitoring the respective branch update announcements to be aware of any related issues/solutions.

Additionally, kernel 6.10 has reached EOL. Updating your kernel is generally recommended; or, use an LTS version. Kernel 6.12 (LTS) is released this month.

Good luck.

4 Likes

That dead easy answer is: You cannot.

The longer - much more difficult answer is: Perhaps you can - but due to the low level of interaction with the host system’s kernel, you are likely to create other much more difficult issues for yourself.

That said - you could try using one of the alternative (unsupported) builds hosted with AUR.

Example → Virtualbox 6.1

2 Likes