Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Feb 2017 13:41:26 -0500
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: Unable to create OpenBSD 6.0 bhyve guest
Message-ID:  <3078780.Q0Erv8kLWO@hbsd-dev-laptop>
In-Reply-To: <20170210183519.43f76q3fcfqrgipw@scotland.uxdom.org>
References:  <20170210181513.vtnq3ph5vmk3sbi4@scotland.uxdom.org> <1757175.5Lz3SQ4xSy@hbsd-dev-laptop> <20170210183519.43f76q3fcfqrgipw@scotland.uxdom.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1825349.tX8Et4uNqX
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="us-ascii"

On Friday, 10 February 2017 06:35:19 PM C. L. Martinez wrote:
> On Fri, Feb 10, 2017 at 01:27:21PM -0500, Shawn Webb wrote:
> > On Friday, 10 February 2017 06:15:13 PM C. L. Martinez wrote:
> > > Hi all,
> > >=20
> > >  I am trying to create an OpenBSD 6.0 virtual guest under FreeBSD=
 11
> > >  bhyve
> > >=20
> > > server. When I try list cd contents, segmentation faults appears:=

> > >=20
> > > grub-bhyve -d /data/vms/conf/obsdfwwif -m device.map -r cd0 obsdf=
wwif
> > >=20
> > >                                                                  =
       =20
G
> > >                                                                  =
       =20
N
> > >                                                                  =
       =20
U
> > >=20
> > > GRUB  version 2.00
> > >=20
> > >    Minimal BASH-like line editing is supported. For the first wor=
d, TAB
> > >=20
> > > lists possible command completions. Anywhere else TAB lists possi=
ble
> > > device
> > > or file completions.
> > >=20
> > >=20
> > > grub>ls
> > > Segmentation fault
> >=20
> > Hey C.L. Martinez,
> >=20
> > This is because grub-bhyve creates memory mappings that are both wr=
itable
> > and executable, something that is disallowed by default on Hardened=
BSD.
> >=20
> > You'll need to add a secadm rule to disable pageexec and mprotect
> > restrictions for grub-bhyve. You can find a sample rule here:
> >=20
> > https://github.com/HardenedBSD/secadm-rules/blob/master/grub-bhyve.=
rule
> >=20
> > Thanks,
>=20
> Thanks Shawn, but it is a FreeBSD-11 RELEASE test laptop :( .... But =
I am
> doing some tests with linux also, and it seems that it has some probl=
em
> with memory according memtest says ...

Your kldstat output leads me to believe you're running HardenedBSD as t=
he host=20
OS (the addresses being 0x0).

What is the output of `uname -a`?

Thanks,

=2D-=20
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

GPG Key ID:          0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE
--nextPart1825349.tX8Et4uNqX
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

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

iQIzBAABCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlieCVYACgkQaoRlj1JF
bu5cBw//de+Y1TcIvy2W+GZanvhCKCS6NjhGcNcVVXugHBUNjE/8sVa04kNdsqJT
9AaJ9A2Y3KUzlY3mwtzSK0cv7EqQoiD+LcBRF5NtSYNakIDU59kBMlXr4dHpWBDU
zlYJL5Qks4fVt313YPdUARBhTeZ3+wwV/xYbUrTFU5rghGkHADFCZkZ9h8YOHJ30
WSEeILpZjP6rdIP40ExogRNPrpVg5eroPoX+IMR+ENwKbzTBR5FE5a+AvWPburc5
QanUBMuPEBd0lx/0qySYMlj6tpz5l3KVpgZII8qyv9PvTPzWPA7OqTc6V2Up6gJS
Zn6mzzZFH/y9WI1LLCIjHZif1nmAgBfSQGBv7wMSaQGCbpoCU7VvUgopPBILOj9C
G1Fbjxty41VwNkThSwOWBz7ERFLhGUDahoOoswRY9Ia50g7NKYpm3lOmQz7OX7oD
Ol3i04YUaTXxxWYapckl5dD4lZ6wQ7iWfuP7xxZ9clpl79xzn4ZPL83XE4p9yALm
3cYAWD8ojkBGecy3Mk0wVCek42m/ddHB0CQFq6+7E4xvQ145PH5ZNKkfxNKoB36p
zds8iQyOaj1aaGlnaTnpkWjnBP3+jjmPkQF/lt5Uk7yOYNVVRkocDbEBELMCDs2g
7QPya2zTh/CeH7Coo4rlYrwdF4YOExjrJQ242PJuRy41UDy7Ij0=
=++r7
-----END PGP SIGNATURE-----

--nextPart1825349.tX8Et4uNqX--




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