Page 1 of 1

VM pauses and throws I/O cache error unexpectedly

Posted: 10. Oct 2021, 11:52
by thecaretaker
I'm running a Linux machine on Virtualbox 6.1, My VM pauses in every 5 mins of use and log shows this error:
Console: VM runtime error: fatal=false, errorID=BLKCACHE_IOERR message="The I/O cache encountered an error while updating data in medium "ahci-0-0" (rc=VERR_IO_CRC). Make sure there is enough free space on the disk and that the disk is working properly. Operation can be resumed afterwards"

I've read other fixes for this problem which includes using "Settings" > "Storage" > "Use Host I/O cache", which was already marked and is in use.
Error log is attached below.

Re: VM pauses and throws I/O cache error unexpectedly

Posted: 10. Oct 2021, 15:05
by scottgus1
This was in the end of the log:
01:59:50.523163 AioMgr0-N: Request 0x0000000184e3d0 failed with rc=VERR_IO_CRC, migrating endpoint E:\VM\Offensive\Caretaker\Snapshots/{45430121-4508-4232-a676-99aebfe6f235}.vdi to failsafe manager.
01:59:52.524526 I/O cache: Error while writing entry at offset 11888717824 (147456 bytes) to medium "ahci-0-0" (rc=VERR_IO_CRC)
01:59:52.524593 VM: Raising runtime error 'BLKCACHE_IOERR' (fFlags=0x6)
Probably the pertinent part of the error isn't:
The I/O cache encountered an error
but rather:
Make sure there is enough free space on the disk and that the disk is working properly.
The disk being referred to is probably the host disk. Check free space on the E: drive, also run a disk check.

Re: VM pauses and throws I/O cache error unexpectedly

Posted: 10. Oct 2021, 15:57
by thecaretaker
There's around 230 GB's of free disk on E: drive and "chkdsk" shows no bad sectors on E: drive.
I've attached image

Re: VM pauses and throws I/O cache error unexpectedly

Posted: 11. Oct 2021, 06:27
by thecaretaker
scottgus1 wrote:This was in the end of the log:
01:59:50.523163 AioMgr0-N: Request 0x0000000184e3d0 failed with rc=VERR_IO_CRC, migrating endpoint E:\VM\Offensive\Caretaker\Snapshots/{45430121-4508-4232-a676-99aebfe6f235}.vdi to failsafe manager.
01:59:52.524526 I/O cache: Error while writing entry at offset 11888717824 (147456 bytes) to medium "ahci-0-0" (rc=VERR_IO_CRC)
01:59:52.524593 VM: Raising runtime error 'BLKCACHE_IOERR' (fFlags=0x6)
Probably the pertinent part of the error isn't:
The I/O cache encountered an error
but rather:
Make sure there is enough free space on the disk and that the disk is working properly.
The disk being referred to is probably the host disk. Check free space on the E: drive, also run a disk check.

Do I need to provide more info? Sorry I'm new to this

Re: VM pauses and throws I/O cache error unexpectedly

Posted: 11. Oct 2021, 16:26
by scottgus1
Since you do apparently have enough disk space on the E drive and the disk passed a check-disk, then we'd have to wait until someone familiar with this kind of error comes along. I don't understand it enough to say if it will come back up again or why it happened, other than the suggestion about disk size and check.

Re: VM pauses and throws I/O cache error unexpectedly

Posted: 6. Jun 2023, 16:06
by CRudy
Any update on this?

Encountering it quite often and can't seem to find a solution. Same issue - plenty of space and no bad sectors.

Re: VM pauses and throws I/O cache error unexpectedly

Posted: 6. Jun 2023, 17:34
by scottgus1
The only thing coming to mind now is to toggle "Use Host I/O Cache" on the VM's disk controller.