You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This driver works by generating a single Vagrantfile for each instance in a
sandboxed directory. Since the Vagrantfile is written out on disk, Vagrant
needs absolutely no knowledge of Test Kitchen. So no Vagrant plugins are
required.
Requirements
Vagrant
Vagrant version of 2.4 or later.
Installation
The kitchen-vagrant driver ships as part of Chef Workstation. The easiest way to use this driver is to use it with Chef Workstation.
If you want to install the driver directly into a Ruby installation:
gem install kitchen-vagrant
If you're using Bundler, simply add it to your Gemfile:
If your VM's SSH daemon listens on a non-standard port (other than port 22), you can configure Test Kitchen to use the custom port:
driver:
name: vagrantssh:
guest_port: 444# SSH daemon listens on port 444 inside the VMnetwork:
- ["forwarded_port", {guest: 444, host: 2222, auto_correct: true}]
This configuration tells Vagrant that the SSH daemon inside the guest VM is listening on port 444 instead of the default port 22. Vagrant will handle the port forwarding appropriately.