Deprecated. This material represents early efforts and may be of interest to historians. It doe not describe current VIVO efforts.
note|Some of the content on this page refers to VIVO 1.2 and earlier releases. Please see VIVO v1.3 VirtualBox Appliance for additional information.
...
Tomcat runs on port 8080. To browse from the host machine, after installing the machine, you will have to run the following commands in a console.
No Format |
---|
VBoxManage setextradata <guestname> "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/HostPort" 8080
VBoxManage setextradata <guestname> "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/GuestPort" 8080
VBoxManage setextradata <guestname> "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/Protocol" TCP
|
...
To map host port 2222 (for example) to guest port 22, run the following commands in a console, replacing <guestname> with the name of your appliance (by default vivo-rel-1.2-vm):
No Format |
---|
VBoxManage setextradata <guestname> "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
VBoxManage setextradata <guestname> "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
VBoxManage setextradata <guestname> "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
|
Then you can ssh into the appliance using the following command:
No Format |
---|
ssh -l vitro -p 2222 localhost
|
...
From the host computer, you can copy files to the virtual appliance as follows:
No Format |
---|
scp -P 2222 <filename> vitro@localhost:<Destination>
|
...
A convenient bash script for those who find themselves reinstalling the virtual appliance repeatedly is this:
No Format |
---|
VBoxManage setextradata $1 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/HostPort" 8080
VBoxManage setextradata $1 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/GuestPort" 8080
VBoxManage setextradata $1 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/Protocol" TCP
VBoxManage setextradata $1 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
VBoxManage setextradata $1 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
VBoxManage setextradata $1 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
|
...
The log files catalina.out and vivo.all.log are not in the same folder (as is the case with some VIVO installations). Their locations are:
No Format |
---|
/var/log/tomcat6/catalina.out
/usr/share/tomcat6/logs/vivo.all.log
|