Cloning encrypted MV
Posted: 27. Mar 2020, 12:49
These are my steps:
VBoxManage createvm --name "Ubuntu1804enc" –register
VBoxManage modifyvm "Ubuntu1804enc" --memory 2048 --acpi on --boot1 dvd --nic1 bridged --bridgeadapter1 "eth2" --cableconnected1 on
VBoxManage storagectl "Ubuntu1804enc" --name "IDE Controller" --add ide
VBoxManage createhd --filename "C:\Users\jmlascasas\VirtualBox VMs\Ubuntu1804enc\Ubuntu1804encdisk.vdi" --size 20000
Everything good , now comes the command that makes the error, The uuid is copied from the .vbox of the VM i want to clone => <HardDisk uuid="{93d856a5-c7cc-4795-b392-7de782e0acf8}"
VBoxManage storageattach "Ubuntu1804enc" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium "C:\Users\jmlascasas\VirtualBox VMs\Ubuntu1804enc\Ubuntu1804encdisk.vdi" --setuuid 93d856a5-c7cc-4795-b392-7de782e0acf8
And this is the error:
VBoxManage.exe: error: Medium 'C:\Users\jmlascasas\VirtualBox VMs\Ubuntu1804enc\Ubuntu1804encdisk.vdi' is not accessible. Accessibility check was not yet performed
VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MediumWrap, interface IMedium, callee IUnknown
VBoxManage.exe: error: Context: "SetIds(fSetNewUuid, bstrNewUuid.raw(), fSetNewParentUuid, bstrNewParentUuid.raw())" at line 694 of file VBoxManageStorageController.cpp
VBoxManage.exe: error: Failed to set the medium/parent medium UUID
I found no valid info, and yet not solved the problem, would aprecciate help
Thankyou
VBoxManage createvm --name "Ubuntu1804enc" –register
VBoxManage modifyvm "Ubuntu1804enc" --memory 2048 --acpi on --boot1 dvd --nic1 bridged --bridgeadapter1 "eth2" --cableconnected1 on
VBoxManage storagectl "Ubuntu1804enc" --name "IDE Controller" --add ide
VBoxManage createhd --filename "C:\Users\jmlascasas\VirtualBox VMs\Ubuntu1804enc\Ubuntu1804encdisk.vdi" --size 20000
Everything good , now comes the command that makes the error, The uuid is copied from the .vbox of the VM i want to clone => <HardDisk uuid="{93d856a5-c7cc-4795-b392-7de782e0acf8}"
VBoxManage storageattach "Ubuntu1804enc" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium "C:\Users\jmlascasas\VirtualBox VMs\Ubuntu1804enc\Ubuntu1804encdisk.vdi" --setuuid 93d856a5-c7cc-4795-b392-7de782e0acf8
And this is the error:
VBoxManage.exe: error: Medium 'C:\Users\jmlascasas\VirtualBox VMs\Ubuntu1804enc\Ubuntu1804encdisk.vdi' is not accessible. Accessibility check was not yet performed
VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MediumWrap, interface IMedium, callee IUnknown
VBoxManage.exe: error: Context: "SetIds(fSetNewUuid, bstrNewUuid.raw(), fSetNewParentUuid, bstrNewParentUuid.raw())" at line 694 of file VBoxManageStorageController.cpp
VBoxManage.exe: error: Failed to set the medium/parent medium UUID
I found no valid info, and yet not solved the problem, would aprecciate help
Thankyou