I try to create a Vagrant Box (virtualbox) with Packer into Windows 11 OS. I use a script which run correctly in the past but I don't know why this time I have SSH issue that cause impossible building.
During the building packer I have this error message :
2022/05/30 10:23:51 packer.exe plugin: [DEBUG] TCP connection to SSH ip/port failed: dial tcp 127.0.0.1:2619: connectex: No connection could be made because the target machine actively refused it.
This TCP port number (2619) is random day by day. In this example I try to know what application use this port number with those commands :
netstat -an | grep '2619'
netstat -ab | grep '2619'
netstat -aon | grep '2619'
But nothing appear
I use the CurrPorts application to view all TCP/UDP ports in my system. And also I can't view anything about this port number 2619. But I can see warning on packer.exe line like this :
Actually, I use also Docker in my system (not in the same time). But I don't know how parameter port into this.
Why TCP local and remote port does not corresponding to the port number error into packer (2619) ? Why this port number not appear into netstat commands ?
I understand that connection is forbidden (but access ok) but I don't know why and how authorize this...
Here my config docker desktop :
How authorize or manage ports for using docker and packer in the same OS (not at the same time) ?
- No Docker Desktop launched
- disabled firewall Windows
- try with uninstalled docker desktop
I don't know if this message into linux build server dealing with this issue but :