-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Support for VirtualBox 5.2 #9090
Comments
My temporary solution can be found at #7573 Here is what I did and it works. Where: Changed file: plugin.rb Add the following after Line 59: Changed file: driver/meta.rb Add the following after Line 64: Copy file driver/version_5_1.rb to driver/version_5_2.rb and change two occurences of |
|
@thelfensdrfer that's right, github does change |
Although the issue specifically refers to Windows hosts, @jenhsun's temporary quick fix is platform-independent. |
To confirm that @jenhsun comment #9090 (comment) also works on Mac OS X 10.11.6 (15G1611) |
There might be a fix for the issue in this commit: 7d73af5 |
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 ( 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. |
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? |
@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. |
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 ***@***.***> 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:
Vagrant has detected that you have a version of VirtualBox installed 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
$ vagrant --version |
@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:
|
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 Jenshun's fix worked for me. |
@lihaibh Exactly the same way. Files are located at |
vagrant in homebrew is still broken (at least not picking up the latest push). @voodookoop 's fix works for me:
|
If you're on macOS with Vagrant installed from the website, the following command will patch your installation as recommended by @voodookoop:
Note there is are two carriage returns in that command, one after the |
@jaraco thanks - I needed to modify your command slightly on OSX 10.12.6
|
Same issue/solution with Fedora26. |
the solution from @voodookoop also works for me on mac os 10.13 (high sierra) |
Now vagrant 2.0.1 is |
@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 |
@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. |
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
Vagrant version 2.0.0
Host operating system
Windows 10 version 10.0.16299
VirtualBox 5.2
Guest operating system
Ubuntu 16.04
Debug output
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.
The text was updated successfully, but these errors were encountered: