[SOLVED]BLKCACHE_IOERR when on a secondary partition
Posted: 31. Mar 2016, 15:46
My host machine is on Arch Linux amd64. My root partition(ext4) is not big enough to hold my VMs, so I run my VMs from a different partitions, which is in NTFS(which I use for storage across Linux and Windows). This so far my first VMs, so I don't know if it's OS-specific.
I am trying to install Gentoo on a VM for educationnal purpose, but I come across a problem. When, inside the vm, I try to mount a partition of the virtual hard drive, the VM crash and send me this error:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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_DEV_IO_ERROR). 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
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Sometimes, it also corrupt the files and I cannot even open the VM anymore and I have to start over. fsck does not help, as it detects problems but cannot fix them.
However, it seems like if I DO run my VMs from my root partition(in ext4) on my host machine, the problem doesn't appear and everything works correctly.
Is there a way to fix this so can run it on the secondary NTFS partition of my machine?
EDIT: Forgot to mention, I already tried to use a fix size disk and it didn't help. Enabling I/O cache on the SATA port still gets the disk corrupted, but I can get past the mount part. Doing this, however, sets the drive readonly as the OS think it's corrupted.
I am trying to install Gentoo on a VM for educationnal purpose, but I come across a problem. When, inside the vm, I try to mount a partition of the virtual hard drive, the VM crash and send me this error:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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_DEV_IO_ERROR). 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
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Sometimes, it also corrupt the files and I cannot even open the VM anymore and I have to start over. fsck does not help, as it detects problems but cannot fix them.
However, it seems like if I DO run my VMs from my root partition(in ext4) on my host machine, the problem doesn't appear and everything works correctly.
Is there a way to fix this so can run it on the secondary NTFS partition of my machine?
EDIT: Forgot to mention, I already tried to use a fix size disk and it didn't help. Enabling I/O cache on the SATA port still gets the disk corrupted, but I can get past the mount part. Doing this, however, sets the drive readonly as the OS think it's corrupted.