getting Winrm error while trying to build a Hyper-v image. sending some logs from githib actions on a successful attempt , followed by one from a failed attempt. Telnet to winrm is working fine and no changes done to any firewall etc
==> vmcx: Creating build directory...
==> vmcx: Creating switch 'packer-internal' if required...
==> vmcx: switch 'packer-internal' already exists. Will not delete on cleanup...
==> vmcx: Cloning virtual machine...
==> vmcx: Enabling Integration Service...
==> vmcx: Skipping mounting Integration Services Setup Disk...
==> vmcx: Mounting secondary DVD images...
==> vmcx: Configuring vlan...
==> vmcx: Determine Host IP for HyperV machine...
==> vmcx: Host IP for the HyperV machine: 172.16.1.1
==> vmcx: Attempting to connect with vmconnect...
==> vmcx: Starting the virtual machine...
==> vmcx: Waiting 2m0s for boot...
==> vmcx: Typing the boot command...
==> vmcx: Using winrm communicator to connect: 172.16.1.10
==> vmcx: Waiting for WinRM to become available...
vmcx: WinRM connected.
==> vmcx: Connected to WinRM!
Below is failed one
=> vmcx: Determine Host IP for HyperV machine...
==> vmcx: Host IP for the HyperV machine: 172.16.1.1
==> vmcx: Attempting to connect with vmconnect...
==> vmcx: Starting the virtual machine...
==> vmcx: Waiting 2m0s for boot...
==> vmcx: Typing the boot command...
==> vmcx: Waiting for WinRM to become available...
==> vmcx: Timeout waiting for WinRM.