From owner-freebsd-virtualization@freebsd.org Fri Feb 10 19:38:38 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 D4F15CD9BFF for ; Fri, 10 Feb 2017 19:38:38 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qt0-x22c.google.com (mail-qt0-x22c.google.com [IPv6:2607:f8b0:400d:c0d::22c]) (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 8AF38189E for ; Fri, 10 Feb 2017 19:38:38 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qt0-x22c.google.com with SMTP id v23so44679261qtb.0 for ; Fri, 10 Feb 2017 11:38:38 -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=az3PdLlhrvnzWaCoM+TlEKQmm2RGdp2RuFbodiJrIcQ=; b=pvIX5u5h65tVJMK2Y8cwyI7Ilk9jLBJyRLWTye8Vk92fGK1iNh34fu7STM6zf9cAoy QOT7dRbkMvaSd1gH9qqBeZwt+Vym+iYw/16EM6/kUSEZKx+3xBq5tGjiZ+Oex1OhjIP/ mB8v0ocgdeQjx79o3RMtuuNYJXHPSQoxxEeSHiV09iYsWKd9z36AfxXLb2TDhsMYGYad 7Mjgth8XLmRqrW96WpJBFqdt7zRc9ZTw1L1LOSF5RvpD0XTTo7e2ulndeWR8SHOQaUNe FIEdwSwpNDUjIu69ScTVyq50mImuuHYS6czRQUXO+78RCJZbXkyWCiGVyin4m0MEzSTC PgHA== 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=az3PdLlhrvnzWaCoM+TlEKQmm2RGdp2RuFbodiJrIcQ=; b=SWaY6E8XfRN/eEr56VN0QI+FVonSZKU5Ra4FHuEHo+sakniJNr1A1TURTPr0T93Ete FYDH+Aom/YlVP4d4dc67AYqZ9gsj1rNtfI9PzSUyDIv0bpC+vz2biXGBEwzH1ihLZi+h VzBOpP1SqZ29rO7ozHKI5E4SlqjEJPBda7i/0YYmfR5zo/LpX/EkGJuVfU1iSyvwSGDh fO50yr+jMVfU4TqYYleOqXn4D8EUFmMWhcevghVnYgkaPRK0Cbx+YclId/7Auj0ZN9n6 cjSuNzSqD7uZXMMEGzjlRVuvTnrf5C1Yb0t4y0jy930PRPWAgFAI5KBeMRzaNKWMpIhc t4nw== X-Gm-Message-State: AMke39mkB3pNq5JH7Vks2qHLXs+g/12MI4iykn808Pkt0islifR8C82jQff5aSxf1rU8wTxbH4ixYCD5ABT6h29aeDgBmLze6+qgGigmbw6pX9Io72KjljwTXx2OH5MSrsFTLzVFIlCr6TUKfOMfLXQGxoiBEmhPmOU6PGMZH0GPCbgbMn+UBz4Z+vdyEyLwTEBTQHku7DTZfHgwWw== X-Received: by 10.200.35.250 with SMTP id r55mr9634308qtr.162.1486755517475; Fri, 10 Feb 2017 11:38:37 -0800 (PST) Received: from hbsd-dev-laptop.localnet ([63.88.83.66]) by smtp.gmail.com with ESMTPSA id n42sm513965qtn.58.2017.02.10.11.38.36 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Feb 2017 11:38:36 -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 14:38:32 -0500 Message-ID: <2144273.B4WGz7OOyR@hbsd-dev-laptop> Organization: HardenedBSD User-Agent: KMail/4.14.10 (FreeBSD/12.0-CURRENT-HBSD; KDE/4.14.10; amd64; ; ) In-Reply-To: <3078780.Q0Erv8kLWO@hbsd-dev-laptop> References: <20170210181513.vtnq3ph5vmk3sbi4@scotland.uxdom.org> <20170210183519.43f76q3fcfqrgipw@scotland.uxdom.org> <3078780.Q0Erv8kLWO@hbsd-dev-laptop> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1791637.eIZRMyCSci"; 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 19:38:38 -0000 --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--