[rabbitmq-discuss] Running RPC across two separate Virtual Machines?

saikrishna sripada krishna1256 at gmail.com
Wed Jun 5 10:46:37 BST 2013


Hi Eric,

Hope your problem is solved. can you please send me the steps ho you have 
set up your rabbitmq and how you are able to communicate between vms.

On Saturday, 9 March 2013 01:36:43 UTC+5:30, Eric Sender wrote:
>
> I got a reply from Emile which doesn't appear on this forum for some 
> reason? But I have a follow up question.
>
>
> *Here is her reply:*
> -------
>
> Hi Eric,
>
> On 08/03/13 07:24, Eric Sender wrote:
>
> I have RabbitMQ service working on both Guest OS's 
>
> You only need one broker. Both the RPC server and client must use the
> same broker.
>
>
> How should I set it up properly to have RabbitMQ talking to separate VMs?
>
> You must first make sure that the broker VM can accept connections. If
> you see a routing error then that VM might be using NAT. As soon as you
> have the VMs able to communicate the tutorial examples should work. You
> should consult the hypervisor documentation on how to set up networking.
>
>
>
> -Emile
> ------*My follow up question:*
>
> Is there a tutorial on how to set up the networking properly so RabbitMQ 
> can talk outside of its VM? I know the basics of networking, but I'm not 
> advanced enough for that level of it.
>
> Also, when you say "broker" you mean "server" right? Only one of the VMs 
> needs to run the rpc_server.py script?
>
>
>
> Thanks,
> Eric
>
>
>
> On Thursday, March 7, 2013 11:24:26 PM UTC-8, Eric Sender wrote:
>>
>> I have been going through the RabbitMQ tutorial step by step and making 
>> sure I can do all the basics. Rabbit seems very interesting and promising, 
>> but I am having some issues getting RabbitMQ to talk to other machines.
>>
>> My current set up is:
>>
>> Host OS: Windows 7 --- not relevant here, I am only running RabbitMQ on 
>> the Guest OS's
>> Guest OS 1 (VMWare Player): CentOS 6.3
>> Guest OS 2 (VirtualBox): CentOS 6.3
>>
>> I have RabbitMQ service working on both Guest OS's and I have Guest OS 1 
>> running rpc_server.py and Guest OS 2 running rpc_client.py. 
>>
>> But I am unsure how to get those separate VMs talking to each other with 
>> the rpc_server.py.
>>
>> I have tried editing the following line in rpc_client.py
>>
>> Line 7: self.connection = 
>> pika.BlockingConnection(pika.ConnectionParameters(host='192.168.1.84')) #changed 
>> from 'localhost'
>>
>> So that it reflects the IP address of the server VM, but it I get 
>> "socket.error: [Errno 113] No route to host"
>>
>> How should I set it up properly to have RabbitMQ talking to separate VMs?
>>
>>
>> Thanks
>> Eric
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130605/e4f4e62d/attachment.htm>


More information about the rabbitmq-discuss mailing list