Clone vdi image (.vdi) without error

Clone vdi image (.vdi) without the UID error.

Use the below command via terminal.

VBoxManage clonevdi <ImageYouWantToCopy.vdi> <DestinationImage.vdi>

If you get below error, that means one of your VM is using the .vdi image. Shutdown that VM and run the command again.

VBoxManage: error: Failed to lock source media 'ImageYouWantToCopy.vdi'

VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Medium, interface IMedium, callee nsISupports

VBoxManage: error: Context: "CloneTo(dstDisk, ComSafeArrayAsInParam(l_variants), NULL, progress.asOutParam())" at line 740 of file VBoxManageDisk.cpp

Published by


A strong believer of: 1. Knowledge is power 2. Progress comes from proper application of knowledge 3. Reverent attains wisdom 4. For one's own salvation, and for the welfare of the world

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s