- File system inside a Linux virtual machine was remounted in read-only mode.
- The remount happened during high load on both host and guest operating systems (e.g during the transfer of large amount of data).
The problem could have been caused by plain file system corruption.
In case the problem happened during high load on both host and the virtual machine, it could also could have been caused by double reordering of disk input/output requests: the host reorders the I/O requests to maximize the performance, keeping the data in memory if possible, while the guest system has NCQ support enabled on disks and tries to optimize the access as well. Due to reordering on the host side, some requests are delayed and the guest operating system registers it as the disk access fault. Hitting the fault in journal area leads to immediate remounting of the file-system in read-only mode.
- Reboot the virtual machine in single user mode
e2fsckto check and repair the file system
Also it is recommended to disable NCQ feature for the virtual machine:
- Stop the virtual machine
devices.ahci.ncq=0boot flag to the virtual machine's configuration.
Boot flag can be added using either of the following ways:
- Parallels Management Console (Select the VM -> Configure -> Hardware -> Boot Order -> Boot flags field)
- Parallels Virtual Automation (Select the VM -> Hardware Settings -> CPU -> System flags field)
Manually modifying the virtual machine's configuration file (config.pvs):
# prlctl list -i TestVM | grep Home Home: /var/parallels/TestVM.pvm/ # grep SystemFlags /var/parallels/TestVM.pvm/config.pvs <SystemFlags>devices.ahci.ncq=0</SystemFlags>
- Start the virtual machine