Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Apr 2018 11:37:48 +0100
From:      Mark Raynsford <list+org.freebsd.virtualization@io7m.com>
To:        Daniel Braniss <danny@cs.huji.ac.il>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: Read-only view of a ZFS filesystem inside a bhyve guest?
Message-ID:  <20180428113748.72891422@almond.int.arc7.info>
In-Reply-To: <FCEED1DB-80FA-4407-9017-9B17F6E155B9@cs.huji.ac.il>
References:  <20180427174341.03373bc8@almond.int.arc7.info> <FCEED1DB-80FA-4407-9017-9B17F6E155B9@cs.huji.ac.il>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/NaDD0LvfDH.anCt.7Kvhdwx
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 2018-04-28T09:08:42 +0300
Daniel Braniss <danny@cs.huji.ac.il> wrote:

> since the clients and the server are sharing the zfs volume,
> I=E2=80=99m 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=3Dvirtio-blk=E2=80=9D
> 		disk0_name=3D=E2=80=9C/dev/zvol/h/root.ro <http://root.ro/>=E2=80=9D
> 		disk0_dev=3D=E2=80=9Ccustom=E2=80=9D
>=20
> one solution to the fact that the root is read-only is to use unionfs (pr=
obably nullfs will do too)
>=20
> 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?

--=20
Mark Raynsford | http://www.io7m.com


--Sig_/NaDD0LvfDH.anCt.7Kvhdwx
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQS4Thd0dhbGF0xo1eVcGntxKBLMBQUCWuRO/AAKCRBcGntxKBLM
BVWOAP9saddfTN55XrBWM2Oonynt8y77rLrik6uqS7GxSKo3ZgD/e8JN6zcEPWW6
zFGAmQUgUVejemre3j4+Bb6N/Lw2kgk=
=NSN+
-----END PGP SIGNATURE-----

--Sig_/NaDD0LvfDH.anCt.7Kvhdwx--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180428113748.72891422>