Page 1 of 1

Problems with encryption, possibly corrupted disk

Posted: 12. Jun 2016, 01:49
by btrask
Hi all,

I've had a fairly complicated encryption setup which might have left me in the lurch.

I had an encrypted VM with a second disk (VDI). I tried moving this encrypted VDI to a new VM that wasn't encrypted, but it never prompted me for my password and the guest (Debian Linux) was unable to mount it.

I tried enabling encryption in the new VM, at which point VirtualBox brought up the disk encryption panel and appeared to be encrypting the disk image a second time (???). I suspect at this point the image became inconsistent/corrupted. Afterwards, it still wouldn't mount.

Then I tried using VBoxManage to decrypt the image, which appears to have succeeded. Now it says it's unencrypted, but doesn't mount and fsck doesn't recognize the superblock. I suspect it still has the original encryption applied, although I'm not sure how to tell.

If I'm right, all I need to do is edit the image meta-data to tell VirtualBox that it's still encrypted (the original encryption), so that I can either decrypt or mount it. Or perhaps I'm misunderstanding what the problem is.

I tried using VBoxManage clonehd to convert the image to RAW format, but it stalls at 0% (with no apparent CPU/disk activity).

I haven't been able to find much information on encrypted disks in VirtualBox. I know this feature is new in 5.0, is it still somewhat buggy/unstable?

Any advice would be greatly appreciated.

Re: Problems with encryption, possibly corrupted disk

Posted: 12. Jun 2016, 02:23
by btrask
Never mind, the instructions in this thread worked for me: /viewtopic.php?f=1&t=69503