packer-plugin-xenserver icon indicating copy to clipboard operation
packer-plugin-xenserver copied to clipboard

Add ssh_no_proxy parameter (via @gaserre to address issue #84)

Open chqr opened this issue 8 years ago • 2 comments

Via @gaserre:

If ssh_no_proxy is specified, do not use a proxy (port forwarding) when executing the provision and shutdown steps. The reason to avoid proxying is that the current implementation does not handle ssh disconnects properly. The VNC boot command still uses the proxy.

chqr avatar Jul 05 '17 16:07 chqr

@chqr - can you elaborate on the ssh disconnect issues you're referring to? Perhaps we could fix that?

rdobson avatar Oct 18 '17 09:10 rdobson

@rdobson thanks for the reply! The discussion in #84 has the background on this PR.

The ssh disconnect issues were observed by @gaserre, and were his reason for creating this patch in his fork of packer-builder-xenserver.

My team needs this option for a different reason. In the XenServer cluster where we build our Packer vms, the vms use a different vlan than the Xen hosts. It is impossible to connect to the new vm's IP from the Xen host. It is possible, however, for the Packer process to directly connect to the vm. That's why we need to have a way to disable the ssh proxy.

        [vm vlan]
+--------+    +--------+
| packer | -> | new vm |
+--------+    +--------+
   |
===|===firewall=========
   v
+---------+
| xenhost |
+---------+
        [host vlan]

chqr avatar Oct 20 '17 19:10 chqr