[SOLVED]Qemu disk cache problem
Posted: Tue Nov 29, 2011 3:08 am
Hi,
I am using Lubuntu 11.04 with qemu. My Os loads applications from a fat32 file system. I pass the physical drive as the disk to qemu i.e -hda /dev/sda and my os does the directory parsing, reading etc.. But every change I make to the file system from the host is not shown in my Os until next reboot. I think it maybe that qemu internally caches disk accesses. So do anyone know of a solution or argument that I can pass to qemu to disable the cache. "cache=none" does not seem to work. Qemu documentation says that qemu may still internally cache even if that argument is passed. Rebooting every time I edit the applications for my Os defeats one of the main advantage of a virtual machine.
I am using Lubuntu 11.04 with qemu. My Os loads applications from a fat32 file system. I pass the physical drive as the disk to qemu i.e -hda /dev/sda and my os does the directory parsing, reading etc.. But every change I make to the file system from the host is not shown in my Os until next reboot. I think it maybe that qemu internally caches disk accesses. So do anyone know of a solution or argument that I can pass to qemu to disable the cache. "cache=none" does not seem to work. Qemu documentation says that qemu may still internally cache even if that argument is passed. Rebooting every time I edit the applications for my Os defeats one of the main advantage of a virtual machine.