Professional Documents
Culture Documents
Oavirtbox-Readme Odt
Oavirtbox-Readme Odt
With the following lines to post into your xml configuration file (location outlined in the article)
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort"
value="2222"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort"
value="22"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol"
value="TCP"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/HostPort"
value="8888"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/GuestPort"
value="80"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/Protocol"
value="TCP"/>
You can change the '222' host port value to the normal 22 if desired. Similarly change the hostport to 80
from 8888 for http values.
These steps were taken while running VirtualBox© 3.1.2 on my virtual host test server. Any
reasonably up-to-date version will do as long as it's version 3.something.
Don't change the filename of the downloaded vmdk file because that filename is also embedded in the
ovf file, and import won't work unless it can find the vmdk.
Once you import and start the new virtual OpenAdmin, login as root.
Configure Networking
You should run 'ifconfig' to see if you have networking established. If you only see the loopback
interface 'lo', you may need to check and see where your network interface is.
will show you if your interfaces is at eth0 or has been reassigned (renamed) during booting.
In my case, I had to rename eth0 to eth1 in the file /etc/network/interfaces then restart the network.
nano /etc/network/interfaces
/etc/init.d/networking restart
The right format for giving your inteface a static IP of 192.168.1.70 where your router is at the gateway
address of 192.168.1.1 is:
auto eth1
iface eth1 inet static
address 192.168.1.70
netmask 255.255.255.0
gateway 192.168.1.1
To use a static IP, you also need to change the network configuration in the VirtualBox settings on the
host for this virtual machine to “Bridged Adapter” and select the address for your host computer's
network card in the drop down menu.
Without a gui the mouse is worthless for copying and pasting which I use a lot, so gpm (apt-get install
gpm) is helpful. But, you get copy and paste by accessing the installed guest from another computer via
ssh.
MS Windows SSH
If you are using a Windows host, Windows does not come with an ssh client (needed to access the
guest shell over the network. I am familiar with and have used PuTTY, which is an adequate, free, ssh
client. Install and configure PuTTY or your choice of alternatives. PuTTY can be downloaded from:
http://www.chiark.greenend.org.uk/~sgtatham/putty/
On an Debian-based (i.e. Ubuntu) host the gust additions file is found in /usr/share/virtualbox
On a Gentoo host the file is at: /opt/VirtualBox/additions/
If you are on a Windows computer and can't figure this out yourself, see the last item “TODO” after
this section.
mkdir /mnt/iso
mount -o loop VBoxGuestAdditions.iso /mnt/iso
cd /mnt/iso
sftp tech@address_of_virtual_openadmin_server (enter password abc123)
put VBoxLinuxAdditions-x86.run
bye
From the VirtualBox settings screen with the OpenAdmin virtual machine powered off, share a
directory such as /home/vbox and give it the name vbox.
Power up the guest, then, in the guest fstab, add the entry for this shared directory as follows:
mkdir /mnt/vbox
nano /etc/fstab
vbox /mnt/vbox vboxfs uid:username 00
then this directory will be automatically mounted at boot time and you will be able to copy files to and
from the host machine from within the guest machine.
The reason for the uid: entry is for permissions. Change “username” to the actual username of the
owner of the directory /home/vbox on the host computer. I DO NOT KNOW how this aspect of
sharing works with a Windows host.
Each time you upgrade VirtualBox, you should also upgrade any installed guest additions. If not,
eventually some things will break.
To Do
Installing the guest additions from a Windows host computer VirtualBox installation. In the meantime,
you can download guest additions files from: http://download.virtualbox.org/virtualbox/ directoy to
your new OpenAdmin virtual machine using the shell command:
http://download.virtualbox.org/virtualbox/3.1.2/VBoxGuestAdditions_3.1.2.iso