From owner-freebsd-virtualization@freebsd.org Fri Feb 10 18:41:32 2017 Return-Path: Delivered-To: freebsd-virtualization@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 AC799CD97AB for ; Fri, 10 Feb 2017 18:41:32 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qt0-x233.google.com (mail-qt0-x233.google.com [IPv6:2607:f8b0:400d:c0d::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 62729124B for ; Fri, 10 Feb 2017 18:41:32 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qt0-x233.google.com with SMTP id w20so42989058qtb.1 for ; Fri, 10 Feb 2017 10:41:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version; bh=otGMyU27jNS8iOdP8R8qfkBv4Y3jGoOCij9xUuA020s=; b=Ba/Ppy66x85nyF/ZSJzZyi3Qul2zaeWvJzeIuGPMVYsMEgRfI9HNgTL5wSAGL2s1/i z0yedZEpQDtouhulEyFb8EW52XSeFX4ZJATfXCDDYmfSIXPJCXPF0gVhKX0mWg63xSbq MN4NGxXeyfsncDr1s0kwWpuLzYt0pqu/TrlKcFhVHLomfvWfYG4zYl1cLzuZHM2n0qrE f2Ct9hkL/3fVTgI2pWmmvcqWx/5tdzdQGINBbeKctyag3kZYX5mweSClH07RZFNqNNsR CSXA7jKaEyw6kR16t5hoc+79vMpyoP326dsExMB9XOWjRR9vUZ5v1HHl7VnZj+8QZgwF fg9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version; bh=otGMyU27jNS8iOdP8R8qfkBv4Y3jGoOCij9xUuA020s=; b=dTnIRK9qeNcwQlFCXYaVvt/KCoUBvFIzRsyhAg9U9rpJvsoWSrWB5araq56pKOz0xX CbfL8j0B1fLGHlrBQHHztlLUFrwaA9D8AiF1gWVQhqgQF3yHRfEu576aY2N/pzbYRa97 4ovhOSpqIv2VwGfJEDEf5XybT+65RJnJTuZr5ucXLcMC0glzKvEeS8a+zXH0mazZ9jHr 5nyv1qDw2E9Zsmf16UrJJndqeqf5MxRP0xzwSfWRIJd5/6fwWCd1OCl72U5fGd5Ugl3L 5If5Xwo8pZEzsR1JxaaQEHVxCUo06H2jW+RPOEXAU3bCVNRNP06Gv0aA0b7qu35Aeucg TvEA== X-Gm-Message-State: AMke39nC7+Bl6NbRWfmv6jOOj/K0X9w3r/Ui4dClWTmEFoOL2QcYSwRrIdLFV2satTO8QNLkfxumKu//w8M72Wvz3cbOhiuiN0Q6lnkX4D726FvqJ9UOlmDvnB4aWd6h/PxDlxjxB3CQyn6cprlnyjbGUgdSzgLsE6kWSLKMRV4Z9m/OEPV1nk8fc+24vnMzoZZUDv8AQ/n0iZcV8g== X-Received: by 10.200.38.102 with SMTP id v35mr10162584qtv.246.1486752091202; Fri, 10 Feb 2017 10:41:31 -0800 (PST) Received: from hbsd-dev-laptop.localnet ([63.88.83.66]) by smtp.gmail.com with ESMTPSA id c41sm2180159qtd.3.2017.02.10.10.41.30 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Feb 2017 10:41:30 -0800 (PST) From: Shawn Webb To: freebsd-virtualization@freebsd.org Subject: Re: Unable to create OpenBSD 6.0 bhyve guest Date: Fri, 10 Feb 2017 13:41:26 -0500 Message-ID: <3078780.Q0Erv8kLWO@hbsd-dev-laptop> Organization: HardenedBSD User-Agent: KMail/4.14.10 (FreeBSD/12.0-CURRENT-HBSD; KDE/4.14.10; amd64; ; ) In-Reply-To: <20170210183519.43f76q3fcfqrgipw@scotland.uxdom.org> References: <20170210181513.vtnq3ph5vmk3sbi4@scotland.uxdom.org> <1757175.5Lz3SQ4xSy@hbsd-dev-laptop> <20170210183519.43f76q3fcfqrgipw@scotland.uxdom.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1825349.tX8Et4uNqX"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2017 18:41:32 -0000 --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--