From owner-freebsd-hackers@freebsd.org Wed Aug 16 23:40:37 2017 Return-Path: Delivered-To: freebsd-hackers@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 B9F2EDDA829 for ; Wed, 16 Aug 2017 23:40:37 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 78E0A74D1D for ; Wed, 16 Aug 2017 23:40:37 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTPS id 2B47920ADBEF for ; Thu, 17 Aug 2017 09:40:30 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id 20456281F28 for ; Thu, 17 Aug 2017 09:40:30 +1000 (AEST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id kvUZUEqhqcyc for ; Thu, 17 Aug 2017 09:40:29 +1000 (AEST) Received: from Peters-MacBook-Pro-2.local (96-82-80-65-static.hfc.comcastbusiness.net [96.82.80.65]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id C98E128099E; Thu, 17 Aug 2017 09:40:26 +1000 (AEST) Subject: Re: Install FreeBSD from source into VM image To: John Baldwin , freebsd-current@freebsd.org Cc: Panagiotes Mousikides , Matt Joras , "freebsd-hackers@freebsd.org" , allanjude@freebsd.org References: <8888acfa-4dc8-a68f-8ca8-c4df84e5e74a@yandex.com> <97d0475c-9603-03d8-144d-dc803e5530c7@FreeBSD.org> <9152fc29-125d-1c01-ecfa-740a1cfcaadd@yandex.com> <25569442.iT463nDDSg@ralph.baldwin.cx> From: Peter Grehan Message-ID: Date: Wed, 16 Aug 2017 16:40:23 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <25569442.iT463nDDSg@ralph.baldwin.cx> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=XKlAcUpE c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=mwgbnDbW7alINpy3vhoKyg==:17 a=IkcTkHD0fZMA:10 a=KeKAF7QvOSUA:10 a=a-xowN3dLo-_p0TWiDMA:9 a=QEXdDO2ut3YA:10 wl=host:3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Aug 2017 23:40:37 -0000 >> Error return from kevent monitor: Not permitted in capability mode ... > This sounds like an issue with the bhyve capsicum work. I've cc'd Allan > and Peter who might be able to help track that down. It might be useful > if you can run bhyve under ktrace, e.g.: > > sudo ktrace -i -t p sh /usr/share/examples/bhyve/vmrun.sh -d aaaa.raw vm-aaaa > > And then post the output of 'sudo kdump' I think this is the error now returned when a file doesn't exist or can't be accessed - the code probably needs to be reworked to test for existence before entering capability mode to make the error more meaningful. later, Peter.