|
Virtual ApplianceThe OMERO virtual appliance is a quick, easy, & lo-cost way to try out OMERO.server on your laptop or desktop. This enables you to make an informed decision about whether committing to an OMERO.server install is right for you. Virtualisation enables canned, ready to run software environments to be created and used, in the form of Virtual Machines (VM), or to be distributed for others to use, in the form of Virtual Appliances. A Virtual Appliance is essentially a file that describes how to create a new Virtual Machine on demand. The virtualised software environment can contain an entire operating system (OS), such as Windows or Linux, and any other software that runs in that OS, such as, in this case, OMERO.server and its associated software prerequisites. Once created and started, you can log into the OS and use it as though it were a real machine. One way to think of this is as though you had an entire computer in a window on your desktop. When using virtualisation software, the OS that is running the virtualisation software is referred to as the "host OS". When you use virtualisation, the OS running within a virtual machine is referred to as the "guest OS". This allows us to be explicit about which OS we are working in. Effectively this means that the OME Project can distribute a canned, ready-to-run environment containing an OMERO.server, thus freeing you from having to install OMERO.server yourself, and letting you concentrate on evaluating the functionality of the OMERO.server and its clients. NOTE: The virtual hard-drive used by the OMERO virtual appliance is 30GB in size and you should probably keep track of the amount of this space that you have consumed and, if necessary, delete data that is not required. If your data is likely to exceed this space whilst you are evaluating OMERO then it is worthwhile going through the "Increasing HD Size procedure" before you start working with OMERO in earnest. Getting StartedTo use the virtual appliance you should do the following:
Each of these points is outlined in more detail in the remainder of this page... Install VirtualBoxIn order to use the OMERO.server virtual appliance you need to install VirtualBox. Download VirtualBox from here and follow the installation process for your platform. If in doubt you should download, or upgrade to, the latest version of VirtualBox. Once VirtualBox is installed run the application. Depending upon your platform & version, the VirtualBox interface should look similar to the following screenshot: Download the OMERO.server Virtual ApplianceThe virtual appliance can be downloaded from here and should have a filename similar to, e.g. omero-vm.ova Import OMERO Virtual Appliance into VirtualBox
This process is indicated in the following screenshot:
You should now see a progress bar as your new virtual machine is built from the appliance. This import process can take a few minutes depending upon your hardware. Feel free to make a coffee whilst you are waiting ;) When the import procedure is complete your new VM should appear in the VirtualBox VM library ready for use. NetworkingOur virtual appliance is distributed with VirtualBox's built in Host-Only Network Address Translation (NAT) preconfigured. This means that the IP address for the VM is 10.0.2.15 which is the default VirtualBox Host-Only NAT address. Using this address is the simplest way to distribute a virtual appliance when you do not know the setup of a user's network. Port-Forwarding SettingsYour host OS cannot connect directly to 10.0.2.15 but needs to use port-forwarding. This means that you connect to your localhost on a specific port and the communications to and from that port are forwarded to specified ports on the guest VM. Our virtual appliance should be preconfigured with the correct port-forwarding setting configured during the import process. However, it is best to double check that these settings are correctly set up:
If the table in the window that appears is empty then port forwarding is not setup. The required port-forwarding settings are as follows:
When correctly setup in VirtualBox your port forwarding settings should look like this: If you are on Linux or Mac OS X then you can either use our port forwarding setup script or else you can set up port forwarding settings manually. NB. On Microsoft Windows systems you will have to set up port forwarding manually as the script requires a bash shell. The script can be downloaded from here and is run by opening a shell and executing the following command: where $VMNAME is the name of your VM. NB. By default the scripts create a VM named omerovm and the pre-built appliance is named omero-vm Adding port forwarding manually is achieved by editing the port forwarding table that we displayed before. Use the + to add a new row to the table then clicking in each cell and typing in the required settings. Now we are ready to start our VM. Select the VM in the VirtualBox VM library then click start. A window should open containing a console for your VM which should now be going through it's standard boot process. OMERO.server is automatically started at boot time which means that you should be able to interact with OMERO without further setup. CredentialsThere are a number of accounts that are preconfigured in the OMERO virtual appliance. Two of these are OS accounts, for logging into the VM as either the root user or the omero user. There is also a single OMERO.server account which is used to access the OMERO.server software as the OMERO.server root user OS Credentials
OMERO.server Credentials
You can use this administrative account to create as many user level accounts as you require in the usual way. Working with the OMERO.VMNow that your VM is up and running you have a choice about how to interact with it.
NB. The following example assume that the OMERO VM is up & running on the same machine that you are working on. OMERO.insightYou can run regular OMERO clients on your host machine and connect to the server in the VM. Our example uses OMERO.insight running on Mac OS X to connect to the VM.
You can now use insight to import & manage images on a locally running virtual server just like you could using a remote server. Log into the VM directlyWhen you start your VM using the Virtual Box GUI, as outlined above, a window will be displayed showing the boot process for the machine as it starts up, just like with a real piece of hardware. Once the boot process has finished you will see a prompt displayed in this window like so: you can log into the console of the VM directly using the user account credentials above. There is no GUI on the current OMERO virtual appliance so you will have to be happy using the Bash shell which looks like this: From here you can interact with OMERO.server via the OMERO command line interface Secure ShellYou can also log into your VM using Secure Shell (SSH) which will give you a command line interface to the VM from where you can use the OMERO.server command line interface. In the following example, we assume that you have an SSH client installed on your host machine and also that your VM is up and running. You can log into the VM using the above credentials and the following command typed into a terminal:
This invokes the SSH program telling it to login to the localhost on port 2222 using the username omero. Remember that earlier we set up port forwarding to forward port 2222 on the host machine to port 22 (the default SSH port) on the guest VM. If all goes well you will be prompted for a password. Once you have successfully entered your password you should be greeted by a prompt similar to the following:
There are two potential complications to this method, (1) if you have used a VM before then there could be old SSH fingerprints set up, (2) the first time that you log into the VM you will be asked to confirm that wish to continue connecting. If you get the following message after you invoke ssh: then you can remove the old fingerprints with the following command typed into the terminal:
as illustrated in this screenshot: The first time that you log into the VM you will also be asked to confirm that you wish to connect to this machine by a message similar to the following: You should confirm that you wish to continue connecting, after which you will be prompted for your password as usual: After which, if all has gone well, you should have a prompt indicating that you have a shell open and logged into the VM: Known IssuesNetworking Not WorkingOccasionally, during the boot process, the VirtualBox DHCP server fails to allocate an IP address to the OS in the guest VM. This means that OMERO.clients, such as OMERO.Insight, cannot connect to the OMERO.server in the VM.
Port conflict when OMERO.server already running in Host OSIf you are already running an instance of the OMERO.server in your host OS then there will be a conflict due to the ports assigned to VirtualBox port-forwarding being the same as those already in use by the OMERO.server in the host OS.
VM won't boot because the HDD is fullIf you manage to fill the virtual HDD used by your VM then you will likely discover that the OS is unable to boot and you cannot therefore get access to your OMERO.server install. If this occurs you may also get a "errno 28: no space left on device" message. To log into your VM you will need to use the recovery mode. Start the VM and at the Grub screen, use the down arrow followed by return to select the following entry: as seen in this screenshot: Don't worry if your VM has a kernel number different to 3.0.0-12-generic, the important thing is that you select the entry labelled recovery mode. At this point the VM should rapidly boot into the recovery mode which will enable you to log in using the root password swordfish. Once you have logged in you have a number of things that you can do but the recommended courses of action are either:
Document Actions |
