-
Notifications
You must be signed in to change notification settings - Fork 113
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
ssh connects to node, instead of qemu/lxc IP address #33
Comments
hi, can anybody explain, why ssh-config is set to host ":<22{containerID}>" instead of the IP address defined in public_network? |
hi, we found the reason, but we don't know, if it is a bug, or a feature. We located the rootcause So, for me it works now .. but I think, that is maybe a bug in combination with public_network and LXC. Maybe the problem is here: Link |
I'm also having this problem, even though the VM gets created, it won't SSH into it. Obviously, in my case, I'm having vagrant in an external network. My proxmox endpoint is resolves to a domain (using reverse proxy with Nginx), so it won't work with the IP. My host and the created box (both) ping to the Internet, but I'm not a network expert and I think this plugin will only connect from inside the server where proxmox is installed, not from the outside. But if you have a solution for this, please let me now. I think @devekko had this problem, but I don't know if he could solve it. |
hi gustavovalverde, usually, you connect to the node (VirtualBox) and the host forwards the packages to the created VM. that is the default setup for Vagrant. |
Ok, so I have come a long way trying to SSH my LXC containers from the outside using portforwarding. Now I've test that I can ssh my vagrant box manually doing ssh -i ~/.vagrant.d/insecure_private_key [email protected] -p 22100 -vv Just to be clear...in action.rb line 167 "b.use AdjustForwardedPortParams", this is not a bug. If you're using vagrant with proxmox, this is the natural behavior for a Proxmox installed in bare-metal and vagrant being outside the node (WAN). But the plugin is assuming that my bridge vmbr0 is my WAN interface, which is not because I'm with a VPS using Proxmox on Debian, and my WAN interface is eth0, with a local bridge for NATing. When debugging the plugging is actually trying to connect through vmbr0, here's the error:
How can I change this behavior so the plugin connects to my Node IP and not my Bridge IP? Maybe @tdcox or @GamerSource can help with this one? (based on your pull requests) 👍 |
hi,
the most parts works, but vagrant ssh. Vagrant tries to connect via the node, instead of the configured IP address with public_network.
[...]
config.vm.define :box, primary: true do |box|
box.vm.box = 'dummy'
box.vm.network :public_network, ip: '192.168.100.100', interface: 'eth0', bridge: 'vmbr0', gw: '192.168.100.1'
end
Vagrant tries to connect to 192.168.100.5 which is my node.
Any suggestions?
The text was updated successfully, but these errors were encountered: