virtualbox cant clone disk twice


I use vmdk image with pre-installed os to create ready to use vm and i got problem with clonhdd

command VBoxManage clonehd {image_path} {new_disk_path}

after one successful clone on next clone i got error

VBoxManage: error: UUID {00000000-0000-0000-0000-000000000000} of the medium '/home/klevchenko/vbox_imgs/Ubuntu 16.04.6 (64bit).vmdk' does not match the value {0f5418b0-060f-4da8-b059-4661476d65f1} stored in the media registry ('/home/klevchenko/.config/VirtualBox/VirtualBox.xml')
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "CloneTo(pDstMedium, ComSafeArrayAsInParam(l_variants), NULL, pProgress.asOutParam())" at line 1068 of file VBoxManageDisk.cpp

so it happened because hard disk entry is created in file:


it looks like

<HardDisk uuid="{0f5418b0-060f-4da8-b059-4661476d65f1}" location="/home/klevchenko/vbox_imgs/Ubuntu 16.04.6 (64bit).vmdk" format="VMDK" type="Normal"/>

if i remove it from file new hdd can be cloned, but if i use multiprocessing it clone ones and crush

so my question how i can clone hdd without make entry in config file

asked on Stack Overflow May 15, 2020 by klevchenko • edited May 18, 2020 by klevchenko

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0