Setup simulator with VMware » History » Revision 2
Revision 1 (Anchi Cheng, 10/07/2014 09:23 PM) → Revision 2/4 (Anchi Cheng, 10/07/2014 09:26 PM)
h1. Setup simulator with VMware Fusion You can get tem and camera simulator from manufactures and setup virtual machines for development. I set up 2 virtual machines machine on my MacBook with VMware and can run all the tcp transporter tests and image acquisition using a few specific settings as follow: follows: On the mac, find out the hostname known by python socket module. In python command line <pre> import socket socket.gethostname() </pre> My mac is called anchi3.local For each virtual machine # Open Network Adopter settings through menu VMware Fusion/Virtual Machine\Network Adopter\Network Adopter Settings... # Select to use "Private to my Mac" and activate "Connect Network Adaptor" if not already chosen. # Follow [[Windows_Installation_Al#Add-the-IP-address-and-matching-hostname-of-the-microscope-and-digital-camera-computer-in-your-host-file-on-the-main-Leginon-computer,-and-vice-versa.]] to make all parties on this private network know each other by hostname # ** Note: the virtual machine knows the real machine as "anchi3", not "anchi3.local"*. You should associate both names with the private network IP (127.xx.xx.1) On the mac, the /etc/hosts should include assignment to each virtual machine as well as its own private network IP. I have <pre> 127.xx.xx.128 virtual1 127.xx.xx.129 virtual2 127.xx.xx.1 anchi3 anchi3.local </pre>