Consul multivm with containers setup

Hi,

I have a problem of enabling consul communication. But maybe before I show the error log I describe the setup.
2 virtual machines (virtualbox) [A => 192.168.100.10, B => 192.168.100.11]
VM_A contains consul-server in lxd container with IP 10.29.17.5
VM_B contains consul-client

Running consul members shows both nodes as alive, but journalctl on VM_B shows me an error:

“consul: “Coordinate.Update” RPC failed to server 10.29.17.5:8300: rpc error getting client: failed to get conn: dial tcp ->10.29.17.5:8300: i/o timeout”

Before I post the configuration can someone show me the simplest possible consul config?
I did also try using iptables redirects, but I would like to understand how to properly setup consul in such multi-vm setup.

I have found a solution:

On VM_A I have exposed the port with iptables.
On VM_B with iptables I am redirecting every outgoing packet to VM_A (IP => 192.168.100.10), and am overwriting the source ip of the packet to the VM_B (IP => 192.168.100.11)