VirtualBox

Opened 9 years ago

Closed 9 years ago

#14496 closed defect (fixed)

Disk Encryption Cannot Be used with Compatected VDI files => fixed in SVN/5.0.x

Reported by: vvv Owned by:
Component: other Version: VirtualBox 5.0.2
Keywords: encryption Cc:
Guest type: Linux Host type: other

Description

Disk encryption feature of VB 5 (General / Encryption menu) works fine on VDI files.

However, if 'vboxmanage modifyhd some.vdi --compact' command is used in a non-encrypted VDI file (for encrypted files the command seems to have no effect), then when trying to encrypt the VM via General / Encryption menu after that, the following error is shown:

Could not prepare disk images for encryption (VERR_VD_BLOCK_FREE): (VERR_VD_BLOCK_FREE). Result Code: VBOX_E_FILE_ERROR (0x80BB0004) Component: MediumWrap Interface: IMedium {4afe423b-43e0-e9d0-82e8-ceb307940dda}

After this error, the VDI file is unrecoverably corrupted. It cannot be booted anymore, and it shows up as unallocated space (if attached to another VM).

Steps to reproduce:

  1. Create a VM with some.vdi file, preferably with some guest in it (I had Linux guest).
  2. vboxmanage modifyhd some.vdi --compact
  3. Then via UI General / Encryption, select 256 encryption, enter password, press OK.
  4. After a while the above error comes (visible in Details).
  5. After the error, the some.vdi file is corrupted and I could not recover any data from it (did a backup before).

Change History (2)

comment:1 by aeichner, 9 years ago

Summary: Disk Encryption Cannot Be used with Compatected VDI filesDisk Encryption Cannot Be used with Compatected VDI files => fixed in SVN/5.0.x

Thanks for the report, will be fixed in the next maintenance release.

comment:2 by Frank Mehnert, 9 years ago

Resolution: fixed
Status: newclosed

Fix is part of VBox 5.0.4.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use