From owner-freebsd-current@freebsd.org Fri Sep 16 05:07:00 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 74783BDC4A1 for ; Fri, 16 Sep 2016 05:07:00 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4EA42F13 for ; Fri, 16 Sep 2016 05:07:00 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 9546E1E2B; Fri, 16 Sep 2016 05:06:58 +0000 (UTC) Subject: Re: Trying to read linux-lvm on 11.0-RC2 using geom, bhyve, fail. To: Zaphod Beeblebrox References: Cc: freebsd-current From: Allan Jude Message-ID: <538aa933-79e3-904e-0847-9a38485d41dd@freebsd.org> Date: Fri, 16 Sep 2016 01:06:51 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="onCjmsPLD3rXht5r95Fh1tfpDSlvBplAr" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2016 05:07:00 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --onCjmsPLD3rXht5r95Fh1tfpDSlvBplAr Content-Type: multipart/mixed; boundary="tKDNqrP5PCHptGRdjG43aSDT5uLGrKFlu"; protected-headers="v1" From: Allan Jude To: Zaphod Beeblebrox Cc: freebsd-current Message-ID: <538aa933-79e3-904e-0847-9a38485d41dd@freebsd.org> Subject: Re: Trying to read linux-lvm on 11.0-RC2 using geom, bhyve, fail. References: In-Reply-To: --tKDNqrP5PCHptGRdjG43aSDT5uLGrKFlu Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2016-09-16 01:04, Zaphod Beeblebrox wrote: >=20 >=20 >=20 > Are you using zvols to back the VMs? Make sure they are in 'volmode= =3Ddev' > not 'geom' (the default), or GEOM will lock the device when it dete= cts a > partition table being written to the zvol (from the installer insid= e > the VM) >=20 > Note that this setting requires you to export/import the pool or re= boot > to apply. >=20 >=20 > No, no. The whole point here is that I was booting the raw disk.=20 > "ada1" as it were. > =20 You might try the dangerous 'shoot yourself in the foot mode' for geom: man 4 geom: 0x10 (allow foot shooting) Allow writing to Rank 1 providers. This would, for example, allow the super-user to overwrite the MBR on the root disk or write random sectors elsewhere to a mounted disk. The implications are obvious. sysctl kern.geom.debugflags=3D16 --=20 Allan Jude --tKDNqrP5PCHptGRdjG43aSDT5uLGrKFlu-- --onCjmsPLD3rXht5r95Fh1tfpDSlvBplAr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJX233xAAoJEBmVNT4SmAt+U0IP/jLtrf56nlbRhnyH19u/vKRm C/5NTOBLjwHI6ERXlPVnXkdqpLaJMJHFmykdEHGGpEHT64ZfaIBQxfvDHi/kjz7e 03+9yDBQdZv5O3+TE72CUTiZbtnYzJmu5T9WY/9gmS4lQaF+eSl0mSXWNVpLg4oV lJ+0R1lvd6VgTlqMUbn18X3MY+Or+qkH9ULxQk5tWKIFkZ3URsp7aiuOC52kiLHJ EjdrzK8+hj94+AETgIn03JhL4SGqt6N4CHCqgJqsJD8ig8r9uMjyDT46cLnhr2Gg yuc+m1e0bwExFicNqLcUA+URdA//yexYHoctjAoCpw8NwWRu2+3U+CkCblM/gf/U P4QXw07M5hneL5EXx8pxBILHHaAd2uMG9PckJJrSb/dCnzQ4VISl3RrF27gD4XXj 6tt0Y9rPnbD7GAiXmZMaklIwcO4tdLMgmifOjW0LOsal5FCqmMmtLvPZfaZO0PBI mZrB3Oh++o1O1iFU++QhBxcMzhrBUSyMFAF/W17CbSNGcJwGQHPZapeJFUKNMowP UAIg2AvSqIlt3BQtkja9gxPhfK7xhby0mLjprrtFz7jOOCH2xG0ckl+japCyQjAB 4OK6POmG77sd2m+W7EMXHH653Uo4gTftM32T6VHgiIg6lk6SHA2dqVyLzUeQMpNp yF8T1SVGYkKM3fpTKtGF =p+Ua -----END PGP SIGNATURE----- --onCjmsPLD3rXht5r95Fh1tfpDSlvBplAr--