-
Notifications
You must be signed in to change notification settings - Fork 189
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
Unable to configure network with Vagrant/VirtualBox #476
Comments
The final Vagrant file should be compatible with Ruby 2.7 and 3, so it should look like that: ```diff - c.vm.network(:forwarded_port, {:guest=>443, :host=>2443}) + c.vm.network(:forwarded_port, :guest=>443, :host=>2443) ``` Fixes test-kitchen#476
The final Vagrant file should be compatible with Ruby 2.7 and 3, so it should look like that: ```diff - c.vm.network(:forwarded_port, {:guest=>443, :host=>2443}) + c.vm.network(:forwarded_port, :guest=>443, :host=>2443) ``` Fixes test-kitchen#476
The final Vagrant file should be compatible with Ruby 2.7 and 3, so it should look like that: ```diff - c.vm.network(:forwarded_port, {:guest=>443, :host=>2443}) + c.vm.network(:forwarded_port, :guest=>443, :host=>2443) ``` Fixes test-kitchen#476
I ran into this issue as well; same errors. I downgraded from Vagrant 2.2.19 to 2.2.18 and the Vagrantfile generated by Test Kitchen (this driver) are properly read by Vagrant and the VM is created. |
this is to be marked as closed when we release an updated gem that has the fix, only PR is merged to main as of now |
The recently released 1.12.1 contains the fix for this issue. @vkarve-chef or @neclimdul, please close this issue. |
👻 Brief Description
This is a continuation of the problems from #459 I guess. With Ubuntu 22.04 vagrant gets install with Ruby 3 and I can't figure out a way to get the fixes in the related threads to work. The fix of "use ruby2.7" isn't really available best I can tell at least not without some sort of rbenv hacks.
Version
$ bundle exec kitchen --version
Test Kitchen version 3.2.2
$ vagrant --version
Vagrant 2.2.19
Environment
Ubuntu 22.04
Scenario
Get test kitchen to run with a configured network.
Steps to Reproduce
Start with ubuntu 22.04. Install vagrant and bundler.
.kitchen.yml
Gemfile
Expected Result
Test kitchen runs without errors.
Actual Result
➕ Additional context
I understand this is kinda a mess and there might not be a lot this project can do since this is a problem with vagrant but hoping there's something that can be done to support writing Vargant files that can run in Ruby 3.
The text was updated successfully, but these errors were encountered: