Project

General

Profile

Setup simulator with VMware » History » Version 1

Anchi Cheng, 10/07/2014 09:23 PM

1 1 Anchi Cheng
h1. Setup simulator with VMware Fusion
2
3
I set up 2 virtual machine on my MacBook and can run all the tcp transporter tests and image acquisition using a few specific settings as follows:
4
5
On the mac, find out the hostname known by python socket module.  In python command line
6
<pre>
7
import socket
8
socket.gethostname()
9
</pre>
10
My mac is called anchi3.local
11
12
For each virtual machine
13
14
# Open Network Adopter settings through menu VMware Fusion/Virtual Machine\Network Adopter\Network Adopter Settings...
15
# Select to use "Private to my Mac" and activate "Connect Network Adaptor" if not already chosen.
16
# 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
17
# ** 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)
18
19
On the mac, the /etc/hosts should include assignment to each virtual machine as well as its own private network IP.  I have
20
<pre>
21
127.xx.xx.128 virtual1
22
127.xx.xx.129 virtual2
23
127.xx.xx.1 anchi3 anchi3.local
24
</pre>