← Back to team overview

registry team mailing list archive

[Bug 675043] [NEW] VBoxManage clonehd can't handle relative paths

 

Public bug reported:

Binary package hint: virtualbox-ose

Trivial to reproduce:


$ VBoxManage clonehd --format RAW  VirtualBox/HardDisks/ubuntu-lucid-amd64.vdi ubuntu-lucid.img
Sun VirtualBox Command Line Management Interface Version 3.1.6_OSE
(C) 2005-2010 Sun Microsystems, Inc.
All rights reserved.

ERROR: Cannot register the hard disk '/home/ppetraki/VirtualGuests/VirtualBox/HardDisks/ubuntu-lucid-amd64.vdi' with UUID {96e55145-4df0-4660-98de-1fd68041e4a6} because a hard disk '/home/ppetraki/.VirtualBox/HardDisks/ubuntu-lucid-amd64.vdi' with UUID {96e55145-4df0-4660-98de-1fd68041e4a6} already exists in the media registry ('/home/ppetraki/.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 628 of file VBoxManageDisk.cpp
<05:56:10>VirtualGuests$

It's one of those bugs that are a google away, but of course, no bug
filed :)

According to the upstream tracker, this tool can't handle relative paths, the work around is to
use absolute paths.

$ VBoxManage clonehd --format RAW /home/ppetraki/.VirtualBox/HardDisks/Win7.vdi `pwd`/win7.img
Sun VirtualBox Command Line Management Interface Version 3.1.6_OSE
(C) 2005-2010 Sun Microsystems, Inc.
All rights reserved.

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'RAW'. UUID: 9723edee-d421-4636-9bb5-83f84c7fe79b

** Affects: virtualbox
     Importance: Unknown
         Status: Unknown

** Affects: virtualbox-ose (Ubuntu)
     Importance: Undecided
         Status: New

** Bug watch added: Virtualbox Trac #7458
   http://www.virtualbox.org/ticket/7458

** Also affects: virtualbox via
   http://www.virtualbox.org/ticket/7458
   Importance: Unknown
       Status: Unknown

-- 
VBoxManage clonehd can't handle relative paths
https://bugs.launchpad.net/bugs/675043
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for Virtualbox.



Follow ups

References