Hi Chen, Unfortunately, you have hit the limits of my IoTivity knowledge, but hopefully someone on the list can help. Jawid is with TE. Unfortunately, when I talked with him yesterday, he said they had put off doing the VM work due to running into some configuration problems, so not sure if he can help or not.
The only other thing I can guess is if you are doing a multicast discovery, sometimes multicast is a bit touchy, and you might want to use wireshark to verify multicast packets are being sent and received. For example, maybe the host OS is not sending the multicast packets between VMs. (Just a random guess.) Thanks, Bill. From: Zarfati, Chen Sent: Thursday, January 08, 2015 10:57 AM To: Dieter, William R Cc: 'iotivity-dev at lists.iotivity.org'; Lankswert, Patrick; Patel, Shamit; Mirani, Jawid Subject: RE: IoTivity Sample Project Hi Bill, Thank you very much for your answer, I would be more than happy to speak to the TE team you mentioned. I am sure it would be very productive. As for the rest of your email, we didn't use NAT but Host-Only adapter so it can't be the issue. Also, we do get ping between the VM's. Thank you! Chen From: Dieter, William R Sent: Wednesday, January 07, 2015 16:38 To: Zarfati, Chen Cc: 'iotivity-dev at lists.iotivity.org'; Lankswert, Patrick; Patel, Shamit; Mirani, Jawid Subject: RE: IoTivity Sample Project +iotivity-dev Hi Chen, The first thing I recommend is to see if the two VMs can ping each other and connect using non-IoTivity TCP/IP apps (for example, if you install sshd can you ssh from one machine to the other). If TCP/IP is not working IoTivity will not work. The VM managers I have used in the past allow you to configure the virtual network so that the VMs appear behind NAT, appear as separate virtual NICs on the same network as the host, or appear to be on an isolated virtual network (possibly bridged or routed through the host depending on how fancy you get with the config). I recommend not using NAT. The VMs will not be able to connect with the NAT configuration unless you configure the NAT for port forwarding. Which of the other configurations you use depends on what you are trying to do and how much effort you want to put into the configuration (sharing with the host is generally quick and easy to set up). Most of what I do is with CCF product. My role on IoTivity has been primarily to help manage infrastructure. I have built the code in a Linux VM, but not tried the scenario you describe. I have CC'ed the iotivity-dev mailing list in case someone else knows a better answer. The mailing list is probably the best place for questions like this. I know TE has been experimenting with VMs for testing, but do not know if they have tried what you describe. If so, they may know the answer. If not they will probably want to hear what anyone posts to the list. Thanks, Bill. From: Zarfati, Chen Sent: Wednesday, January 07, 2015 3:33 AM To: Dieter, William R Subject: IoTivity Sample Project Hi Bill, I hope all is well with you and your family and had happy holidays. I would appreciate your help in executing a very simple client-server project between two linux vm's within the same subnet, using the IoTivity platform. While trying to do so we applied our platform configuration settings on the simpleclient/server examples. From our findings, we could only discover resources when both sample projects were ran on the same machine (for example on one VM). In addition, using wireshark we didn't find any connection between the projects (in different VM's). It would be great if you can try helping us with the above, or share your experience in running those sample projects. Thank you very much. Best Regards, Chen Zarfati. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150108/83fc5eed/attachment.html>
