Please note that the Vagrant issue tracker is reserved for bug reports and
enhancements. For general usage questions, please use the Vagrant mailing list:
https://groups.google.com/forum/#!forum/vagrant-up. Thank you!
Vagrant version 2.0.0
Windows 10 version 10.0.16299
VirtualBox 5.2
Ubuntu 16.04
When running vagrant up I get the following output
The provider 'virtualbox' that was requested to back the machine
'dev' is reporting that it isn't usable on this system. The
reason is shown below:
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
A Vagrant update may also be available that adds support for the version
you specified. Please check www.vagrantup.com/downloads.html to download
the latest version.
My temporary solution can be found at https://github.com/hashicorp/vagrant/issues/7573
Here is what I did and it works.
Where: /opt/vagrant/embedded/gems/gems/vagrant-2.0.0/plugins/providers/virtualbox
All changed need to be made with sudo.
Changed file: plugin.rb Add the following after Line 59:
autoload :Version_5_2, File.expand_path("../driver/version_5_2", __FILE__)
Changed file: driver/meta.rb Add the following after Line 64:
"5.2" => Version_5_2,
Copy file driver/version_5_1.rb to driver/version_5_2.rb and change two occurences of _5_0 to _5_1
and _5_1 to _5_2
autoload :Version_5_2, File.expand_path("../driver/version_5_2", FILE)
has to be
autoload :Version_5_2, File.expand_path("../driver/version_5_2", __FILE__)
I think?
@thelfensdrfer that's right, github does change __File__
to FILE automatically. Thanks and Updated.
Although the issue specifically refers to Windows hosts, @jenhsun's temporary quick fix is platform-independent.
Just used it on a Linux Mint 18.2 / Ubuntu 16.04 host and worked like a charm.
Thanks!
To confirm that @jenhsun comment https://github.com/hashicorp/vagrant/issues/9090#issuecomment-338084000 also works on Mac OS X 10.11.6 (15G1611)
There might be a fix for the issue in this commit: 7d73af5637de41f1e53b8f1ef2ea9baf76842dfb
Hey everyone: As I mentioned in a few other recent issues, support for VirtualBox 5.2 has already been merged into the master branch of Vagrant. We just haven't had a chance to roll out the next release. We're shooting for getting the next release out early next week. I'll go ahead and leave this issue open for now...Thanks!
@briancain - Thanks for letting us know, and good idea to leave this open. The quick fix above will help other people to work around the issue until next week.
In archlinux the AUR vagrant-git package already solves this. Build from source :)
fix works on archlinux thanks
Can confirm that @jenhsun solution works on Windows 7.
@jenhsun save my day ^^
Hello @briancain, what about adding an option to force the use of a specific version of the provider (
when Vagrant itself can't validate it), under the entire responsibility of the user (of course!)?
I'm not sure what would be the interface changes of VirtualBox in this new release that may affect Vagrant, but I guess that most of the times, most of the stuff should keep working (kind of)-- and if not, well, that's why the provider isn't validated.
This fix works also for MacOS Sierra 10.12.6.
Cheers.
Is it mandatory to hardcode the VirtualBox versions? After @jenhsun response, it feels like not, am I wrong?
@gutierri have you noticed any noticeable changes in performance since virtualbox5.2 + vagrant-git?
Is it mandatory to hardcode the VirtualBox versions?
@ElMatella, my thoughts exactly. I strongly suspect that there is a better way. Both the VirtualBox 5.1 and 5.2 drivers merely extend the 5.0 driver, only adding a logger with another hard-coded VirtualBox version in the log name.
Perhaps implementing a driver factory to create the appropriate driver class for the detected provider version would be a more maintainable solution. The addition of a provider version parameter in the driver class' constructor would also allow the logger name to be dynamically generated. Only those provider versions that actually require additional driver functionality would need a discrete class.
Thanks @jenhsun for the work around until commit 7d73af5 is pushed out.
is there already a plan when a new release with support for VirtualBox 5.2 will be released?
@biolypl The patch was created on September 8, and the tag for 2.0.0 created on September 7th. There will need to be a new release to suppose VirtualBox 5.2.
@nCrazed No, it's the same thing, at least for me.
On Mon, Oct 23, 2017 at 1:16 PM, Edvin Malinovskis
notifications@github.com wrote:
@gutierri have you noticed any noticeable changes in performance
since virtualbox5.2 + vagrant-git?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
Wasn't 2.0.0 already available a few days ago?
Was a fix released under the same version number?
I ask because we were going through compatibility hell with bento/ubuntu-16.04, VirtualBox 5.1.30, and Vagrant 2.0.0 yesterday, so I don't see how 2.0.0 could be a 3 hour old release.
The 2.0.0 on your download page is still broken:
-----> Starting Kitchen (v1.16.0)
-----> Creating
The provider 'virtualbox' that was requested to back the machine
'default' is reporting that it isn't usable on this system. The
reason is shown below:
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
A Vagrant update may also be available that adds support for the version
you specified. Please check www.vagrantup.com/downloads.html to download
the latest version.
------Exception-------
Class: Kitchen::ActionFailed
Message: 1 actions failed.
Failed to complete #create action: [Expected process to exit with [0], but received '1'
---- Begin output of vagrant up --no-provision --provider virtualbox ----
STDOUT:
STDERR: The provider 'virtualbox' that was requested to back the machine
'default' is reporting that it isn't usable on this system. The
reason is shown below:
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
A Vagrant update may also be available that adds support for the version
you specified. Please check www.vagrantup.com/downloads.html to download
the latest version.
---- End output of vagrant up --no-provision --provider virtualbox ----
Ran vagrant up --no-provision --provider virtualbox returned 1] on default-ubuntu-1604
Please see .kitchen/logs/kitchen.log for more details
Also try runningkitchen diagnose --all
for configuration
$ vagrant --version
Vagrant 2.0.0
@sailorfred - You are likely getting that message because you have VirtualBox 5.2 installed on your system. I recommend downgrading to the latest VirtualBox 5.1.x, and you should be able to get Vagrant working again.
There's a few more tasks for us to finish, and the next release that includes support for VirtualBox 5.2 should be out soon! Thanks for your patience everyone.
It was the @biolypl response that confused me:
@glookie1 It's ready, update your vagrant to 2.0.0 :+1:
It's never good when someone suggest downgrading to use another product. But thanks for the work!
Just adding my $0.02: on macOS Sierra, using Virtualbox 5.2.0 and Vagrant 2.0.0, and the solution offered by @jenhsun worked for me.
Mac OS X 10.12.6
VirtualBox 5.2.0
Vagrant 2.0.0
Jenshun's fix worked for me.
How to fix on windows 10?
@ronanmccoy That's great! Thanks for pointing that out. ⭐️
@briancain To bad that you say previous week "We're shooting for getting the next release out early next week." but still no fix. Is there some information when the next release is available?
For configuration: it is enough to add "5.2" => Version_5_1,
to meta.rb after row 64. No other changes required to make it work.
@voodookoop solution worked perfectly for me on macOS Sierra.
@nvdbeek I'm getting some final updates wrapped up within the installers. We were indeed shooting for a release early this week but have had some other things to deal with as well. Once the installers work is complete the releases will be ready.
Cheers!
@lihaibh Exactly the same way. Files are located at C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-2.0.0\plugins\providers\virtualbox
.
vagrant in homebrew is still broken (at least not picking up the latest push). @voodookoop 's fix works for me:
For configuration: it is enough to add "5.2" => Version_5_1, to meta.rb after row 64. No other changes required to make it work.
If you're on macOS with Vagrant installed from the website, the following command will patch your installation as recommended by @voodookoop:
sudo sed -i '/"5.1" => Version_5_1,/a\
\ "5.2" => Version_5_1,
' /opt/vagrant/embedded/gems/gems/vagrant-2.0.0/plugins/providers/virtualbox/driver/meta.rb
Note there is are two carriage returns in that command, one after the /a\
and another after _5_1,
, but if you copy/paste that command to terminal, it should do the trick.
@jaraco thanks - I needed to modify your command slightly on OSX 10.12.6
sudo sed -i '' -e '/"5.1" => Version_5_1,/a\
\ "5.2" => Version_5_1,
' /opt/vagrant/embedded/gems/gems/vagrant-2.0.0/plugins/providers/virtualbox/driver/meta.rb
Same issue/solution with Fedora26.
Thanks guys, good work.
the solution from @voodookoop also works for me on mac os 10.13 (high sierra)
Now vagrant 2.0.1 is out tagged. Those who want to solve this can upgrade vagrant. Also can this issue be closed?
@joelhandwell Not on the download page yet - is there some other place?
@e-kolpakov sorry not yet as binary or installer. Only I found 2.0.1 tag hopefully it's on the way to download page.
And it's out now as binary installer at download page.
update vagrant success
Indeed works with 2.0.1, needs to update documentation at https://www.vagrantup.com/docs/virtualbox/ to mention it.
@pmoranga - Good catch, I'm opening a pull request now to fix that. Thanks!
Also closing this, as it has been fixed and released!
I am getting the issue with all version which I had used
if some could help me with that.
VMware tool is much effective than this Vagrant in terms of compatibility.
I thought its quite good using docker kind of process to establish machine (BOX)
but it sucks 👎
@azzzdiggr If you are receiving an error about VirtualBox 5.2 not being supported than you likely need to uninstall Vagrant and install it again using an official release package from the downloads page: https://www.vagrantup.com/downloads.html
Otherwise, please feel free to create a new issue and provide the requested information in the template.
Cheers!
@jenhsun Thank you so much, it really helped me
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
My temporary solution can be found at https://github.com/hashicorp/vagrant/issues/7573
Here is what I did and it works.
Where:
/opt/vagrant/embedded/gems/gems/vagrant-2.0.0/plugins/providers/virtualbox
All changed need to be made with sudo.
Changed file: plugin.rb Add the following after Line 59:
autoload :Version_5_2, File.expand_path("../driver/version_5_2", __FILE__)
Changed file: driver/meta.rb Add the following after Line 64:
"5.2" => Version_5_2,
Copy file driver/version_5_1.rb to driver/version_5_2.rb and change two occurences of
_5_0 to _5_1
and_5_1 to _5_2