Are the guests running at the same time? If they support virtiofs you could
share a host folder.

-fsdev local,id=fsdev0,path="${PUBLIC}",security_model=mapped-xattr
-device virtio-9p-pci,fsdev=fsdev0,mount_tag="${PUBLIC_TAG}"

guest
mount -t 9p  ${PUBLIC_TAG}  /mnt

I don't know if 9p handles locking - the host could export NFS if that's a
concern.

If you simply need a common filesystem then ZFS is available for Linux and
BSD.

For low level partition sharing there's iscsi/nbd, and qemu has iscsi as
well - in case you're doing HA/clustering.


On Tue, Dec 7, 2021 at 12:59 AM Ottavio Caruso via <qemu-discuss@nongnu.org>
wrote:

> I run three instances of qemu (FreeBSD, NetBSD OpenBSD). Host is Linux
> Mint. In real life, it would be very hard to share partitions among them
> (apart from probably using good old fashioned fat-32).
>
> I wonder if there is a way to share a qemu drive between them while I am
> actually running them at the same time. I am resigned to the idea that
> it's not possible but if anybody has any experiences/ideas, please share.
>
>
> --
> Ottavio Caruso
>
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
>
>

Reply via email to