-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vagrant 2.2.6 doesn't work with VirtualBox 6.1.0 #178
Comments
Thanks for sharing! |
Thank you |
Nice, thanks for the workaround!
|
Do you know when the next version that will work with VirtualBox will be out? Are we talking weeks / months? thanks |
@jonroberts24 Only the Vagrant team can answer that. The only indication I've seen is @briancain's comment on the issue in the Vagrant repository. |
@PaulNeumann When I perform the steps you mentioned, I get the following error message:
Any ideas how I might get this resolved without disabling the bidirectional clipboard? |
@ZiluckMichael I don't know; I'm sorry. I suggest asking in the hashicorp/vagrant repository. The thread for the VirtualBox 6.1.0 issue is at hashicorp/vagrant#11249. |
While waiting for a fix from Vagrant you can apply that change manually by using "VBoxManage" CLI:
The option "--clipboard" has changed to "--clipboard-mode" on 6.1 VirtualBox release. |
Wow. The first post of this issue saved my butt. When can we expect a stable update from the Vagrant team? |
@karlbunch consider my update above for the Vagrant release supporting VirtualBox 6.1.0 (related to the clipboard change) |
thank you |
Thank you 👍 Don't forget the newly created file needs to be readable by all (e.g. |
Thanks for this! |
I still get the original error even after I run this @scoter-oracle |
This is a great solution. Only have to be sudo before making changes. Thank you |
@PaulNeumann thank you very much for the very detailed instructions, both for Linux and Windows! Super easy to follow and understand +1 |
Thank you so much for this @PaulNeumann! Cheers! |
Thanks so much! Works great :) |
Thank you! Works like a charm! |
My solution was to visit https://www.virtualbox.org/wiki/Download_Old_Builds_6_0 get supported versions with the highest patch and not manually patch vendor libraries on my computer. While I would hope Vagrant will patch soon, so I can upgrade both; removing the at-present unsupported version, in favor of 6.0 (October 2019, it's not exactly old); seemed a responsible route. |
ooooooooooooo yeah. Now you are my hero. Thanks, buddy |
Thank you, it worked! |
Works for me! thanks! Any Fedora 31 users who might stumble across this: I'm on Fedora 3.1 which pushes kernel 5.4.x on So, that leaves you with two options:
|
I knew you guys would create a freaking brilliant fix for this, |
fix still works, thanks! |
The fix worked, thanks! For step 3, make sure you read the instructions carefully and put the linked contents into
|
Is there an easy way to patch the binary provided here: |
Thank you, it worked like a charm |
Here is a patch file to implement the workaround above: https://gist.github.com/jabenninghoff/a1680f5a7146370b461bb1c38fa8e14f |
I think you are better off remapping 6.1 to 6.0. I have several plugins that need to initialize as well and I think they fail due to the mapping of 6.1 to 6.1. macOS: /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/driver/meta.rb
|
Thank you! |
Vagrant 2.2.7 now released. Appears to resolve my problem with virtualbox 6.1.x not being recognised. |
Fixed with GH-11250
|
Vagrant 2.2.7 adds support for VirtualBox 6.1 - https://github.com/hashicorp/vagrant/blob/v2.2.7/CHANGELOG.md |
2.2.7 doesn't work for me
|
@timka this issue has to be reported to the vagrant-project. I already shared this issue with them but it seems that the same had been ignored. |
@scoter-oracle Ah, wrong issue. Sorry for that |
@timka I've talked with Vagrant guys, it seems that the "clipboard" mode is not an option managed by Vagrant but custom-code that you have into your box definition. So, you can evaluate to change the "--clipboard" to "--clipboard-mode" into your code. BTW, I've also talked with VBox engineering and we'll get back the support for also the older syntax. Thanks |
Still an issue on fedora 31 with the repo version they have. Workaround does indeed work, but in the end, too many wonky things going on...just ended up going with 2.2.7 and fixed everything |
/opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/driver/meta (LoadError) i am getting this error when run vagrant uo command in ubuntu 18.04 and i also give 644 permission to new created file |
@PaulNeumann |
Thanks for sharing. It worked for me! |
Hi, on debian the pathes are:
rest as decribed vagrant init centos/7
vagrant up --provider virtualbox I only needed to call vagrant up twice. Who knows why... works |
VirtualBox 6.1.0 has been released. Unfortunately, Vagrant 2.2.6 doesn't work with this new release. This isn't an issue with this repository, but it may affect people using these boxes. It should be fixed in the next release of Vagrant (see hashicorp/vagrant#11249), but here's how to work around the problem in the meantime.
Credits:
The workaround requires 3 changes.
First, in the file
/opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/plugin.rb
, add a line at the end of the Driver module for VirtualBox 6.1, as follows. (On Windows, the file location isC:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\virtualbox\plugin.rb
.)Second, in the file
/opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/driver/meta.rb
, add a line at the end of the driver_map section for VirtualBox 6.1, as follows. (On Windows, the file location isC:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\virtualbox\driver\meta.rb
.)Finally, create a new file called
version_6_1.rb
in the directory/opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/driver
. (On Windows, create this file in the folderC:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\virtualbox\driver
.) In this new file, paste the content from here.With these 3 changes, Vagrant 2.2.6 will work with VirtualBox 6.1.0. I hope this helps!
The text was updated successfully, but these errors were encountered: