Page 1 of 1

how to read correctly a vdi file with virutal box?

Posted: 12. Feb 2011, 13:29
by langlais
hello,

I am trying to launch virtual box to read a vdi file (openbravo database) but it doesn't work. Can somebody help me??? Thanks!

Re: how to read correctly a vdi file with virutal box?

Posted: 13. Feb 2011, 00:46
by BillG
.vdi is a virtual hard disk format, like Microsoft's .vhd and VMWare's .vmdk . So you have a virtual hard disk containing a database. To read it you need a virtual machine with an operating system installed. A .vdi file looks like an HDD to a virtual machine.

Create a vm and install an operating system on a new .vdi . When this is working, attach your database .vdi as a second virtual hard disk.

Re: how to read correctly a vdi file with virutal box?

Posted: 13. Feb 2011, 17:13
by scottgus1
I don't know a thing about openbravo, but in a quick google search I found this page: http://wiki.openbravo.com/wiki/ERP/2.50 ... _Appliance

It contains the following instructions:

Code: Select all

VirtualBox appliance

    * Decompress OpenbravoERP-2.50MP24-x86.virtualbox.gz, this will result in the OpenbravoERP-2.50MP24-x86.virtualbox.vdi file.
    * Open VirtualBox and click on Machine -> New. Enter Openbravo ERP Community in the Name and select Linux 2.6 in OS Type. Click on Next.
    * Select 1024MB of Base Memory Size. Click on Next.
    * Click on Existing to add the image. Then Add, and browse to select the OpenbravoERP-2.50MP24-x86.virtualbox.vdi file. Click on Select, then on Next and finally in Finish. 

In order to use Openbravo ERP it is necessary to access the virtual appliance through the network. There are two options here:

    * Use VirtualBox version 2.2 or higher, edit the preferences of the virtualmachine you just created and select Bridge in the network settings. This is the recommended method.
    * Forward (NAT) the http port (80) from the virtual appliance to a random port (8000) in the host machine. This is easier to do than the previous method, and it is recommended for testing. Run the following commands: 

$ VBoxManage setextradata "Openbravo ERP Community" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttpd/HostPort" 8000
$ VBoxManage setextradata "Openbravo ERP Community" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttpd/GuestPort" 80
$ VBoxManage setextradata "Openbravo ERP Community" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttpd/Protocol" TCP

Where "Openbravo ERP Community" matches with the name given to the appliance in its creation.

Afterwards it is necessary to shut down VirtualBox and start the appliance again. Then, to access Openbravo ERP enter http://localhost:8000 in a web browser.
I think the .vdi you're trying to open IS the operating system, so you don't need another OS. You just need to attach the .vdi disk to a properly configured machine, as the instructions list.

Re: how to read correctly a vdi file with virutal box?

Posted: 14. Feb 2011, 02:05
by BillG
Very good. I should have checked that myself! Looks like he already had full instructions.