VirtualBox

Opened 6 years ago

Last modified 4 years ago

#18073 reopened defect

Regression: Tails shuts down after snapshot restore (on SATA optical drive)

Reported by: Christian Inci Owned by:
Component: DVD Version: VirtualBox 5.2.20
Keywords: Cc:
Guest type: Linux Host type: all

Description

Tails thinks that the medium has been removed/changed and does it's emergency shutdown after restoring from a snapshot.

"cat /dev/sr0" errors out and there are errors about failing to access sr0 in dmesg.

Steps:

1.: Configure the VM to have the ISO in a SATA/AHCI optical drive.

2.: Boot it and make a snapshot when it's done.

3.: Restore from the snapshot. The Guest VM will shut down.

Regression in r64134. Not fixed in trunk yet.

Caveat: Triggering the bug on e.g. 5.2.20 might require to set the Base Memory size to anything larger than 1024 MiB and the Video Memory size to anything larger than 16 MiB. (e.g. set the Base Memory size to 4096 MiB and the Video Memory size to 32 MiB.)

Affected: trunk, 5.2.x

Unaffected: 5.1.x. Older versions should be unaffected.

Attachments (3)

Tails 3.10.1-2018-10-25-20-25-07.log (112.6 KB ) - added by Christian Inci 6 years ago.
Booting and saving snapshot
Tails 3.10.1-2018-10-25-20-25-25.log (101.5 KB ) - added by Christian Inci 6 years ago.
Restore from snapshot
vbox_dvd_0.patch (1.5 KB ) - added by Christian Inci 4 years ago.
HACK/Workaround

Download all attachments as: .zip

Change History (6)

comment:1 by aeichner, 6 years ago

Please attach a VBox.log of such a VM run.

by Christian Inci, 6 years ago

Booting and saving snapshot

by Christian Inci, 6 years ago

Restore from snapshot

comment:2 by aeichner, 4 years ago

Resolution: fixed
Status: newclosed

Should've been fixed long ago, please reopen if this is still an issue.

by Christian Inci, 4 years ago

Attachment: vbox_dvd_0.patch added

HACK/Workaround

comment:3 by Christian Inci, 4 years ago

Resolution: fixed
Status: closedreopened

I looked through the changesets and couldn't find a try to fix that bug. It's still in trunk.

This patch should workaround that bug. It's a very ugly hack, which very probably has some unforeseen side effects. (mounting/booting iso's still seems to work on Linux guests)

My uneducated guess is that the code won't make a difference between starting and resuming a VM. I suppose that there shouldn't be a MountNotification when resuming a VM. (VSCSILunMmc.cpp:844, vscsiLunMmcGetEventStatusNotification)

I don't know the structure/architecture of the code, so a proper patch would be up to someone else.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use