Difference between revisions of "ICA-AtoM virtual appliance"

From ICA-AtoM
Jump to navigation Jump to search
Line 1: Line 1:
The ICA-AtoM virtual appliance is a good option if you want to try ICA-AtoM on your personal computer but are having trouble installing the web server or database server that a web-based application like ICA-AtoM requires.
+
The virtual appliance is a good option if you want to try ICA-AtoM on your personal computer but are having trouble installing the web server or database server that a web-based application like ICA-AtoM requires.
  
=What is it?=
+
== What is it? ==
A [http://en.wikipedia.org/wiki/Virtual_appliance virtual appliance] is one file containing a minimal operating system and server software. You can "play" this file with a free virtual machine player like VMware Player or Sun VirtualBox.
+
 
 +
A [[wikipedia:Virtual appliance|virtual appliance]] is one file containing a minimal operating system and server software. You can "play" this file with a free virtual machine player like VMware Player or Sun VirtualBox.
  
 
When you play the virtual appliance, it starts the second operating system and server software inside the player, on top of your existing operating system. There is no need to reboot or install anything except the player. You can then connect to the web server running inside the virtual machine player with your regular web browser.
 
When you play the virtual appliance, it starts the second operating system and server software inside the player, on top of your existing operating system. There is no need to reboot or install anything except the player. You can then connect to the web server running inside the virtual machine player with your regular web browser.
  
=Minimum hardware requirements=
 
  
*Processor: Pentium IV or higher
+
== Minimum hardware requirements ==
*RAM: 256B unallocated memory
 
*Hard Drive space: a minimum of 1GB to test the system on a small scale (i.e. use the available test files or import a small set of test files)
 
  
=Instructions for using the vmserver image=
+
* Processor: Pentium IV or higher
 +
* RAM: 256B unallocated memory
 +
* Hard Drive space: a minimum of 1GB to test the system on a small scale (i.e. use the available test files or import a small set of test files)
  
==Install Sun Virtual Box==
 
  
*There are VirtualBox versions available for every major operating system.
+
== vmserver ==
**Download and install Sun VirtualBox: [http://www.virtualbox.org/wiki/Downloads http://www.virtualbox.org/wiki/Downloads].
 
  
==Download ICA-Atom vmserver ==
+
=== Install Sun Virtual Box ===
  
*Download ICA-Atom vmserver: [http://ica-atom.org/VEbuilds/ica-atom-vmserver-2009-12-09.tgz ica-atom-vmserver-2009-12-09.tgz] ([http://ica-atom.org/VEbuilds/md5sum.list md5])
+
There are VirtualBox versions available for every major operating system
*Unzip the ICA-atom-vmserver file. This should result in the following two files appearing in an ubuntu-vmserver folder:
 
**ubuntu.vmx
 
**disk0.vmdk
 
  
==Setup ICA-Atom in VirtualBox==
+
Download and install Sun VirtualBox, http://www.virtualbox.org/wiki/Downloads
===Add vmserver image to VirtualBox===
 
*Open the Sun VirtualBox virtual machine.
 
*Click New
 
[[File:0-new.png]]
 
  
  
*Click Next
+
=== Download vmserver appliance ===
[[File:1-Start-vmserver-setup.png]]
 
  
 +
[http://ica-atom.org/VEbuilds/ica-atom-vmserver-2009-12-09.tgz ica-atom-vmserver-2009-12-09.tgz] ([http://ica-atom.org/VEbuilds/md5sum.list md5])
  
*Enter a Name eg 'ICA-Atom'
+
Unzip the vmserver appliance. This should result in the following two files appearing in an ubuntu-vmserver folder:
*Set OS type as operating system 'Linux' version 'Ubuntu'
+
* ubuntu.vmx
**Note: this setting refers to the operating system that is run inside the virtual appliance, not your own host operating system
+
* disk0.vmdk
*Click Next
 
[[File:2-set-name-vmserver-setup.png]]
 
  
  
*Set Base Memory Size to '256MB'
+
=== Setup appliance in VirtualBox ===
*Click Next
 
[[File:3-set-mem-vmserver.png]]
 
  
 +
==== Add vmserver appliance to VirtualBox ====
  
*Select Use Existing Hard Disk
+
# Open the Sun VirtualBox virtual machine.
[[File:4-use-existing.png]]
+
# [[File:0-new.png]]Click "New"
 +
# [[File:1-Start-vmserver-setup.png]]Click "Next"
 +
# [[File:2-set-name-vmserver-setup.png]]Enter a Name e.g. "ICA-AtoM"
 +
# Set OS type as operating system "Linux" version "Ubuntu"
  
 +
<div class="note">
  
*Click Folder/Arrow icon for Virtual Media Manager
+
This setting refers to the operating system that is run inside the virtual appliance, not your own host operating system
[[File:5-click-folder-icon.png]]
 
  
 +
</div>
  
*Click Add
+
# Click "Next"
[[File:6-virtual-media-manger-add.png]]
+
# [[File:3-set-mem-vmserver.png]]Set Base Memory Size to "256MB"
 +
# Click "Next"
 +
# [[File:4-use-existing.png]]Select Use Existing Hard Disk
 +
# [[File:5-click-folder-icon.png]]Click Folder/Arrow icon for Virtual Media Manager
 +
# [[File:6-virtual-media-manger-add.png]]Click "Add"
 +
# Browse to location of disk0.vmdk and click select/Open (ubuntu-vmserver folder)
 +
# [[File:7-select-disk.png]]Highlight newly added disk and click select
 +
# [[File:8-finish-add-vmserver.png]]Click Next
 +
# [[File:9-finish.png]]Review selections, click "Finish"
 +
# ICA-AtoM should be visible on the left hand side of VirtualBox
 +
# Right click ICA-AtoM in VirtualBox
 +
# [[File:0-settings.png]]Choose Settings
 +
# [[File:2-selectnetwork.png]]Select Network
 +
# [[File:3-select-host-only.png]]Choose "Host-Only Adapter" in "Attached to" drop down
 +
# [[File:5-click.OK.png]]Click OK
  
  
*Browse to location of disk0.vmdk and Click select/Open (ubuntu-vmserver folder)
+
==== Start the machine ====
*Highlight newly added disk and click select
 
[[File:7-select-disk.png]]
 
  
 +
# [[File:0-start.png]]Click Start
 +
# [[File:1-complete-boot.png]]Wait for boot to complete. You do not need to enter the Ubuntu password (bottom of the boot-up screen)
 +
# [[File:3-ica-atom.png]]Open your web browser and go to the following URL: http://192.168.56.101/
 +
# Your web browser is now communicating directly with the server inside the virtual appliance, just as if you were pointing your web browser to http://ica-atom.org/ or any other online website
 +
# You will now complete the basic ICA-AtoM installation steps on the copy of the application running inside the virtual appliance
 +
# [[File:4-ica-atom.png]]Click the 'Continue' link on the System Checks page
 +
# [[File:5-ica-atom.png]]Don't adjust the default database settings. Accept the default database name ("qubit") and user ("root"). Just press "Save and continue"
 +
# Give your new ICA-AtoM site a title and (optional) site description
 +
# Create an administrator account for yourself, completing the mandatory username, email, and password fields
 +
# [[File:6-ica-atom.png]]Click "Save and continue"
 +
# Congratulations, you have a running copy of ICA-AtoM! See the [[user manual]] for instructions on how to use the software
 +
# Be sure to follow the [[#Turn off virtual appliance|turn off virtual appliance]] instructions below when you are done so that you save any data you have entered and avoid starting a new ICA-AtoM installation
 +
# The next time you want to use your ICA-AtoM virtual appliance, just open the Sun Virtual Box player, "Start" the ICA-AtoM virtual appliance and point your browser to, http://192.168.56.101/
  
*Click Next
 
[[File:8-finish-add-vmserver.png]]
 
  
 +
==== Turn off virtual appliance ====
  
*Review Selections, click Finish
+
# [[File:7-ica-atom.png]]At the end of your session, turn off the VirtualBox virtual machine by going to Machine > Close
[[File:9-finish.png]]
+
# [[File:8-ica-atom.png]]Select the "Save the machine state" option
  
 +
If you don't select the "Save the machine state" option you will lose any data you have entered and have to complete the ICA-AtoM installation anew the next time you start the virtual appliance.
  
ICA-Atom should be visible on the left hand side of VirtualBox
+
This is from the VirtualBox help manual:
  
 +
<blockquote>
  
*Right Click ICA-Atom in VirtualBox
+
3.4.3. Saving the state of the machine
*Choose Settings
 
[[File:0-settings.png]]
 
  
 +
When you click on the "Close" button of your virtual machine window (at the top right of the window, just like you would close any other window on your system) (or press the Host key together with "Q"), VirtualBox asks you whether you want to "save" or "power off" the VM.
  
*Select Network
+
The difference between these three options is crucial. They mean:
[[File:2-selectnetwork.png]]
 
  
 +
Save the machine state: With this option, VirtualBox "freezes" the virtual machine by completely saving its state to your local disk. When you later resume the VM (by again clicking the "Start" button in the VirtualBox main window), you will find that the VM continues exactly where it was left off. All your programs will still be open, and your computer resumes operation.
  
*Choose 'Host-Only Adapter' in 'Attached to' drop down
+
Saving the state of a virtual machine is thus in some ways similar to suspending a laptop computer (e.g. by closing its lid).
[[File:3-select-host-only.png]]
 
  
 +
Send the shutdown signal. This will send an ACPI shutdown signal to the virtual machine, which has the same effect as if you had pressed the power button on a real computer. So long as a fairly modern operating system is installed and running in the VM, this should trigger a proper shutdown mechanism in the VM.
  
*Click OK
+
Power off the machine: With this option, VirtualBox also stops running the virtual machine, but without saving its state.
[[File:5-click.OK.png]]
 
  
===Start The Machine===
+
This is equivalent to pulling the power plug on a real computer without shutting it down properly. If you start the machine again after powering it off, your operating system will have to reboot completely and may begin a lengthy check of its (virtual) system disks.
*Click Start
 
[[File:0-start.png]]
 
  
 +
As a result, this should not normally be done, since it can potentially cause data loss or an inconsistent state of the guest system on disk.
  
*Wait for Boot to complete. You do not need to enter the ubuntu password (bottom of the boot-up screen)
+
The "Discard" button in the main VirtualBox window discards a virtual machine's saved state. This has the same effect as powering it off, and the same warnings apply.
[[File:1-complete-boot.png]]
 
 
 
 
 
*Open your web browser and go to the following URL: http://192.168.56.101/
 
 
 
[[File:3-ica-atom.png]]
 
 
 
 
 
*Your web browser is now communicating directly with the server inside the virtual appliance, just as if you were pointing your web browser to http://ica-atom.org or any other online website.
 
*You will now complete the basic ICA-AtoM installation steps on the copy of the application running inside the virtual appliance.
 
*Click the 'Continue' link on the System Checks page
 
 
 
[[File:4-ica-atom.png]]
 
 
 
 
 
*Don't adjust the default database settings. Accept the default database name ('qubit') and user ('root'). Just press 'Save and continue'
 
 
 
 
 
[[File:5-ica-atom.png]]
 
 
 
 
 
*Give your new ICA-AtoM site a title and (optional) site description
 
*Create an Administrator account for yourself, completing the mandatory username, email and password fields
 
*Click 'Save and continue'
 
 
 
 
 
 
 
[[File:6-ica-atom.png]]
 
 
 
*Congratulations, you have a running copy of ICA-AtoM! See the [[User_manual|User Manual]] for instructions on how to use the software.
 
 
 
*Be sure to follow the '''Turn off virtual appliance''' instructions below when you are done so that you save any data you have entered and avoid starting a new ICA-AtoM installation.
 
*The next time you want to use your ICA-AtoM virtual appliance, just open the Sun Virtual Box player, 'Start' the ICA-AtoM virtual appliance and point your browser to http://192.168.56.101/
 
 
 
===Turn off virtual appliance===
 
*At the end of your session, turn off the VirtualBox virtual machine by going to Machine > Close.
 
 
 
 
 
[[File:7-ica-atom.png]]
 
 
 
 
 
Select the "Save the machine state" option.
 
 
 
 
 
[[File:8-ica-atom.png]]
 
 
 
 
 
If you don't select the "Save the machine state" option you will lose any data you have entered and have to complete the ICA-AtoM installation anew the next time you start the virtual appliance.
 
 
 
This is from the VirtualBox help manual:
 
 
 
<blockquote>3.4.3. Saving the state of the machine</blockquote>
 
  
<blockquote>When you click on the "Close" button of your virtual machine window (at the top right of the window, just like you would close any other window on your system) (or press the Host key together with "Q"), VirtualBox asks you whether you want to "save" or "power off" the VM.</blockquote>
 
 
 
<blockquote>The difference between these three options is crucial. They mean:</blockquote>
 
 
 
<blockquote>Save the machine state: With this option, VirtualBox "freezes" the virtual machine by completely saving its state to your local disk. When you later resume the VM (by again clicking the "Start" button in the VirtualBox main window), you will find that the VM continues exactly where it was left off. All your programs will still be open, and your computer resumes operation.</blockquote>
 
 
 
<blockquote>Saving the state of a virtual machine is thus in some ways similar to suspending a laptop computer (e.g. by closing its lid).</blockquote>
 
  
<blockquote>Send the shutdown signal. This will send an ACPI shutdown signal to the virtual machine, which has the same effect as if you had pressed the power button on a real computer. So long as a fairly modern operating system is installed and running in the VM, this should trigger a proper shutdown mechanism in the VM.</blockquote>
+
== KVM ==
  
<blockquote>Power off the machine: With this option, VirtualBox also stops running the virtual machine, but without saving its state.</blockquote>
+
<div class="note">
  
<blockquote>This is equivalent to pulling the power plug on a real computer without shutting it down properly. If you start the machine again after powering it off, your operating system will have to reboot completely and may begin a lengthy check of its (virtual) system disks.</blockquote>
+
This section is for Linux users only.
  
<blockquote>As a result, this should not normally be done, since it can potentially cause data loss or an inconsistent state of the guest system on disk.</blockquote>
+
</div>
  
<blockquote>The "Discard" button in the main VirtualBox window discards a virtual machine's saved state. This has the same effect as powering it off, and the same warnings apply.</blockquote>
 
  
=Instructions for using the KVM image=
+
=== Install KVM ===
  
'''NOTE: this section is for Linux users only'''
+
KVM is part of the Linux kernal, check with your distribution for installation methods.
  
==Install KVM==
 
*There are KVM is apart of the Linux Kernal, check with your distribution for installation methods.
 
===For Ubuntu/Debian===
 
*Run the following to check if your processor supports KVM (if nothing is printed you can not use KVM)
 
<pre>$ egrep '(vmx|svm)' --color=always /proc/cpuinfo</pre>
 
  
*Install KVM
+
==== Debian/Ubuntu ====
<pre>$ sudo aptitude install kvm </pre>
 
  
==Download ICA-Atom kvm ==
+
# Run the following to check if your processor supports KVM (if nothing is printed you can not use KVM)
 +
#: <pre>$ egrep '(vmx|svm)' --color=always /proc/cpuinfo</pre>
 +
# Install KVM
 +
#: <pre>$ sudo aptitude -DR install kvm</pre>
  
*Download ICA-Atom kvm: [http://ica-atom.org/VEbuilds/ica-atom-kvm-2009-12-09.tgz ica-atom-kvm-2009-12-09.tgz] ([http://ica-atom.org/VEbuilds/md5sum.list md5])
 
*Unzip the ICA-atom-kvm file. This should result in the following two files appearing in an ubuntu-kvm folder:
 
**disk0.qcow2
 
**run.sh < this file can be modified to preserve settings
 
  
==Run ICA-Atom in KVM==
+
=== Download KVM appliance ===
*change directory to the location of KVM image,
 
  
<pre>$ cd /path/to/image/ubuntu-kvm/</pre>
+
[http://ica-atom.org/VEbuilds/ica-atom-kvm-2009-12-09.tgz ica-atom-kvm-2009-12-09.tgz] ([http://ica-atom.org/VEbuilds/md5sum.list md5])
  
*start kvm ica-atom instance (-m sets the memory in MB in this case 256MB, -redir tells the host machine to direct port 8000 to 80 on the guest instance)
+
Unzip the KVM appliance. This should result in the following two files appearing in an ubuntu-kvm folder:
 +
* disk0.qcow2
 +
* run.sh < this file can be modified to preserve settings
  
<pre>$ sudo kvm -m 256 -redir tcp:8000::80 disk0.qcow2</pre>
 
  
*wait until the machine is completely booted (you will see Ubuntu shell login)
+
=== Run appliance in KVM ===
  
*ica-atom is now reachable at http://localhost:8000
+
# Change directory to the location of KVM image,
 +
#: <pre>$ cd /path/to/image/ubuntu-kvm</pre>
 +
# Start KVM appliance instance (-m sets the memory in MB in this case 256MB, -redir tells the host machine to direct port 8000 to 80 on the guest instance)
 +
#: <pre>$ sudo kvm -m 256 -redir tcp:8000::80 disk0.qcow2</pre>
 +
# Wait until the machine is completely booted (you will see Ubuntu shell login)
 +
# ICA-AtoM is now reachable at http://localhost:8000/

Revision as of 16:27, 29 April 2010

Please note that ICA-AtoM is no longer actively supported by Artefactual Systems.
Visit https://www.accesstomemory.org for information about AtoM, the currently supported version.

The virtual appliance is a good option if you want to try ICA-AtoM on your personal computer but are having trouble installing the web server or database server that a web-based application like ICA-AtoM requires.

What is it?

A virtual appliance is one file containing a minimal operating system and server software. You can "play" this file with a free virtual machine player like VMware Player or Sun VirtualBox.

When you play the virtual appliance, it starts the second operating system and server software inside the player, on top of your existing operating system. There is no need to reboot or install anything except the player. You can then connect to the web server running inside the virtual machine player with your regular web browser.


Minimum hardware requirements

  • Processor: Pentium IV or higher
  • RAM: 256B unallocated memory
  • Hard Drive space: a minimum of 1GB to test the system on a small scale (i.e. use the available test files or import a small set of test files)


vmserver

Install Sun Virtual Box

There are VirtualBox versions available for every major operating system

Download and install Sun VirtualBox, http://www.virtualbox.org/wiki/Downloads


Download vmserver appliance

ica-atom-vmserver-2009-12-09.tgz (md5)

Unzip the vmserver appliance. This should result in the following two files appearing in an ubuntu-vmserver folder:

  • ubuntu.vmx
  • disk0.vmdk


Setup appliance in VirtualBox

Add vmserver appliance to VirtualBox

  1. Open the Sun VirtualBox virtual machine.
  2. 0-new.pngClick "New"
  3. 1-Start-vmserver-setup.pngClick "Next"
  4. 2-set-name-vmserver-setup.pngEnter a Name e.g. "ICA-AtoM"
  5. Set OS type as operating system "Linux" version "Ubuntu"

This setting refers to the operating system that is run inside the virtual appliance, not your own host operating system

  1. Click "Next"
  2. 3-set-mem-vmserver.pngSet Base Memory Size to "256MB"
  3. Click "Next"
  4. 4-use-existing.pngSelect Use Existing Hard Disk
  5. 5-click-folder-icon.pngClick Folder/Arrow icon for Virtual Media Manager
  6. 6-virtual-media-manger-add.pngClick "Add"
  7. Browse to location of disk0.vmdk and click select/Open (ubuntu-vmserver folder)
  8. 7-select-disk.pngHighlight newly added disk and click select
  9. 8-finish-add-vmserver.pngClick Next
  10. 9-finish.pngReview selections, click "Finish"
  11. ICA-AtoM should be visible on the left hand side of VirtualBox
  12. Right click ICA-AtoM in VirtualBox
  13. 0-settings.pngChoose Settings
  14. 2-selectnetwork.pngSelect Network
  15. 3-select-host-only.pngChoose "Host-Only Adapter" in "Attached to" drop down
  16. 5-click.OK.pngClick OK


Start the machine

  1. 0-start.pngClick Start
  2. 1-complete-boot.pngWait for boot to complete. You do not need to enter the Ubuntu password (bottom of the boot-up screen)
  3. 3-ica-atom.pngOpen your web browser and go to the following URL: http://192.168.56.101/
  4. Your web browser is now communicating directly with the server inside the virtual appliance, just as if you were pointing your web browser to http://ica-atom.org/ or any other online website
  5. You will now complete the basic ICA-AtoM installation steps on the copy of the application running inside the virtual appliance
  6. 4-ica-atom.pngClick the 'Continue' link on the System Checks page
  7. 5-ica-atom.pngDon't adjust the default database settings. Accept the default database name ("qubit") and user ("root"). Just press "Save and continue"
  8. Give your new ICA-AtoM site a title and (optional) site description
  9. Create an administrator account for yourself, completing the mandatory username, email, and password fields
  10. 6-ica-atom.pngClick "Save and continue"
  11. Congratulations, you have a running copy of ICA-AtoM! See the user manual for instructions on how to use the software
  12. Be sure to follow the turn off virtual appliance instructions below when you are done so that you save any data you have entered and avoid starting a new ICA-AtoM installation
  13. The next time you want to use your ICA-AtoM virtual appliance, just open the Sun Virtual Box player, "Start" the ICA-AtoM virtual appliance and point your browser to, http://192.168.56.101/


Turn off virtual appliance

  1. 7-ica-atom.pngAt the end of your session, turn off the VirtualBox virtual machine by going to Machine > Close
  2. 8-ica-atom.pngSelect the "Save the machine state" option

If you don't select the "Save the machine state" option you will lose any data you have entered and have to complete the ICA-AtoM installation anew the next time you start the virtual appliance.

This is from the VirtualBox help manual:

3.4.3. Saving the state of the machine

When you click on the "Close" button of your virtual machine window (at the top right of the window, just like you would close any other window on your system) (or press the Host key together with "Q"), VirtualBox asks you whether you want to "save" or "power off" the VM.

The difference between these three options is crucial. They mean:

Save the machine state: With this option, VirtualBox "freezes" the virtual machine by completely saving its state to your local disk. When you later resume the VM (by again clicking the "Start" button in the VirtualBox main window), you will find that the VM continues exactly where it was left off. All your programs will still be open, and your computer resumes operation.

Saving the state of a virtual machine is thus in some ways similar to suspending a laptop computer (e.g. by closing its lid).

Send the shutdown signal. This will send an ACPI shutdown signal to the virtual machine, which has the same effect as if you had pressed the power button on a real computer. So long as a fairly modern operating system is installed and running in the VM, this should trigger a proper shutdown mechanism in the VM.

Power off the machine: With this option, VirtualBox also stops running the virtual machine, but without saving its state.

This is equivalent to pulling the power plug on a real computer without shutting it down properly. If you start the machine again after powering it off, your operating system will have to reboot completely and may begin a lengthy check of its (virtual) system disks.

As a result, this should not normally be done, since it can potentially cause data loss or an inconsistent state of the guest system on disk.

The "Discard" button in the main VirtualBox window discards a virtual machine's saved state. This has the same effect as powering it off, and the same warnings apply.


KVM

This section is for Linux users only.


Install KVM

KVM is part of the Linux kernal, check with your distribution for installation methods.


Debian/Ubuntu

  1. Run the following to check if your processor supports KVM (if nothing is printed you can not use KVM)
    $ egrep '(vmx|svm)' --color=always /proc/cpuinfo
  2. Install KVM
    $ sudo aptitude -DR install kvm


Download KVM appliance

ica-atom-kvm-2009-12-09.tgz (md5)

Unzip the KVM appliance. This should result in the following two files appearing in an ubuntu-kvm folder:

  • disk0.qcow2
  • run.sh < this file can be modified to preserve settings


Run appliance in KVM

  1. Change directory to the location of KVM image,
    $ cd /path/to/image/ubuntu-kvm
  2. Start KVM appliance instance (-m sets the memory in MB in this case 256MB, -redir tells the host machine to direct port 8000 to 80 on the guest instance)
    $ sudo kvm -m 256 -redir tcp:8000::80 disk0.qcow2
  3. Wait until the machine is completely booted (you will see Ubuntu shell login)
  4. ICA-AtoM is now reachable at http://localhost:8000/