d67823278468e8668868f3fa62c8e9656b02efa6
[jabaws.git] / website / man_servervm.html
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE html PUBLIC "XHTML 1.0 Strict"\r
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
4 <html xmlns="http://www.w3.org/1999/xhtml">\r
5 <head>\r
6 <meta name="Last-modified" content="Mon, 4 Apr 2011 12:00:00 GMT"/>\r
7 <title>Java Bioinformatics Analyses Web Services (JABAWS) Server Virtual Appliance Manual</title>\r
8 <link href="ws.css" rel="stylesheet" type="text/css" media=\r
9 "screen, projection, handheld, tv" />\r
10 <link rel="stylesheet" type="text/css" media="print" href=\r
11 "print.css" />\r
12 <script type="text/javascript" src="prototype-1.6.0.3.js"></script>\r
13 </head>\r
14 <body>\r
15 <div id="page">\r
16 <div id="banner">\r
17 <table> \r
18 <tr><td style="width:158px;"><a href="http://www.dundee.ac.uk"><img src="images/uod_lt_long.gif"  alt="University of Dundee" width="158" height="90" class="logo"  title="University of Dundee" longdesc="http://www.dundee.ac.uk"/></a></td>\r
19 <td class="bg"><img src="images/jabaws2.png" alt="JABAWS-2.0" title="Java Bioinformatics Analysis Web Services version 2.0"/></td>\r
20 <td class="bg"><img src="images/banner_right.png" alt="Disorder" width="200" height="80"/></td>\r
21 </tr>\r
22 </table>\r
23 </div><!-- banner end-->\r
24 \r
25 <div id="wrapper">\r
26 <div id="panel"><a href="index.html">Home</a> \r
27  <a href="quick_start.html">Getting Started</a> \r
28  <a class="selected" href="man_about.html">Manual</a> \r
29         <div id="submenu">\r
30                 <a href="man_about.html">About</a>\r
31                 <a class="selected" href="man_servervm.html" title="JABAWS Server as Virtual Appliance">Server VA</a>\r
32                 <a href="man_awscloud.html" title="JABAWS Server in the Amazon EC2 Cloud">Server in the Cloud</a>\r
33                 <a href="man_serverwar.html" title="JABAWS Server as Web Application aRchive">Server WAR</a>\r
34                 <a href="man_configuration.html" >Server<br/>\r
35                 Configuration</a>\r
36                 <a href="man_client.html" title="JABAWS Command Line Client">CMD Client</a>\r
37                 <a href="man_stats.html" title="JABAWS Usage Statistics">Usage Statistics</a>\r
38                 <a href="man_dev.html" title="Accessing JABAWS from your program">Accessing<br/>\r
39                 JABAWS</a>      \r
40                 <a href="man_server_dev.html" >JABAWS Development</a>\r
41         </div>\r
42 <a href="http://www.compbio.dundee.ac.uk/downloads/jabaws">Download</a> \r
43 <a href="PublicAnnualStat" title="JABAWS usage statistics">Usage Statistics</a>\r
44  <a href="ServiceStatus" title="JABAWS webservices status. Click to test all web services. Please be patient while the services are being checked">Services Status</a>\r
45 <a href="contacts.html">Contact Us</a>\r
46 <a href="http://www.compbio.dundee.ac.uk" title="University of Dundee, The Barton Group" >Barton Group</a>\r
47 </div>\r
48 \r
49 <!-- panel end-->\r
50 <div id="content">\r
51 <h2 id="headtitle">JABAWS MANUAL</h2>\r
52 \r
53 <h2>JABAWS Server Virtual Appliance</h2>\r
54 <ul>\r
55     <li><a href="#whatisvm">What is JABAWS Virtual Appliance?</a></li>\r
56     <li><a href="#whenvm">When to use virtual appliance</a> </li>\r
57     <li><a href="#howtoinstallvm">How to install VMware Player </a></li>\r
58         <li><a href="#vmplayer">VMware Player appliance configuration </a></li>\r
59         <li><a href="#jabawsAppliance">JABAWS Appliance details </a></li>\r
60     <li><a href="#jalviewWithJaba">Configuring Jalview to work with your JABAWS VM</a></li>\r
61     <li><a href="#vmiaccess">VM Network Settings </a></li>\r
62     </ul>\r
63 \r
64 <p>&nbsp;</p>\r
65 <h3><a name="whatisvm" id="whatisvm"></a>What is the JABAWS Server Virtual Appliance?</h3>\r
66 <p>The JABAWS <a href="http://en.wikipedia.org/wiki/Virtual_appliance">Virtual Appliance</a> is a \r
67 way to run JABAWS server locally without the need to connect to the internet or configure JABAWS. \r
68 What the appliance provides is a 'virtual server machine' (or more simply - virtual machine or VM), running an installation of the JABAWS \r
69 Web Application Archive (WAR) on TurnKey Linux. Once this has started up, it displays a message indicating the IP address of the JABAWS server, allowing any JABAWS client (such as Jalview or the JABAWS command line client) to connect to it.<br/>\r
70 You can run the appliance with freely available program such as <a href="http://www.vmware.com/products/player">VMware Player</a>, but you will need to install it first. We have tested the JABAWS appliance \r
71 with VMware Player v 3.1.2 on Windows and Linux, and VMware Fusion on Mac. \r
72   However, you are not limited to these virtualization systems and can use the JABAWS appliance with any other virtualization platform. You can use <a href="http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/ovf">VMware OVF tool</a> to prepare JABAWS image for a different virtualization platform e.g. <a href="http://www.virtualbox.org/">VirtualBox</a>.</p>\r
73 <h3><a name="whenvm" id="whenvm"/></a>When to use the JABAWS Virtual Appliance</h3>\r
74 <p>The appliance best suits users who would like to use the JABA web services locally. This might be because they do not want to access \r
75 systems over an internet, or just  want to keep their data private. It is also \r
76 the recommended option for users who want to install JABAWS on Windows, which does not support all the bioinformatics programs that JABAWS can run.</p>\r
77 <h3><a name="whennotvm" id="whennotvm"/>When <em>not</em> to use the JABAWS Virtual Appliance</h3>\r
78 <p>\r
79 For servers that will be used heavily, we recommend that a <a href="man_serverwar.html#instwar">JABAWS Server WAR distribution</a> is deployed, rather than the Virtual Appliance version of JABAWS. \r
80 This is because the JABAWS appliance is pre-configured to use only 1 CPU and 512M of memory \r
81 (where the minimum amount of memory required for a JABAWS server is about 378M), which is unlikely to be sufficient for heavy computation. \r
82 It is possible to reconfigure the virtual appliance so it uses more computation resources, \r
83 but for most production environments, the JABAWS WAR distribution will be  easier to deploy and fine tune to take advantage of the available resources.</p>\r
84 \r
85 <h3><a name="howtoinstallvm" id="howtoinstallvm"></a>How to install VMware Player</h3>\r
86 <p>Please see the <a href="http://downloads.vmware.com/d/info/desktop_downloads/vmware_player/3_0">VMware Player</a>  \r
87  web sites for up to date instructions and downloads.</p>\r
88 \r
89 <h3><a name="vmplayer" id="vmplayer"/>VMware Player appliance configuration </h3>\r
90 <p>The free <a href="http://downloads.vmware.com/d/info/desktop_downloads/vmware_player/3_0">VMware Player</a> can be used to run the JABAWS services from the Windows and Linux host operating systems. <a href="https://www.vmware.com/vmwarestore/buyfusion.html">VMware Fusion</a>, a commercial VMware product, offers virtual machine support for Mac. </p>\r
91 <p>To run the JABAWS server on VMware player,  unpack the JABAWS VM into one of the folders on your local hard drive. Open VMware Player, click &quot;Open Virtual Machine&quot; and point the Player to the location of the JABAWS, then choose the JABAWS.vmx file to open an appliance. </p>\r
92 <p>When you play the machine for the first time the Player might ask you whether &quot;This virtual machine may have been moved or copied.&quot;,  say that you have copied it. That is all. </p>\r
93 <h3><a name="jabawsAppliance" id="jabawsAppliance"/>JABAWS Appliance details</h3>\r
94 <p>By default, the JABAWS virtual appliance is configured with 512M of memory and 1 CPU, but you are free to change these settings. If you have more than one CPU or CPU core on your computer you can make them available for the JABAWS virtual machine by editing virtual machine settings. Please bear in mind that more CPU power will not make a single calculation go faster, but it will enable the VM to do calculations in parallel. Similarly, you can add more memory to the virtual machine. More memory lets your VM deal with larger tasks, e.g. work with large alignments.</p>\r
95 <p>The VMware Player screen shot below displays JABAWS VM CPU settings. </p>\r
96 <p><img src="images/VMware_cpu.png" alt="vmware cpu settings" width="708" height="267" style="border: solid black 1px" /></p>\r
97 \r
98 <p><strong>JABAWS appliance configuration: </strong></p>\r
99 <p><strong>VMware info</strong><br />\r
100   - CPUs : 1<br />\r
101   - RAM : 512 MB<br />\r
102   - Networking : Host only (the VM has no access to the outside network, nothing from the outside network can access the VM)<br />\r
103   - Hard disk : 20 GB  (expanding)<br />\r
104   - VMware tools : Installed</p>\r
105 <p><strong>OS info</strong><br />\r
106   - OS : TurnKey Linux, based on Ubuntu 8.0.4 JEOS (Just-Enough-Operation-System)<br />\r
107   - Installation : Oracle Java 6, Tomcat 7, JABAWS v. 2.0 <br />\r
108   - Hostname : tomcat <br />\r
109   - IPv4 address : dhcp<br />\r
110   - IPv6 address : auto<br />\r
111   - DNS name : none<br />\r
112   - Name server : dhcp<br />\r
113   - Route : dhcp<br />\r
114   - Keyboard : US_intl</p>\r
115 <p><strong>Login credentials</strong><br />\r
116   - Root password: jabaws</p>\r
117 <p>  <strong>Services</strong></p>\r
118 <ul>\r
119   <li>Default virtual console Alt+F7 </li>\r
120   <li>Tomcat web server. <br />\r
121     <em>Access:</em> http://VM_IP</li>\r
122   <li><strong>JABAWS URL: http://VM_IP/jabaws</strong></li>\r
123   <li>Web Shell<br />\r
124     <em>Access:</em> https://VM_IP:12320/</li>\r
125   <li>Webmean<br />\r
126     <em>Access:</em> https://VM_IP:12321/</li>\r
127   <li>SSH/SFTP<br />\r
128     <em>Access:</em> root@VM_IP</li>\r
129   </ul>\r
130 <p>Where VM_IP is the VM IP address. Under VMware Player host only networking, the first VM may have 192.168.227.128 IP address. </p>\r
131 <h3><a name="jalviewWithJaba" id="jalviewWithJaba"/>Configuring Jalview to work with your JABAWS VM</a> </h3>\r
132 <p>After booting the JABAWS VM, you should see similar screen, however, the IP address of your VM may be different. To enable Jalview to work with your JABAWS appliance you need to go to Jalview-&gt;Tools-&gt;Preferences-&gt;Web Services -&gt; New Service URL, and add JABAWS URL into the box provided. For more information please refer to Jalview <a href="http://www.jalview.org/help/html/webServices/JABAWS.html">help pages</a>. </p>\r
133 <p><img src="images/vm_welcome_screen.png" alt="JABAWS welcome screen" width="734" height="461" /></p>\r
134 <p>If you click on Advanced Menu, you will see the configuration console, similar to the one below.   </p>\r
135 <p><img src="images/VMware_booted.png" alt="JABAWS welcome screen" width="735" height="461" /></p>\r
136 <p>If you need to configure a static IP address the configuration console will help you with this. Shutting down the VM is best from the configuration console as well.</p>\r
137 <h3><a name="vmiaccess" id="vmiaccess"/></a></a>VM Network Settings </h3>\r
138 <p>By default the JABAWS VM is configured to use host-only networking. This means that the host can communicate with the VM via a network, but no other machines can. Similarly, the VM cannot communicate with any other computers apart from the host. If you want to connect to the Internet from the VM, configure your VM to use NAT network. However, you will not be able to connect to the VM from the host in such case. If you want to be able to connect to your VM and let VM connect to the internet at the same time you would have to use a Bridged network. In such a case you would have to configure the VM IP address manually (unless of course your network has a DHCP server to do that)</a></p>\r
139 </div>\r
140 \r
141 <!-- content end-->\r
142 <div id="copyright">Last update: 16 September 2011<br />\r
143  Peter Troshin, Jim Procter and Geoff Barton, The Barton Group, University of\r
144 Dundee, UK</div>\r
145 </div>\r
146 \r
147 <!-- wrapper end-->\r
148 </div>\r
149 <!-- page end-->\r
150 \r
151 <!-- Google analitics -->\r
152 <script type="text/javascript">\r
153 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");\r
154 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));\r
155 </script>\r
156 <script type="text/javascript">\r
157 try{\r
158 var pageTracker = _gat._getTracker("UA-5356328-1");\r
159 pageTracker._trackPageview();\r
160 } catch(err) {}\r
161 </script>\r
162 </body>\r
163 </html>\r
164 \r