From owner-freebsd-virtualization@freebsd.org Fri Feb 10 18:35:24 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 6F2D0CD9652 for ; Fri, 10 Feb 2017 18:35:24 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-wr0-x22f.google.com (mail-wr0-x22f.google.com [IPv6:2a00:1450:400c:c0c::22f]) (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 0F96AC9F for ; Fri, 10 Feb 2017 18:35:23 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mail-wr0-x22f.google.com with SMTP id k90so114020078wrc.3 for ; Fri, 10 Feb 2017 10:35:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=yfDfmxfhT/N+W9MSFkLGUSn5GR+cidHPRoEgPVaoKVI=; b=VptYoVYTlMHFrrbYbQsuFnADEaDLs0myA5DPAC5cTpbaYbl9OshOSUuDgagsOq5DN7 iHlbKY/51V9m2TWG4zBO2qpOrKCABw7SQNF6EtYmZSNgWB7HGnFSE1LpGz+SNnD0BTdK /pJN8WIRBPo7avc2ZDOEb0vrxCSEAXSS9jah6A4vcRZ5vQYAYzdm58Ee6v0eCeE7SAEt MLYHN4bOZZ49EnxCGHt3OHShh5VEdFMj5X0ilbKHfmsCSsvcOpENuYuknVRs1LlOrwop BjnuXMAhcKbi5jxxslapLIJyzavnuIu0O0OGSs6cOkUMuAc3vCi3U5BWuUxtCO3ICGaZ +Bjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=yfDfmxfhT/N+W9MSFkLGUSn5GR+cidHPRoEgPVaoKVI=; b=AV4C/ApNQI3RqNMi4kGwRJVShC1JMYEIe1J5KQDnfMW0fc7EzlxykMnDrST6UYh6u4 7w6dTFDbp+th6+qSR0X9kprrn7joFFd1J9RLrbWiHi8oTptTnUeejLbTAe1ORDuRky6d w4K++4Bp1H+4MqqqOikEHdXcsfG25z0+iFGG+SOumzyuK2Ac65lYMK2BCXdVvaX86uom hkH7NoLUewmpsyZfGniZkq3khnLT1kuicPRZzuUH+TMSMWTh0kjtBhZ4DKu6VwohTYcj zN1BumjS3E6Z79gjyR+5ajQaCzNJQ6JmCtZtVG9+v6nUbwsgUtg0ZbO7aeIjMolNwioU IGug== X-Gm-Message-State: AMke39miRwQHl1M1CoJ004hqw9ARGAoNuPCZSm6MV13d780R/a63F9y4LuLbawWw9xx/hQ== X-Received: by 10.223.154.165 with SMTP id a34mr8768242wrc.193.1486751721139; Fri, 10 Feb 2017 10:35:21 -0800 (PST) Received: from localhost ([185.86.10.22]) by smtp.gmail.com with ESMTPSA id q1sm2567832wmd.6.2017.02.10.10.35.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Feb 2017 10:35:20 -0800 (PST) Date: Fri, 10 Feb 2017 18:35:19 +0000 From: "C. L. Martinez" To: freebsd-virtualization@freebsd.org Subject: Re: Unable to create OpenBSD 6.0 bhyve guest Message-ID: <20170210183519.43f76q3fcfqrgipw@scotland.uxdom.org> References: <20170210181513.vtnq3ph5vmk3sbi4@scotland.uxdom.org> <1757175.5Lz3SQ4xSy@hbsd-dev-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1757175.5Lz3SQ4xSy@hbsd-dev-laptop> User-Agent: NeoMutt/20170113 (1.7.2) 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:35:24 -0000 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, > > > > I am trying to create an OpenBSD 6.0 virtual guest under FreeBSD 11 bhyve > > server. When I try list cd contents, segmentation faults appears: > > > > grub-bhyve -d /data/vms/conf/obsdfwwif -m device.map -r cd0 obsdfwwif > > > > > > GNU > > GRUB version 2.00 > > > > Minimal BASH-like line editing is supported. For the first word, TAB > > lists possible command completions. Anywhere else TAB lists possible device > > or file completions. > > > > > > grub>ls > > Segmentation fault > > > > Hey C.L. Martinez, > > This is because grub-bhyve creates memory mappings that are both writable and > executable, something that is disallowed by default on HardenedBSD. > > You'll need to add a secadm rule to disable pageexec and mprotect restrictions > for grub-bhyve. You can find a sample rule here: > > https://github.com/HardenedBSD/secadm-rules/blob/master/grub-bhyve.rule > > Thanks, > > -- 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 problem with memory according memtest says ... -- Greetings, C. L. Martinez