K
K
Kenny002018-11-26 10:50:52
virtual box
Kenny00, 2018-11-26 10:50:52

How to decrypt *.vhd image from Oracle VM VirtualBox?

Good afternoon!
The virtual machine on VM VirtualBox has been deleted.
From it there was a virtual hard disk, the task is to get information from it. It was encrypted directly from Virtual Box.
Disk image in VHD format , encryption method AES-XTS256-PLAIN64 , password known .
Tried the following:

openssl enc -aes-256-cbc -d -in encrypted.VHD -out decrypted.VHD

Bad luck: bad magic number
According to the manual, 9.31.4. Decrypting encrypted images , I also get an error:
./VBoxManage encryptmedium  "encrypted.VHD" --oldpassword "passwd.txt"
0%...
Progress state: VBOX_E_INVALID_OBJECT_STATE
VBoxManage.exe: error: Failed to encrypt hard disk
VBoxManage.exe: error: The image is not configured for encryption
VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MediumWrap, interface IMedium
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleEncryptMedium(struct HandlerArg *)" at line 1890 of file VBoxManageDisk.cpp

What else can be done? It is very necessary to get data from the disk, there are no copies anywhere.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kenny00, 2018-11-27
@Kenny00

Found it on the developer forum.
[Solved] How to decrypt an image * .vhd from Oracl...
Answer:
No, since the password is not a key, it only encodes the key found in the virtual machine files.
Therefore, for the future, the virtual disk and the machine are one.
It is a pity that this was found out before "encryption" ((

K
Konstantin Tsvetkov, 2018-11-26
@tsklab

VHD disk (disabled, see comments) can be mounted without VirtualBox. On Windows, using Disk Management.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question