Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The file is located in Program Files/Oracle/VirtualBox/VBoxManage.exe and is used as a command-line interface with VirtualBox.

I'm using it to convert the .vdi image to a .vdmk (for VMware).

http://scottlinux.com/2011/06/24/convert-vdi-to-vmdk-virtualbox-to-vmware/

Here's an example script:

$ VBoxManage list hdds

But where do I run this command? In Windows cmd? I tried both in cmd and in Linux but I can't figure it out.

share|improve this question

closed as off-topic by kce, Jacob, Ward, mdpc, Nathan C May 21 at 14:34

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – kce, Jacob, Ward, Nathan C
If this question can be reworded to fit the rules in the help center, please edit the question.

    
What is the error message you see ? –  Iain Mar 1 '12 at 20:34
    
cmd.exe worked, I just had to navigate to the VirtualBox folder, I couldn't run the program from root. –  AlxVallejo Mar 1 '12 at 20:47

3 Answers 3

up vote 5 down vote accepted

It's a pretty sure bet that running an exe file in Linux won't work. In Windows you do run it from the command prompt. If you get a message about the command not being found then either add the path to the command to your PATH environment variable or specify the full path to the command.

If the command runs but it's not doing what you think it should be doing then read the documentation.

share|improve this answer
  1. From the Windows7 start menu go to search programs and files folder.
  2. Type in CMD. Do not press enter.
  3. Right Click on the CMD icon and select copy.
  4. Navigate to c:\"Program Files\Oracle\VirtualBox\
  5. Right click in the window and select paste.

You should now be able to use VboxManage from the CMD window. Try typing in VboxManage /? If you see the help list then your on your way.

share|improve this answer
    
I'm not overly familiar with Windows but this smells like a bad idea. Surely there's a better way to change your working directory on the Windows command line. –  Ladadadada May 19 at 16:27

You need to either use the whole path for the command

c:\"Program Files\Oracle\VirtualBox\VBoxManage.exe" list hdds

or cd to c:\Program Files\Oracle\VirtualBox then

VBoxManage.exe" list hdds

or you can add add the c:\Program Files\Oracle\VirtualBox directory to your PATH

PATH=%PATH%;c:\Program Files\Oracle\VirtualBox

and then you can run vboxmanage from anywhere

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.