Page 1 of 1

[SOLVED] Enabling encryption breaks guest os and prevents installation

Posted: 25. Aug 2017, 10:43
by JoergK
Hello,

Running some tests with VirtualBox Beta 2 I encountered a problem with the encryption of the virtual disk image. Enabling the disk encryption for a VM with an installed guest os (with guest additions installed) breaks the guest. The filesystem is damaged and in a non recoverable state. I tried this with two VMs running RHEL 7.4 as guest os.

In a second scenario I created a new VM and enabled the disk encryption prior to the guest os installation. Powering up the VM and starting the installer (RHEL 7.4 with anaconda) works fine. When the installation starts and the filesystem is going to be accessed for the first time the VM freezes or the installer crashs with an exception that the filesystem cannot be accessed or mounted. Restarting the installation shows that the filesystem was destroyed. The installer shows the partition created in the last installation attempt without any filesystem.

My test environment is:
  • VirtualBox 5.2.0 Beta2r117563
  • Guest os: RHEL 7.4
  • Disk Type: VDI
  • Encryption: AES-XTS256-PLAIN64
If you need more information to track this down, tell me what information and how to collect them, please.

Best regards,
Joerg

Re: Enabling encryption breaks guest os and prevents installation

Posted: 31. Aug 2017, 11:54
by aeichner
Please post a VBox.log of the affected VM.

Re: Enabling encryption breaks guest os and prevents installation

Posted: 31. Aug 2017, 15:06
by aeichner
Found an issue which could be responsible for the corruption you are seeing, will be fixed in the next Beta/RC. Thanks for letting us know!

Re: Enabling encryption breaks guest os and prevents installation

Posted: 1. Sep 2017, 09:08
by JoergK
No problem. I've attached the VBox.log if you like to have a look at it.

I'm waiting for the next Beta/RC and test again.

Cheers,
Joerg

Re: Enabling encryption breaks guest os and prevents installation

Posted: 13. Oct 2017, 12:00
by JoergK
Hi,

Encryption works properly in the RC1. The problem seems to be solved.

Tested with:
Host: Ubuntu 16.04
Guest: RHEL 7.4