Skip to content
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

VirtualBox 5.0 not supported - Add Greater Than or Ignore Option #5572

Closed
RickDavis404 opened this issue Apr 9, 2015 · 26 comments
Closed

VirtualBox 5.0 not supported - Add Greater Than or Ignore Option #5572

RickDavis404 opened this issue Apr 9, 2015 · 26 comments

Comments

@RickDavis404
Copy link

I'm no longer able to use vagrant after upgrading to the new VirtualBox 5.0 Beta. Please change the version checking mechanism to a >= check or add an option to ignore the version checking all together.

C:>vagrant -v
Vagrant 1.7.2

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe -v
5.0.0_BETA1r99371

C:>vagrant up trusty64
The provider 'virtualbox' that was requested to back the machine
'trusty64' 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. Please install one of the supported versions
listed below to use Vagrant:

4.0, 4.1, 4.2, 4.3

@michaeldhopkins
Copy link

I'm very new to the Vagrant codebase, but it seems like each version needs to have its own drivers, /plugins/providers/virtualbox/driver/version_5_0.rb would need to be made. The 4.x driver files aren't all identical. Does anyone know what changes would need to be made for 5?

Alternately, what would be involved in switching to one driver file with feature detection?

@PhilipeLouchtch
Copy link

I too wanted to try out VirtualBox 5 beta's with vagrant and I managed to get it running. Here's what I did:

Step 1: Copy the version_4_3.rb file in %vagrant_install_dir%\embedded\gems\gems\vagrant-1.7.2\plugins\providers\virtualbox\driver to version_5_0.rb and edit the class name of the copied file to be "version_5_0"

Step 2: Modify the "meta.rb" file in the virtualbox\driver folder by adding ,5.0" => Version_5_0 to the driver_map hashmap (line 48).

Step 3: Modify the plugin.rb file in the providers\virtualbox directory (up one directory from where we were) and add the following line under line 47: autoload :Version_5_0, File.expand_path("../driver/version_5_0", __FILE__)

You're done.

@michaeldhopkins
Copy link

Thanks, Philipe. Do you mind if I make that a PR or would you rather?

@PhilipeLouchtch
Copy link

I'm unfamiliar with that abbreviation ('PR') in this context, but if you mean some kind of a 'pinned post', 'announcement', 'wiki entry' or whatever; go ahead.

I also wonder if it might have been even easier to simply skip Step 1 and 3 whilst adding the 5.0 mapping to the Version_4_3. So the part of Step 2 would become ,5.0 => Version_4_3. This would probably be the easiest quick-and-dirty way of test driving VirtualBox 5.0 with Vagrant.

@michaeldhopkins
Copy link

Sorry, I meant a pull request. That would be faster for personal use, but I am guessing since they'll need Version_5_0 eventually for whatever quirks come up, your first method is the best way.

@PhilipeLouchtch
Copy link

Sure, go ahead!

@sodabrew
Copy link

Works for me - @michaeldhopkins will you open a PR on this?

@sethvargo
Copy link
Contributor

#5647

@virgofx
Copy link

virgofx commented Jun 4, 2015

👍

@morrisonbrett
Copy link

@PhilipeLouchtch this work around worked for me (Windows 10). Thx. Now waiting for 1.7.3...

@cfarrell81
Copy link

@PhilipeLouchtch worked for me (windows 7), cheers.

@rickw
Copy link

rickw commented Jul 10, 2015

VirtualBox 5 is no longer beta 5.0.0r101573

I can't find a branch with any VirtBox 5.0 code so far is there one?

Thanks...

@sethvargo
Copy link
Contributor

VirtualBox 5 support is merged to master and will be released either today or tomorrow. Thanks!

@rickw
Copy link

rickw commented Jul 10, 2015

thanks!!! 👍

@seansch
Copy link

seansch commented Jul 10, 2015

What a coincidence, I am in the process of installing a vagrant box on VirtualBox5 currently and just ran into this issue, thanks.

@jverdeyen
Copy link

Any update about the next release? Thx!

Sorry, didn't update brew cask. Should be ok in 1.7.3?

@PhilipeLouchtch
Copy link

@jverdeyen Don't want to sound condescending but if you really need VirtualBox 5.0 support right now, either do the workaround discussed here or pull the ruby scripts from the development branch.

Questions regarding the release schedule of vagrant should be placed somewhere else.

@jverdeyen
Copy link

Ok, thanks. I installed the latest Vagrant and Virtualbox 5.0 successful from hombrew (cask).

@mitchellh
Copy link
Contributor

We released vagrant 1.7.3 with virtual box 5 support a couple days ago.

Sent from my iPhone

On Jul 12, 2015, at 4:11 AM, Joeri Verdeyen notifications@github.com wrote:

Ok, thanks. I installed the latest Vagrant and Virtualbox 5.0 successful from hombrew (cask).


Reply to this email directly or view it on GitHub.

@BrainBuzzer
Copy link

Thanks Man

@marcofranssen
Copy link

Still not working for my boxes which worked before...

==> default: Mounting shared folders...
    default: /vagrant => C:/Repositories/dev-vagrant-box
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

chown `id -u vagrant`:`id -g vagrant` /vagrant

Stdout from the command:



Stderr from the command:

stdin: is not a tty
chown: changing ownership of `/vagrant': Not a directory

Any ideas? I'm on Windows 8.1 and my Vagrant box is a Debian Wheezy box. Installed the latest VirtualBox 5.0 release.... Vagrant is at 1.7.3.

@sethvargo
Copy link
Contributor

Hi @marcellodesales - you are experiencing a different issue (#5933), which has been fixed in Vagrant 1.7.4 Sorry about the regression.

@jcicero518
Copy link

I can confirm that updating Vagrant takes care of VirtualBox 5.x, at least in my case. I was running Vagrant 1.7.2, and Virtual Box is 5.0.26.

Now I'm on Vagrant 1.8.5 and no more:

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

4.0, 4.1, 4.2, 4.3

@wayne666
Copy link

wayne666 commented Sep 6, 2016

Thanks, It's good for me

@ananthaponnusamy
Copy link

Thanks, The same fix is working for 5.1 too..

@ghost
Copy link

ghost commented Apr 3, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests