Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config flag to disable port forwarding when executing ssh commands on vm #84

Open
chqr opened this issue Jun 27, 2017 · 4 comments
Open

Comments

@chqr
Copy link

chqr commented Jun 27, 2017

We have a slightly quirky network setup, where vms are not typically in the same network as our Xen servers. This means that it is impossible to ssh into a new vm from a Xen server dom0.

Would you be open to adding a config flag to skip setting up port forwarding during the ssh step and instead contact the guest directly? If so, I will take a whack at a PR (no Go experience, unfortunately, so it may be a while)

@gaserre
Copy link

gaserre commented Jun 28, 2017

You may be in luck. I do that for our setup. I'll see if I can push a branch up to my github fork tonight, if it's not there already.

@chqr
Copy link
Author

chqr commented Jun 28, 2017

@gaserre that would be awesome, thanks!

@gaserre
Copy link

gaserre commented Jun 28, 2017

@chqr Please give https://github.com/gaserre/packer/tree/gserre_ssh_no_proxy a try.
Note that this is not a xenserver plugin, but a packer fork with xenserver integrated as a builder. I have tested xenserver-iso, but not xenserver-xva.
For background, see #80

@chqr
Copy link
Author

chqr commented Jun 28, 2017

@gaserre thanks again, this is definitely working for us! (Had to govendor fetch github.com/xenserver/go-xenserver-client in order to get the build working, in case anyone else wants to build it)

Are you planning to submit the no proxy feature as a PR to this repo, at least until #80 is resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants