VM pauses and throws I/O cache error unexpectedly

Discussions related to using VirtualBox on Windows hosts.
Post Reply
thecaretaker
Posts: 3
Joined: 10. Oct 2021, 11:45

VM pauses and throws I/O cache error unexpectedly

Post 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.
Attachments
Caretaker-2021-10-10-14-19-35.log
(91.78 KiB) Downloaded 16 times
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

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

Post 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.
thecaretaker
Posts: 3
Joined: 10. Oct 2021, 11:45

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

Post 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
Attachments
chkdsk on E: drive
chkdsk on E: drive
2.PNG (93.99 KiB) Viewed 2063 times
thecaretaker
Posts: 3
Joined: 10. Oct 2021, 11:45

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

Post 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
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

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

Post 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.
CRudy
Posts: 1
Joined: 6. Jun 2023, 16:05

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

Post 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.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

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

Post by scottgus1 »

The only thing coming to mind now is to toggle "Use Host I/O Cache" on the VM's disk controller.
Post Reply