[Solved] How do I use VboxManage?

This is for discussing general topics about how to use VirtualBox.
Post Reply
Dick Dastardly
Posts: 3
Joined: 5. Sep 2009, 14:56
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: xp

[Solved] How do I use VboxManage?

Post by Dick Dastardly »

Hello all,

New to VirtualBox, just getting to grips with it.

I have created a XP VM and I want to clone it. Doesnt look like there is a way to do this with the VirtualBox GUI.
I have tried doing so by exporting and then importing under a new name but keep getting BSODs with the imported .vdmk file VM. The original VM I created is perfectly fine. Will go into that in more detail at some point on the correct sub-forum.

I gather that the easiest way to clone it is to use Vboxmanage. How do I actually run it under Vista?
I tried to run a command window but can't get to the right directory as it doesnt handle the long filenames.

I know you need to type the Vboxmanage clonehd [parameter, parameter] etc. but how do I actually do this under Vista??
I've looked around the manual and the websites for the answer, no luck so far.

Thanks for any pointers....
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How do I use VboxManage?

Post by Perryg »

There are a lot of pointers in the forum. You just need to know how to find them.
I suggest using Google and the easiest way it to type your keywords followed by site:forums.virtualbox.org. See example below.
clone vm site:forums.virtualbox.org
Dick Dastardly
Posts: 3
Joined: 5. Sep 2009, 14:56
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: xp

Re: How do I use VboxManage?

Post by Dick Dastardly »

Thanks for that.

Am looking for a way to actually run Vboxmanage on my machine.... once I can do that then the rest should be easy.

Under Vista, do I open a Command window and somehow navigate to c:\Program Files\sun\.. etc etc ?
I try to do this by using the old-style dos commands but it doesn't recofnise an attempt to CD c:\Program Files - obviously doesnt handle the long file names.

Still looking.......
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How do I use VboxManage?

Post by Perryg »

Should not be a problem. VBoxManage is just a CLI for the program. A few things that you need to remember is that you either need the path to the VBoxManage stated in the path statement of Vista or you need to be in the directory where the program is stored. Usually in your profile and .virtualbox
Then the other thing to remember is if you have spaces in the file names you need to put them in "" like the example below.

VBoxManage clonehd "Windows XP" "Windows XP 2"
Dick Dastardly
Posts: 3
Joined: 5. Sep 2009, 14:56
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: xp

Re: How do I use VboxManage?

Post by Dick Dastardly »

It's OK, I sorted it.

I wrote a batch file with the command in it, placed it in the Program Files/sun/vbox folder and ran it from there. Sorted.

Had forgotten about batch files. :D
Post Reply