VBoxManage clonehd can't handle relative paths

Bug #675043 reported by Peter Petrakis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Virtualbox
Confirmed
Unknown
virtualbox-ose (Ubuntu)
New
Undecided
Unassigned

Bug Description

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

Changed in virtualbox:
status: Unknown → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.