VirtualBox

Opened 4 years ago

Last modified 3 years ago

#20000 new defect

Linux guests lock up with Host I/O cache disabled (NVMe and SATA)

Reported by: Hamish McIntyre-Bhatty Owned by:
Component: virtual disk Version: VirtualBox 6.1.14
Keywords: Cc:
Guest type: Linux Host type: Linux

Description

I have been finding that Linux guests seem to lock up when Host I/O cache is disabled when disks are under load (for example when installing system updates). dmesg also shows disk timeouts, and it seems no further disk operations succeed after this point without killing the VM process and restarting.

A log is attached. I'm not sure how to reproduce this reliably, but it seems to happen when I'm installing updates. I have seen this with both Ubuntu and Fedora guests. I will also upload a screenshot shortly with the exact messages, but I seem to have misplaced it for the moment.

I should also note that this is with the VDI nonrotational option turned on and discard=on in the guest Linux OS.

Anything else I can do to help diagnose?

Attachments (2)

VBox.log (141.8 KB ) - added by Hamish McIntyre-Bhatty 4 years ago.
Disk timeout (SATA, HostIO cache disabled).png (40.9 KB ) - added by Hamish McIntyre-Bhatty 4 years ago.
Kernel messages when disk times out

Download all attachments as: .zip

Change History (4)

by Hamish McIntyre-Bhatty, 4 years ago

Attachment: VBox.log added

by Hamish McIntyre-Bhatty, 4 years ago

Kernel messages when disk times out

comment:1 by Hamish McIntyre-Bhatty, 4 years ago

NB: VBox.log is from a Fedora system that locked up. The screenshot is from Debian Sid.

comment:2 by Klaus Espenlaub, 3 years ago

You already diagnosed it yourself in the ticket description. Your report is a duplicate of older ones which have already established that discard=on (yes, I know, you meant the Linux side, but you enabled the totally undocumented feature in VirtualBox, too) leads to hangs. For example #16795, #16450 and probably more.

Honestly shouldn't be a big surprise that this isn't reliable. Otherwise it would be long documented in the manual and/or enabled by default.

Last edited 3 years ago by Klaus Espenlaub (previous) (diff)
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use