{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/767","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/767/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/767/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/767/events","html_url":"https://github.com/hashicorp/consul/issues/767","id":60141506,"number":767,"title":"Failed to start TCP listener with a VM in a consul cluster","user":{"login":"domrod","id":5418910,"avatar_url":"https://avatars.githubusercontent.com/u/5418910?v=3","gravatar_id":"","url":"https://api.github.com/users/domrod","html_url":"https://github.com/domrod","followers_url":"https://api.github.com/users/domrod/followers","following_url":"https://api.github.com/users/domrod/following{/other_user}","gists_url":"https://api.github.com/users/domrod/gists{/gist_id}","starred_url":"https://api.github.com/users/domrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domrod/subscriptions","organizations_url":"https://api.github.com/users/domrod/orgs","repos_url":"https://api.github.com/users/domrod/repos","events_url":"https://api.github.com/users/domrod/events{/privacy}","received_events_url":"https://api.github.com/users/domrod/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-06T18:45:14Z","updated_at":"2015-03-06T20:08:10Z","closed_at":"2015-03-06T20:08:10Z","body":"Hi,\r\n\r\nI try to use consul in a 2 nodes configuration (2 physical servers) plus 1 VM hosted on one of these hosts.\r\n\r\nThe VM has a local IP (say 10.10.20.30) and a public nated IP (say 12.34.56.78).\r\n\r\nThe hosts have their public IP (say 12.34.10.10 and 12.34.10.20).\r\n\r\nI managed to set the hosts as a consul cluster (one in bootstrap mode and the other in server mode). This works.\r\n\r\nI tried to add the VM in this cluster, using its public IP in consul config, but it does not work : \r\n\r\n\"Error starting agent: Failed to start Consul client: Failed to start lan serf: Failed to start TCP listener. Err: listen tcp 12.34.56.78:8301: bind: cannot assign requested address\"\r\n\r\nI have declared the IP/hostname in /etc/hosts, in case of. I guess that there is some DNS problem in my config.\r\n\r\nMay be the VM only uses LAN net, as eth0 is configured with local IP (10.10.20.30)?\r\n\r\nCould you give me some insights on how to solve my issue?\r\n\r\nRegards,\r\nDominique\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/77626502","html_url":"https://github.com/hashicorp/consul/issues/767#issuecomment-77626502","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/767","id":77626502,"user":{"login":"armon","id":592032,"avatar_url":"https://avatars.githubusercontent.com/u/592032?v=3","gravatar_id":"","url":"https://api.github.com/users/armon","html_url":"https://github.com/armon","followers_url":"https://api.github.com/users/armon/followers","following_url":"https://api.github.com/users/armon/following{/other_user}","gists_url":"https://api.github.com/users/armon/gists{/gist_id}","starred_url":"https://api.github.com/users/armon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armon/subscriptions","organizations_url":"https://api.github.com/users/armon/orgs","repos_url":"https://api.github.com/users/armon/repos","events_url":"https://api.github.com/users/armon/events{/privacy}","received_events_url":"https://api.github.com/users/armon/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T20:08:10Z","updated_at":"2015-03-06T20:08:10Z","body":"Sounds like this is working now! Closing, but please reopen if an issue."}}