Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Feb 2017 14:38:32 -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:  <2144273.B4WGz7OOyR@hbsd-dev-laptop>
In-Reply-To: <3078780.Q0Erv8kLWO@hbsd-dev-laptop>
References:  <20170210181513.vtnq3ph5vmk3sbi4@scotland.uxdom.org> <20170210183519.43f76q3fcfqrgipw@scotland.uxdom.org> <3078780.Q0Erv8kLWO@hbsd-dev-laptop>

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

On Friday, 10 February 2017 01:41:26 PM Shawn Webb wrote:
> 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 FreeB=
SD 11
> > > >  bhyve
> > > >=20
> > > > server. When I try list cd contents, segmentation faults appear=
s:
> > > >=20
> > > > grub-bhyve -d /data/vms/conf/obsdfwwif -m device.map -r cd0 obs=
dfwwif
>=20
> G
>=20
> N
>=20
> U
>=20
> > > > GRUB  version 2.00
> > > >=20
> > > >    Minimal BASH-like line editing is supported. For the first w=
ord,
> > > >    TAB
> > > >=20
> > > > lists possible command completions. Anywhere else TAB lists pos=
sible
> > > > 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
> > > writable
> > > and executable, something that is disallowed by default on Harden=
edBSD.
> > >=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-bhyv=
e.rule
> > >=20
> > > Thanks,
> >=20
> > Thanks Shawn, but it is a FreeBSD-11 RELEASE test laptop :( .... Bu=
t I am
> > doing some tests with linux also, and it seems that it has some pro=
blem
> > with memory according memtest says ...
>=20
> Your kldstat output leads me to believe you're running HardenedBSD as=
 the
> host OS (the addresses being 0x0).
>=20
> What is the output of `uname -a`?
>=20
> Thanks,

Follow-up to mailing list: issue resolved with reporter privately.

=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
--nextPart1791637.eIZRMyCSci
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+iT2eaoRlj1JFbu4FAlieFrkACgkQaoRlj1JF
bu6lQxAAsQYULNjWOuB1Y0Hjzz0Rf7kCDUx8WPlkJOHwCQhMcqmLAARVWuLCt07l
QYd0+W743d1IWApCIWh6mOe4iZllYBFsiBCqBhDp7v4LwxiQR8F0m3jVkQyr0Ivn
FfZsGnujZU8B39o3KHgxhJUUseqAL2+5zalBpDI5exzaGKW+7eXVdrXGjlg1Y1ct
VKdImo9ArTZd9z0uCCOUH1ylY4RMSqfwG/M2vawkuZ6o5ta9RGOArum0JSXvxyPN
8JSgj23hJPMjeULZWdaiR68G7kuhtMZOMEELf7mAMf8x4IwR5/lk/o7OLum1Ylt4
KoTQUaoB1xJmIxx6WYBcasX1Jp0yadkqDpBlXk1KT6jBYxOPT7jW+hoqMRCiQbff
1xLXfWJa04JLX5oheEFI358cfxHYQwS0Hg2Z1YB/SJghW76Mi0FPHUC4yJHfTIqz
WYTrkSS2/EtXTcwM3d/Y0ZBvo/hH5u5afm3UrsFL6wZTSLW4S/b9rX+PyTbH2wkS
T5IR3l3vXZpV1MQidNqmxgZ9tz1GGIY/RBFoUMgYPlz+MKBZsLThD20aXNwmTK7Q
V7Qp1zVGZ9MnI0/OFOgZtQolj5/KHD1W0E4kk6VTG1lBuiNNjBA2Gk/au+clO6wf
lU4p1aYYNQ62V6fNSSj1F24pg/xToy2e9OTnw5o/MDfz6vg4E9o=
=BD43
-----END PGP SIGNATURE-----

--nextPart1791637.eIZRMyCSci--




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