JWS-109 & JWS-116 Moved the docs (source and html built) to a new location that is...
[jabaws.git] / website / docs / v_2_2_0 / _sources / va.rst.txt
1 Virtual Appliance (VA)
2 ======================
3
4 The JABAWS Virtual Appliance is a way to run a JABAWS server locally, without the need to connect to the internet or configure JABAWS. What the appliance provides is a 'virtual server machine' (or more simply - *virtual machine* or *VM*), running an installation of the JABAWS Web Application Archive (WAR) on `TurnKey Linux`_ 12.1 (Standlone Tomcat). 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.
5
6 You can run the appliance with freely available program such as `VMware Player`_, but you will need to install it first. We have tested the JABAWS appliance with VMware Player v 3.1.2 on Windows and Linux, and VMware Fusion on Mac. However, you are not limited to these virtualization systems and can use the JABAWS Appliance with any other virtualization platform. You can use `VMware OVF`_ tool to prepare JABAWS image for a different virtualization platform e.g. `VirtualBox`_.
7
8 .. note:: The appliance best suits users who would like to use the JABAWS web-services locally. This might be because they do not want to access systems over an internet, or just want to keep their data private. It is also the recommended option for users who want to install JABAWS on Windows, which does not support all the bioinformatics programs that JABAWS can run.
9
10 For servers that will be used heavily, we recommend that a JABAWS Server WAR distribution is deployed, rather than the Virtual Appliance version of JABAWS. This is because the JABAWS appliance is pre-configured to use only 1 CPU and 512M of memory (where the minimum amount of memory required for a JABAWS server is about 378M), which is unlikely to be sufficient for heavy computation. It is possible to reconfigure the virtual appliance so it uses more computation resources, but for most production environments, the JABAWS WAR distribution will be easier to deploy and fine tune to take advantage of the available resources.
11
12
13 ------------
14
15 .. _va_installing:
16
17 Installing
18 ----------
19
20 .. tip:: Check if you are running the recommended version of VWMare.
21
22 The free `VMware Player`_ can be used to run the JABAWS services from the Windows and Linux host operating systems. `VMware Fusion`_, a commercial VMware product, offers virtual machine support for Mac.
23
24 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 "Open Virtual Machine" and point the Player to the location of the JABAWS, then choose the ``JABAWS*.vmx`` file to open an appliance.
25
26 When you play the machine for the first time the Player might ask you whether "This virtual machine may have been moved or copied.", say that you have copied it. That is all.
27
28
29 ------------
30
31 .. _va_usage:
32
33 Usage
34 -----
35
36 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.
37
38
39 .. image:: ../../website/static/img/VMware_cpu.png
40    :height: 267
41    :width: 708
42    :scale: 95 %
43    :align: left
44
45 The VMware Player screen shot above displays JABAWS VM CPU settings.
46
47
48 ------------
49
50 .. _va_config:
51
52
53 Configuration
54 -------------
55
56 .. _va_vm_config:
57
58 VM configuration
59 ~~~~~~~~~~~~~~~~
60
61 **VMware info**
62
63 * CPUs : 1
64 * RAM : 512 MB
65 * Networking : Host only (the VM has no access to the outside network, nothing from the outside network can access the VM)
66 * Hard disk : 20 GB (expanding)
67 * VMware tools : Installed
68
69 **OS information**
70
71 * OS : TurnKey Linux (v. 14.1, Standalone Tomcat) based on Debian GNU/Linux 8 (Jessie)
72 * Installation : Oracle Java 7, Tomcat 7, JABAWS v. 2.2
73 * IPv4 address : dhcp
74 * IPv6 address : auto
75 * DNS name : none
76 * Name server : dhcp
77 * Route : dhcp
78 * Keyboard : US_intl
79
80 **Login credentials**
81
82 * Root password: JabawsAdmin1
83 * MySQL password: JabawsAdmin1
84 * Tomcat admin password: JabawsAdmin2
85
86 **Services available at the virtial machine IP (e.g. VM_IP = 172.16.232.149)**
87
88 * Tomcat Web Server: http://VM_IP (e.g. http://172.16.232.149)
89 * Jabaws URL: http://VM_IP/jabaws (e.g. http://172.16.232.149/jabaws)
90 * Web Shell: https://VM_IP:12320/ (e.g. https://172.16.232.149:12320)
91 * Webmean: https://VM_IP:12321/ (e.g. https://172.16.232.149:12321)
92 * SSH/SFTP: root@VM_IP (e.g. ssh root@172.16.232.149)
93
94
95 ------------
96
97 .. _va_jabaws_config:
98
99 JABAWS configuration
100 ~~~~~~~~~~~~~~~~~~~~
101
102 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->Tools->Preferences->Web Services -> New Service URL, and add JABAWS URL into the box provided. For more information please refer to `Jalview help pages`_.
103
104 .. _Jalview help pages: http://www.jalview.org/help/html/webServices/JABAWS.html
105
106 .. image:: ../../website/static/img/vm_welcome_screen.png
107    :height: 461
108    :width: 734
109    :scale: 95 %
110    :align: left
111
112 If you click on Advanced Menu, you will see the configuration console, similar to the one below.
113
114 .. image:: ../../website/static/img/VMware_booted.png
115   :height: 461
116   :width: 735
117   :scale: 95 %
118   :align: left
119
120 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).
121
122
123 .. links
124 .. _Jalview: http://www.jalview.org/
125 .. _TurnKey Linux: https://www.turnkeylinux.org/tomcat
126 .. _JABAWS Virtual Appliance: ../download.jsp#va
127 .. _VMWare Player: http://www.vmware.com/products/player
128 .. _VMWare Fusion: http://www.vmware.com/products/fusion/overview.html
129 .. _VirtualBox: https://www.virtualbox.org/
130 .. _VMware OVF: https://code.vmware.com/web/dp/tool/ovf/4.1.0