11 | | These VMs are for use as BOINC servers. |
12 | | They have all the BOINC prerequisites installed, the BOINC software installed and compiled, and user accounts and permissions set up. |
13 | | They're ready to run [MakeProject make_project] and go. |
| 11 | This VM is for use as a BOINC server. |
| 12 | It has all the BOINC prerequisites installed, the BOINC software installed and compiled, and user accounts and permissions set up. |
| 13 | It's ready to run [MakeProject make_project] and go. |
40 | | NAT:: |
41 | | You share the IP address of the host machine in order to make outgoing connections (access Internet sites from within the VM). Incoming connections from other machines (except the host machine) are, in principle, not possible. Scanning the network will only reveal one machine, your host. However, there is a way to circumvent this lack of incoming (to your server) connectivity and, thus, be able to receive connections from BOINC clients outside your network: port forwarding (not available with the free VMware player). This can be done using the VMware virtual network editor (Edit > Virtual Network Settings > NAT > Edit > Port Forwarding). More information in [http://www.vmware.com/support/ws5/doc/ws_net.html Configuring a Virtual Network]. On Windows, if NAT is to be used and not already set, you need to do the following to get network access in the VM: |
| 42 | === Bridged Ethernet === |
| 43 | The VM will act like a real machine on your network. |
| 44 | Scanning the network will reveal two machines, your host and the VM. |
| 45 | Outgoing and incoming connections are possible. |
| 46 | |
| 47 | By default, the VM will get an IP address via DHCP. |
| 48 | This will work if your network has a DHCP server configured to |
| 49 | issue IP address to new hosts. |
| 50 | |
| 51 | Alternatively, you can give the VM a static IP address. |
| 52 | To do this, edit /etc/network/interfaces. |
| 53 | For example: |
| 54 | {{{ |
| 55 | # The primary network interface |
| 56 | auto eth0 |
| 57 | #iface eth0 inet dhcp |
| 58 | # pre-up iptables-restore < /etc/iptables.up.rules |
| 59 | iface eth0 inet static |
| 60 | address 141.142.234.9 |
| 61 | netmask 255.255.255.0 |
| 62 | gateway 141.142.234.1 |
| 63 | pre-up iptables-restore < /etc/iptables.up.rules |
| 64 | dns-search ncsa.uiuc.edu |
| 65 | dns-nameservers 141.142.2.2 141.142.230.144 |
| 66 | }}} |
| 67 | |
| 68 | You should also add the IP address and hostname of the VM to your hosts file. To do this edit {{{C:\Windows\system32\drivers\etc\hosts}}} (if the host is Windows) or {{{/etc/hosts}}} (as root; if the host is Unix) with an editor, and add for example: |
| 69 | {{{ |
| 70 | 141.142.234.9 debian.localdomain |
| 71 | }}} |
| 72 | |
| 73 | With this you can connect a client from your host machine to your VM. |
| 74 | If you're using a proxy to access the internet you should add 'debian.localdomain' to your list of exceptions in your browser. |
| 75 | You won't need a proxy to resolve a local address. |
| 76 | |
| 77 | === NAT === |
| 78 | In this mode, the VM shares the IP address of the host machine in order to make outgoing connections |
| 79 | (access Internet sites from within the VM). |
| 80 | Scanning the network will only reveal one machine. |
| 81 | |
| 82 | Incoming connections from other machines (except the host machine) are, in principle, not possible. |
| 83 | However, there is a way to circumvent this lack of incoming (to your server) connectivity and, |
| 84 | thus, be able to receive connections from BOINC clients outside your network: |
| 85 | port forwarding (not available with the free VMware player). |
| 86 | This can be done using the VMware virtual network editor (Edit > Virtual Network Settings > NAT > Edit > Port Forwarding). |
| 87 | More information in [http://www.vmware.com/support/ws5/doc/ws_net.html Configuring a Virtual Network]. |
| 88 | On Windows, if NAT is to be used and not already set, |
| 89 | you need to do the following to get network access in the VM: |