VirtualBox

Opened 14 years ago

Closed 14 years ago

#5497 closed defect (fixed)

VBoxManage clonehd fails on Leopard Snow

Reported by: macala Owned by:
Component: virtual disk Version: VirtualBox 3.0.10
Keywords: clonehd Cc:
Guest type: Windows Host type: Mac OS X

Description (last modified by Frank Mehnert)

VBoxManage clonehd fails at start of command: VBoxManage clonehd WinXP.vdi WinXP1.vdi with the following message:

ERROR: Cannot register the hard disk
  '/Users/adamlasota/VirtualBox/Czyste maszyny/WinXP.vdi'
  with UUID {af69d29a-11cb-4f13-9af5-129db6fe5c40} because a hard disk '/Users/Shared/WinXP.vdi'
  with UUID {af69d29a-11cb-4f13-9af5-129db6fe5c40} already exists in the media registry
  ('/Users/adamlasota/Library/VirtualBox/VirtualBox.xml')

Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox,
  callee nsISupports Context: "OpenHardDisk?(Bstr(szFilenameAbs),
  AccessMode?_ReadWrite, false, Bstr(""), false, Bstr(""), srcDisk.asOutParam())"
  at line 624 of file VBoxManageDisk.cpp

Attachments (1)

list hdds.rtf (1.7 KB ) - added by macala 14 years ago.
I attached VBoxManage list hdds report

Download all attachments as: .zip

Change History (12)

comment:1 by macala, 14 years ago

The same problem on VirtualBox 3.0.12

comment:2 by Frank Mehnert, 14 years ago

Description: modified (diff)

Please attach the output of

VBoxManage list hdds

to this ticket (use the Attach button please).

comment:3 by Frank Mehnert, 14 years ago

Cc: lasota.adam@… removed

by macala, 14 years ago

Attachment: list hdds.rtf added

I attached VBoxManage list hdds report

comment:4 by Klaus Espenlaub, 14 years ago

Workaround: use absolute path names instead of just file names (or relative path names).

in reply to:  4 comment:5 by macala, 14 years ago

Replying to klaus:

Workaround: use absolute path names instead of just file names (or relative path names).

Below You find effect after used absolute path names instead just file names:

ERROR: Cannot register the hard disk '/Users/adamlasota/VirtualBox/Czyste maszyny/SQL2008.vhd' with UUID {53d5a9c9-23ff-dd11-80f1-a9443e0786e6} because a hard disk '/Users/adamlasota/VirtualBox/HardDisks/Srv2008.vhd' with UUID {53d5a9c9-23ff-dd11-80f1-a9443e0786e6} already exists in the media registry ('/Users/adamlasota/Library/VirtualBox/VirtualBox.xml') Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports Context: "OpenHardDisk(src, AccessMode_ReadWrite, false, Bstr(""), false, Bstr(""), srcDisk.asOutParam())" at line 627 of file VBoxManageDisk.cpp

comment:6 by macala, 14 years ago

The command was : VboxManage clonehd '/Users/adamlasota/VirtualBox/Czyste maszyny/SQL2008.vhd' '/Users/adamlasota/VirtualBox/Czyste maszyny/SQL2008.vdi' --format VDI

comment:7 by Klaus Espenlaub, 14 years ago

I'm very puzzled. Apparently you have the image already registered, but VirtualBox fails to find it when looking for it by name, and thus tries to register it again. If I only could reproduce this. Spaces in filenames are certainly not the issue.

A possible workaround would be to unregister the vhd file, but that's just a guess.

in reply to:  7 comment:8 by macala, 14 years ago

Replying to klaus:

I'm very puzzled. Apparently you have the image already registered, but VirtualBox fails to find it when looking for it by name, and thus tries to register it again. If I only could reproduce this. Spaces in filenames are certainly not the issue.

A possible workaround would be to unregister the vhd file, but that's just a guess.

I don't know how VirtualBox try to find it (by name or UUID). Fact is this command worked on earlier version. At this moment I makes the new copy of VHD by copying manually the VHD file and using the command "VBoxManage internalcommands setvdiuuid" which works without any problems.

comment:9 by Klaus Espenlaub, 14 years ago

The algorithm to locate the file hasn't changed lately, which is why I'm so puzzled. VirtualBox first tries to interpret the parameter as a UUID, which obviously fails. Then it tries to find the image by name, and that always works for me when I specify an absolute path.

The error you get happens after the unexpected failure to find the image.

Do you remember which VirtualBox version worked for you? Maybe there's a subtle change which has some unintended side effect on OSX...

comment:10 by macala, 14 years ago

Few days ago i installed the update for Leopard Snow. Today I noticed that VBoxManage command work correctly. See below. I don't know by who but the problem is resolved.

MyMac:Czyste maszyny adamlasota$ VBoxManage clonehd WinXP.vdi WinXP1.vdi VirtualBox Command Line Management Interface Version 3.0.12 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved.

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Clone hard disk created in format 'VDI'. UUID: 419fc9de-7197-4fb4-a5bf-4f2c63a6c1d7

comment:11 by Sander van Leeuwen, 14 years ago

Resolution: fixed
Status: newclosed

Thanks for the feedback.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use