Read-only view of a ZFS filesystem inside a bhyve guest?
Mark Raynsford
list+org.freebsd.virtualization at io7m.com
Sat Apr 28 10:37:51 UTC 2018
On 2018-04-28T09:08:42 +0300
Daniel Braniss <danny at cs.huji.ac.il> wrote:
> since the clients and the server are sharing the zfs volume,
> I’m doing the following:
> on the server I did:
> zfs create -sV 4G h/root.ro <http://root.ro/>
> newfs /dev/zvol/h/root.ro <http://root.ro/>
> mount /dev/zol/h/root.ro <http://root.ro/> /mnt
> copy a working root image to it.
> umount /mnt
> the clients then mount it as ro,
> the vm conflg file has:
> disk0_type=virtio-blk”
> disk0_name=“/dev/zvol/h/root.ro <http://root.ro/>”
> disk0_dev=“custom”
>
> one solution to the fact that the root is read-only is to use unionfs (probably nullfs will do too)
>
> the only problem I have is updating the image.
Wow, didn't know this was possible. Is this safe? Two essentially
independent operating system instances being able to write to the same
zvol?
--
Mark Raynsford | http://www.io7m.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-virtualization/attachments/20180428/645b9ef1/attachment.sig>
More information about the freebsd-virtualization
mailing list