Repository navigation
Vagrant 2.2.6 doesn't work with VirtualBox 6.1.0 #178
Description
Activity
Thanks for sharing!
Reacted by Tobias, Daniel Linder, Nikita Nyatin and Ravi GehlotThank you
Reacted by Rick Swords, Daniel Linder, Nikita Nyatin and Ravi GehlotNice, thanks for the workaround!
For Arch linux the paths where a bit different though:/opt/vagrant/embedded/gems/gems/vagrant-2.2.6/plugins/providers/virtualbox/plugin.rb
/opt/vagrant/embedded/gems/gems/vagrant-2.2.6/plugins/providers/virtualbox/driver/meta.rbReacted by Pawel Ginalski, Paul Neumann, kmille, Emanuel Joïvo, Joydeep Roychowdhury, Daniel Linder and Mauricio YepezDo 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:
A customization command failed: ["modifyvm", :id, "--clipboard", "bidirectional"] The following error was experienced: #<Vagrant::Errors::VBoxManageError: There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["modifyvm", "ce8a3576-201c-11ea-978f-2e728ce88125", "--clipboard", "bidirectional"]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:
vboxmanage modifyvm <uuid/name> --clipboard-mode bidirectionalThe option "--clipboard" has changed to "--clipboard-mode" on 6.1 VirtualBox release.
Reacted by Paul Neumann, Michael Ziluck, it-gro and Gerald VenzlReacted by Michael ZiluckWow. The first post of this issue saved my butt.
When can we expect a stable update from the Vagrant team?
Reacted by WhileLoop, Mike Schinkel and Gerald Venzl@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.
644), in case you have a differentumaskwhen runningsudo.Reacted by Steven Christensen and shitnoThanks for this!
In fedora 31, the paths are:
/usr/share/vagrant/gems/gems/vagrant-2.2.6/plugins/providers/virtualbox/plugin.rb
/usr/share/vagrant/gems/gems/vagrant-2.2.6/plugins/providers/virtualbox/driver/meta.rbReacted by Soshi Homma, Anton Belonovich, Matthias Vandermaesen, Laurent Indermühle, Marco Aurélio , Michael Pitzer, Daniel Bedarf, Mark Clarkson, Martin Vlcek and Haben Amare16 remaining items
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
Windows: C:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\virtualbox\driver\meta.rb"6.1" => Version_6_0,Reacted by Frank and bigliang-helloThank 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 now released. Appears to resolve my problem with virtualbox 6.1.x not being recognised.
Reacted by trevrobwhiteVagrant 2.2.7 adds support for VirtualBox 6.1 - https://github.com/hashicorp/vagrant/blob/v2.2.7/CHANGELOG.md
Closing the issue.Reacted by trevrobwhite, Andrew Paglusch and Simon Bengtsson2.2.7 doesn't work for me
$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'kane_project/windows-10' version '1903' is up to date... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 3389 (guest) => 3389 (host) (adapter 1) default: 5985 (guest) => 55985 (host) (adapter 1) default: 5986 (guest) => 55986 (host) (adapter 1) default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Running 'pre-boot' VM customizations... A customization command failed: ["modifyvm", :id, "--clipboard", "bidirectional"] The following error was experienced: #<Vagrant::Errors::VBoxManageError: There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["modifyvm", "ce2ae2de-d509-46e4-82ac-11df167cf2d5", "--clipboard", "bidirectional"] Stderr: Oracle VM VirtualBox Command Line Management Interface Version 6.1.2 (C) 2005-2020 Oracle Corporation All rights reserved. Usage: # ... VBoxManage: error: Unknown option: --clipboard > Please fix this customization and try again. $ vagrant -v Vagrant 2.2.7@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
Reacted by TimurStill 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
Thank you. The provided solution was greatThanks for sharing. It worked for me!
Hi,
on debian the pathes are:
/usr/share/rubygems-integration/all/gems/vagrant-2.2.3/plugins/providers/virtualbox/driver/meta.rb /usr/share/rubygems-integration/all/gems/vagrant-2.2.3/plugins/providers/virtualbox/driver/version_6_1.rbrest 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.rbin 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!