VirtualBox

Ticket #14461 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Raw disk VM gives ahci-0-0 BLKCACHE_IIOERR if block cache turned off on VirtualBox 5.0.1 and later => fixed in SVN/5.0.x

Reported by: GreenReaper Owned by:
Priority: major Component: virtual disk
Version: VirtualBox 5.0.2 Keywords: block cache BLKCACHE_IIOERR raw disk
Cc: Guest type: all
Host type: Windows

Description

VirtualBox builds 5.0.2-102096 and 5.0.1-102010 fail to run correctly a full-raw-disk-based virtual machine that 5.0.0-101573 loads correctly. The failure occurs when the "Use Host I/O Cache" option (StorageController: useHostIOCache) is off for the controller of the raw VMDK.

This is the case even though VirtualBox is being run as an administrator, which I've found required for it to work with raw disks at all. Maybe something changed about what process accessed the drive?

The machine doesn't die straight away, but immediately after the initrd system loads up - the "Root: clean" line of fsck is printed (there are many things that happen just after that, so I don't want to imply it's part of fsck) - it freezes and a message is printed:


An error has occurred during virtual machine execution! The error details are shown below. You may try to correct the error and resume the virtual machine execution.

The I/O cache encountered an error while updating data in medium "ahci-0-0" (rc=VERR_ACCESS_DENIED). Make sure there is enough free space on the disk and that the disk is working properly. Operation can be resumed afterwards.

Error ID: BLKCACHE_IOERR Severity: Non-Fatal Error


The log also mentions "Invalid machine state Paused when checking if the guest entered the ACPI mode".


ERROR [COM]: aRC=VBOX_E_INVALID_VM_STATE (0x80bb0002) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={Invalid machine state Paused when checking if the guest entered the ACPI mode)}, preserve=false aResultDetail=0 00:00:10.967017 Console: Machine state changed to 'Stopping'


Host is Windows Vista 32-bit, guest is Debian 8.x 64-bit (though I figure it probably doesn't matter so I left the type as 'all'). The controller is the LSI logic, listed as "AHCI" in the GUI.

Attached are logs from when the files work, and when they don't, and the vmdk and vbox in question.

Attachments

VBox-5.0.2-NoOSCache.log Download (126.2 KB) - added by GreenReaper 2 years ago.
Log when OS cache is turned off
VBox-5.0.2-OSCache.log Download (130.2 KB) - added by GreenReaper 2 years ago.
Log when OS cache is turned on
Inkbunny.vbox Download (20.4 KB) - added by GreenReaper 2 years ago.
VBox file
Inkbunny.vmdk Download (663 bytes) - added by GreenReaper 2 years ago.
Full raw-disk VMDK

Change History

Changed 2 years ago by GreenReaper

Log when OS cache is turned off

Changed 2 years ago by GreenReaper

Log when OS cache is turned on

Changed 2 years ago by GreenReaper

VBox file

Changed 2 years ago by GreenReaper

Full raw-disk VMDK

comment:1 Changed 2 years ago by aeichner

  • Summary changed from Raw disk VM gives ahci-0-0 BLKCACHE_IIOERR if block cache turned off on VirtualBox 5.0.1 and later to Raw disk VM gives ahci-0-0 BLKCACHE_IIOERR if block cache turned off on VirtualBox 5.0.1 and later => fixed in SVN/5.0.x

Will be fixed in the next maintenance release, please try the following test build:

https://www.virtualbox.org/download/testcase/VirtualBox-5.0.3-102166-Win.exe

comment:2 Changed 2 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fix is part of VBox 5.0.4.

comment:3 Changed 2 years ago by GreenReaper

Sorry about that, I hadn't set up email notification. Thanks for the fix, appreciated! :-D

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use