export/clone problems

This is for discussing general topics about how to use VirtualBox.
Post Reply
jharkavy
Posts: 2
Joined: 23. Jul 2009, 14:19
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win,Linux

export/clone problems

Post by jharkavy »

VB 3.0.2 r49928
Host OS: Windows XP SP3
Guest OS: Windows 2003 migrated from M$ VirtualPC (VHD file format)

Whenever I attempt any of GUI Export, vboxmanage export, or vboxmanage clonehd I get some form of VERR_INVALID_PARAMETER error. (directories and file names changed to protect the innocent)

command line export

Code: Select all

C:\>vboxmanage export FOO --output .\FOO.ovf
VirtualBox Command Line Management Interface Version 3.0.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

0%...FAILED
ERROR: Could not create the clone hard disk 'C:\FOO.vmdk' (VERR_INVALID_PARAMETER)
Details: code E_FAIL (0x80004005), component Appliance, interface IAppliance, callee <NULL>
Context: "Write" at line 908 of file VBoxManageImport.cpp
The GUI gets the same error as above when doing an Export.

command line clone

Code: Select all

C:\>vboxmanage clonehd --format vhd FOO.vhd BAR.vhd
VirtualBox Command Line Management Interface Version 3.0.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

0%...FAILED
Error: failed to clone hard disk. Error message: Could not create the clone hard disk 'C:\BAR.vhd' (VERR_INVALID_PARAMETER)
Doesn't matter what "--format" I pass, they all get the same result.

The appliance is not running and has no snapshots. The only thing "odd" about it is that the disk inside the appliance uses full-disk encryption (Encryption Plus). I can copy the VHD file and use the "internalcommands sethduuid" command to mount it to another appliance.

Ideas? Thoughts? Known Issues? Something New & Unique?

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

Re: export/clone problems

Post by Perryg »

Exporting or Cloning to a VHD file does not work. I realize that it should but it does not.
You can export it to the VMDK format but I have had zero success trying to do this to VHD.
If this is an issue for you you need search bugtracker and add yourself to a ticket. (bugtracker link is at the bottom of my post)

Of course the fact that it is encrypted with (Encryption Plus) may be aiding in the problem.

This one indicates that it is supposed to be fixed in the next release http://www.virtualbox.org/ticket/4080
Maybe it will work soon.
jharkavy
Posts: 2
Joined: 23. Jul 2009, 14:19
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win,Linux

Re: export/clone problems

Post by jharkavy »

Well, it's nice to know it's not just me.

It's not the end of the world if I can't do this now. I was attempting to put together a library of VMs that our developers can pull down and use relatively easily. As a workaround (and a simple one at that) we're doing the copy-the-vhd/internalcommands-sethduuid/create-new-machine dance. We can certainly get by with that.

By "export it to the VMDK format" do you mean to somehow use vboxmanage createfromraw or does this have to be done from someplace else?

Yes, an encrypted hard disk could be an issue, but it's a fact of life here. All hard drives and HD images, both real and virtual, that contain proprietary application code *must* be full-disk encrypted.

again - thanks mucho.
Post Reply