Page 1 of 1

Clone fails on VirtualBox

Posted: 3. Oct 2015, 13:25
by testmore
I am running VirtualBox (5.02) on Windows7 with Linux as the guest OS.

I am trying to clone using the same name as a previous instance. Below is what I get. I removed it using the application. If I give it a new name it seems to work fine. But, I need to have it set to the original name. Any ideas what I'm doing wrong?

Failed to clone the virtual machine OEL.

Cannot register the hard disk 'C:\Users\testuser\VirtualBox VMs\OEL 6.4\OEL 6.4.vdi' {c9c95188-b8f0-4fa2-906b-6b915768f079} because a hard disk 'C:\Users\testuser\VirtualBox VMs\OEL 6.4\OEL 6.4.vdi' with UUID {dbfad16b-f76e-48ed-81d2-f838daa5f49d} already exists.

Result Code: E_INVALIDARG (0x80070057)
Component: VirtualBoxWrap
Interface: IVirtualBox {0169423f-46b4-cde9-91af-1e9d5b6cd945}

I tried this command and still can't do a clone.

VBoxManage internalcommands sethduuid "C:\Users\testuser\VirtualBox VMs\OEL 6.4\OEL 6.4.vdi"

Re: Clone fails on VirtualBox

Posted: 3. Oct 2015, 13:29
by mpack
How exactly are you making the clone?

And is it actually a clone you are making, or a straight copy? The point of a clone is to have the original and the clone be independant of each other so they can run on the same host. They can't be independant if the have the same name or UUID as an existing VM.

And why would you want to control the name of the clone anyway? You create the clone, after which you have two VMs, one of which has the name you want - and is the one you use.