From 31f18b6fe6b08f70f001a2f8ee52b295902e7c02 Mon Sep 17 00:00:00 2001 From: Benjamin Vanheuverzwijn Date: Fri, 4 Jul 2014 14:21:14 -0400 Subject: [PATCH] Fixed port forwarding when using remote libvirt (use a ProxyCommand) --- lib/vagrant-libvirt/action/forward_ports.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vagrant-libvirt/action/forward_ports.rb b/lib/vagrant-libvirt/action/forward_ports.rb index 67a55ec..3e52ed7 100644 --- a/lib/vagrant-libvirt/action/forward_ports.rb +++ b/lib/vagrant-libvirt/action/forward_ports.rb @@ -97,6 +97,8 @@ module VagrantPlugins "IdentityFile=#{pk}" end).map { |s| s.prepend('-o ') }.join(' ') + options += " -o ProxyCommand=\"#{ssh_info[:proxy_command]}\"" if machine.provider_config.connect_via_ssh + # TODO: instead of this, try and lock and get the stdin from spawn... ssh_cmd = '' if host_port <= 1024