Nope, sorry, it does not work.

I tried this one:
--------------------------------
VBoxManage closemedium disc /root/.VirtualBox/HardDisks/melian.vdi
VirtualBox Command Line Management Interface Version 3.0.12
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Usage:

VBoxManage closemedium      disk|dvd|floppy <uuid>|<filename>


Syntax error: Invalid parameter '/root/.VirtualBox/HardDisks/melian.vdi'
--------------------------------

I tried with uid, name, name with path, etc. nothing worked.



And this is the message I get, when trying to create a disc, even if the matching entry was removed in VirtualBox.xml:
--------------------------------
VBoxManage createhd -filename "melian.vdi" -size 81920 -register
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%...FAILED
Error: failed to create hard disk. Error message: Cannot register the hard disk '/root/.VirtualBox/HardDisks/melian.vdi' with UUID {d8e2f146-84a7-4e2a-846c-ebb52b47a055} because a hard disk '/root/.VirtualBox/HardDisks/melian.vdi' with UUID {809d0bb8-d50b-4876-9867-6f236aa1434f} already exists in the media registry ('/root/.VirtualBox/VirtualBox.xml')
--------------------------------


I was search for a counterpart to "createhd", something like "removehd"...


Thomas






Geoff Nordli schrieb:
Hi Thomas.

What about this:

VBoxManage closemedium      disk|dvd|floppy <uuid>|<filename>
                            [--delete]

Does that work?

Geoff

-----Original Message-----
From: vbox-users-boun...@virtualbox.org
[mailto:vbox-users-boun...@virtualbox.org] On Behalf Of Thomas Trepper
Sent: Saturday, November 28, 2009 9:05 AM
To: Robert Bronsdon
Cc: vbox-users@virtualbox.org
Subject: Re: [vbox-users] VBoxManage-Question

Yes, I tried that,

first unregistering the machine (with --delete) and after that deleting the vdi and removing the matching entry from the xml. But - when I then try to recreate the disc (with the exact name) it tells me, that a vdi with that name (and another uid - the old one) still exists...

So to be more precice - how can I delete and remove a disc from the media-library in linux-console-mode?

Thanks a lot,

Thomas






Robert Bronsdon schrieb:
On Sat, 28 Nov 2009 16:45:56 -0000, Thomas Trepper <thomas.trep...@blueclaim.com> wrote:

Hi all,

I am trying to delete (removing from media-library) a vdi-harddisc-image in console-mode, but I do not get it...
I am using 3.0.12. Can anybody point me in the right direction please?

Thanks a lot and best regards,
Presuming your on *nix you can just delete the config file and the .vdi file.

They are under ~/.Virtualbox





_______________________________________________
vbox-users mailing list
vbox-users@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-users


_______________________________________________
vbox-users mailing list
vbox-users@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-users

_______________________________________________
vbox-users mailing list
vbox-users@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-users

Reply via email to