On Wed, Mar 09, 2022 at 08:24:27PM -0500, Lonnie Cumberland wrote:
[...]
The second part of this is that once the application creates the
virtual disk and adds the database files, I want to keep the handle
open to those files so that as they are used in the application then
the database files (which are in the virtual disk) will grow as data
is added so that when the application closes then all that remains
to do is to close the virtual disk.
No, disk images don't work in this way. You will simply get data
corruption if you try to do this.
If you want to share files between the host and the guest then you
could try using a network filesystem like NFS; or virtiofsd:
https://qemu.readthedocs.io/en/latest/tools/virtiofsd.html
Ric.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html