how to read correctly a vdi file with virutal box?

Discussions about using Windows guests in VirtualBox.
Post Reply
langlais
Posts: 1
Joined: 12. Feb 2011, 13:24
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: 4.0.2

how to read correctly a vdi file with virutal box?

Post 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!
BillG
Volunteer
Posts: 5102
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

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

Post 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.
Bill
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

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

Post 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.
BillG
Volunteer
Posts: 5102
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

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

Post by BillG »

Very good. I should have checked that myself! Looks like he already had full instructions.
Bill
Post Reply