Issue cloning vhds

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
shapeshed
Posts: 6
Joined: 2. Mar 2009, 16:06
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: XP, Vista, Windows 7, Ubuntu 9.04
Location: London
Contact:

Issue cloning vhds

Post by shapeshed »

Hi there

I have an issue cloning vhds. I have searched these forums for advice but no luck.

Version 2.14, OSX 10.5.6

To clone first I get the UUID

Code: Select all

orwell:HardDisks george$ VBoxManage list hdds
VirtualBox Command Line Management Interface Version 2.1.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
UUID:         bff844c3-dd5a-4958-a98b-1a18c08674db
Format:       VDI
Location:     /Users/george/Library/VirtualBox/HardDisks/Windows 7 Beta 1.vdi
Accessible:   yes

UUID:         9a68ec85-951e-4791-b616-22a92f762134
Format:       VDI
Location:     /Users/george/Library/VirtualBox/HardDisks/Ubuntu 8.10.vdi
Accessible:   yes
Usage:        Ubuntu 8.10 (UUID: 07ce8547-16ac-4dc1-926f-37144839b57c)

UUID:         b6202eec-1791-b921-4c0c-4306e34cc487
Format:       VHD
Location:     /Users/george/Library/VirtualBox/HardDisks/XP SP3 with IE6 2008-Dec.vhd
Accessible:   yes

I then use VBoxManage to make the clone

Code: Select all

orwell:HardDisks george$ VBoxManage clonehd b6202eec-1791-b921-4c0c-4306e34cc487 "/Users/george/Library/VirtualBox/HardDisks/myClone.vhd" -format VHD
This gives me the following error

Code: Select all

VirtualBox Command Line Management Interface Version 2.1.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

[!] FAILED calling srcDisk->CloneTo(dstDisk, progress.asOutParam()) at line 391!
[!] Primary RC  = VBOX_E_INVALID_OBJECT_STATE (0x80BB0007) - Current object state prohibits operation
[!] Full error info present: true , basic error info present: true 
[!] Result Code = VBOX_E_INVALID_OBJECT_STATE (0x80BB0007) - Current object state prohibits operation
[!] Text        = Storage for the medium '/Users/george/Library/VirtualBox/HardDisks/myClone.vhd' is already created
[!] Component   = HardDisk2, Interface: IHardDisk2, {ed6e2525-c2fd-42a4-917a-7a9045ac9e15}
[!] Callee      = IHardDisk2, {ed6e2525-c2fd-42a4-917a-7a9045ac9e15}

The machine is in a powered off state. Is this a bug or a syntax error?

Thanks for any help!
RSalameh
Posts: 25
Joined: 15. Mar 2009, 12:23

Re: Issue cloning vhds

Post by RSalameh »

I am having the exact same problem except on a Windows Vista 64 bit host.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Issue cloning vhds

Post by vbox4me2 »

It looks like your trying to copy the source onto the destination since the error says it already exists.
RSalameh
Posts: 25
Joined: 15. Mar 2009, 12:23

Re: Issue cloning vhds

Post by RSalameh »

Actually, I just realized that the VBoxManage clonehd tool is not happy when you use the UUID as a parameter. If I specify the path and filename, it works fine. Thanks for the response. Although, this brings up a new issue for which I'll create a new post.
Post Reply