VirtualBox

Opened 7 years ago

Last modified 5 years ago

#16936 new defect

Snapshot Deletion of Encrypted VM always corrupts filesystem

Reported by: declay Owned by:
Component: virtual disk Version: VirtualBox 5.1.24
Keywords: Cc:
Guest type: Linux Host type: Windows

Description

Given this setup:

  • Windows 10 Pro Host
  • VitrualBox 5.1.22/24
  • Ubuntu 16.04 Guest
  • VBox Additions Installed
  • Guest is encrypted.
  • VBox Web Service is running

I wrote a java tool that uses the web service and does the typical thing in creating a VM backup. This includes taking a snapshot prior to copying the VDI(s) to an archive and then once completed, deletes the snapshot. This occurs while the VM is running (or off as well). The duration of the VM running on the snapshot is probably on the order of 20-30 minutes.

I have several VMs I use day to day. 1 is encrypted and the other 1 isn't. Invariably the deletion of the snapshot on the encrypted VM results in a corrupt and non-bootable system even though the merge back into the parent is 100% successful. This does not happen on the non-encrypted VM.

As an additional validation of the issue, I removed the encryption from the encrypted VM and I do the same thing with my java tool. No problems at all and the VM is fine. I put the encryption back on the VM and get the same original corruption problem.

In addition I run the tool with the encrypted VM off, and I don't see the problem. All works as expected.

I've run this over 10 times and the same thing happens every time. My running + encrypted VM always corrupts the filesystem when the Snapshot deletion/merge occurs.

I read another Bug report on the VirtualBox support site that states the same thing (from a few versions back I believe).

Thanks and let me know what else you need.

Attachments (5)

VBox.log (106.6 KB ) - added by declay 7 years ago.
VBox Log file
VBox.log.1 (172.9 KB ) - added by declay 7 years ago.
VBox Log file 1
VBox.log.2 (105.9 KB ) - added by declay 7 years ago.
VBox Log file 2
VBox.log.3 (105.8 KB ) - added by declay 7 years ago.
VBox Log file 3
VBoxHardening.log (359.3 KB ) - added by declay 7 years ago.
VBox Hardening

Download all attachments as: .zip

Change History (7)

by declay, 7 years ago

Attachment: VBox.log added

VBox Log file

by declay, 7 years ago

Attachment: VBox.log.1 added

VBox Log file 1

by declay, 7 years ago

Attachment: VBox.log.2 added

VBox Log file 2

by declay, 7 years ago

Attachment: VBox.log.3 added

VBox Log file 3

by declay, 7 years ago

Attachment: VBoxHardening.log added

VBox Hardening

comment:1 by jackalek, 5 years ago

Hi After quick Google search I've managed to find this bug is already reported. I can confirm version 5.2.22 is affected. Deleting and merging snapshot on encrypted VM will corrupt the file system and make it unable to boot. This is quite a serious bug, in my opinion.

Thanks

comment:2 by Blofeld, 5 years ago

This bug has killed my encrypted FreeBSD guest VM today (CentOS 7 host using 5.2.24). This kind of bug is most critical, can't believe this is not getting more attention.

Last edited 5 years ago by Blofeld (previous) (diff)
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use