Hi Richard,Thanks for getting back to me so quickly on this question and I was afraid that this was the case.I will probably definitely still use libguestfs as it does some things that I really need as well if I can get it to compile without errors on my Ubuntu 20.04 system. Currently seems to be having some problems during the "make" process when it gets partially through the Erlang section but I am investigating now.Is there, by chance, a mailing list or forum available as I would like to report the errors and get some input on possible fixes?Best Regards,LonnieEmail: Lonnie.Cumberland@Outstep.comOn Thu, Mar 10, 2022 at 3:33 AM Richard W.M. Jones <rjones@redhat.com> wrote: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