I've being playing around with Vagrant for awhile and everything has been as expected. It just work. But now when I tried to create few Linux and few Windows nodes on same file, the problems started. Normally it's with provisioning, either Linux is tried to be contacted with winrm or winbox if telling me that apt is not something PowerShell can do. These boxes are within their own
- Vagrant.configure("2") do |config|
- Vagrant.configure("2") do |windows|
Etc.
Any ideas how to tackle this?
It seems you're confusing Vagrant configuration (with version) and [Vagrant VM definition](https://www.vagrantup.com/docs/multi-machine#defining-multiple-machines]
you will have 1 configuration for your Vagrantfile and multiple VM definition.
here is a sample I have been using in the past of 4 VM (3 are centos based and 1 Windows VM)
Linux provisioning is done through shell script or puppet and windows provisioning is done with PowerShell script or bat file. Pay attention how VM are defined and how we use variable name in their corresponding block.
As mentioned in the Vagrant doc