VirtualBox

Ticket #16936 (new defect)

Opened 2 years ago

Last modified 8 months ago

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

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

Change History

Changed 2 years ago by declay

VBox Log file

Changed 2 years ago by declay

VBox Log file 1

Changed 2 years ago by declay

VBox Log file 2

Changed 2 years ago by declay

VBox Log file 3

Changed 2 years ago by declay

VBox Hardening

comment:1 Changed 10 months ago by jackalek

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 Changed 8 months ago by Blofeld

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 8 months ago by Blofeld (previous) (diff)
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use