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
When defining a net_bridge and using the WinRM communicator, some unexpected things happen.
The timeout that is used to wait for the VM to get an address from DHCP uses ssh_timeout. This causes the build to instantly fail for no obvious reason - one wouldn't expect it to look at that variable when using WinRM.
The code for the communicator port always selects 22 with no way to change it. This is not the default that WinRM listens on.
Manually changing the WinRM port to 22 in the Windows VM and setting ssh_timeout is a workaround for these issues and then everything works as expected.
Overview of the Issue
When defining a net_bridge and using the WinRM communicator, some unexpected things happen.
ssh_timeout
. This causes the build to instantly fail for no obvious reason - one wouldn't expect it to look at that variable when using WinRM.Manually changing the WinRM port to 22 in the Windows VM and setting
ssh_timeout
is a workaround for these issues and then everything works as expected.Plugin and Packer version
1.8.6
Simplified Packer Buildfile
Operating system and Environment details
Ubuntu 20.04 x86_64 installing any Windows VM.
The text was updated successfully, but these errors were encountered: