From owner-freebsd-hackers@freebsd.org Wed Aug 16 12:57:31 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 88F8FDDA6B9; Wed, 16 Aug 2017 12:57:31 +0000 (UTC) (envelope-from paggas1@yandex.com) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 403C6822CE; Wed, 16 Aug 2017 12:57:31 +0000 (UTC) (envelope-from paggas1@yandex.com) Received: from mxback5g.mail.yandex.net (mxback5g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:166]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 42A0156039FD; Wed, 16 Aug 2017 15:57:27 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback5g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 34GbflkV8K-vRoCI82p; Wed, 16 Aug 2017 15:57:27 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1502888247; bh=NkwE5CrTfie/hITH7u+LgZQ9tTX/QWJM03tMQFxHSeo=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=VPDL3mbK9EkyeLScmLcA47K/mAFi0FZ2GVC3sfx62bekgBjllMOUQF7oN1YAiSENI R1BneKa+BkBOz+yo2yfAQsSzUYC+M68TVfR4zG/hd1m1Cn84d2nFoU7hgwZPN1Qgod 10XoY5bQjDofmIWqtGJeFvzwTzyj/bgud1brvx0I= Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 4Z2x1DThGp-vQdWHAlZ; Wed, 16 Aug 2017 15:57:26 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1502888246; bh=NkwE5CrTfie/hITH7u+LgZQ9tTX/QWJM03tMQFxHSeo=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=dXxjTTkIGnnCUbMjZjajoaGycrphAjNwfUt1qbK8u+73R/Cq5pnIhva5H9EYAksaf yFVtK31h56jvwE09hQdl4nom5npYuBvYhhlkT72iXHoLPic8nxQQ+Vd7m2fsmf3fAz M9zn4AHxvBxnXd9MgjabX8+gQtD4iuEnEjOtMHHM= Authentication-Results: smtp2p.mail.yandex.net; dkim=pass header.i=@yandex.com Subject: Re: Install FreeBSD from source into VM image To: Matt Joras , FreeBSD Current , "freebsd-hackers@freebsd.org" References: <8888acfa-4dc8-a68f-8ca8-c4df84e5e74a@yandex.com> <97d0475c-9603-03d8-144d-dc803e5530c7@FreeBSD.org> From: Panagiotes Mousikides Message-ID: <9152fc29-125d-1c01-ecfa-740a1cfcaadd@yandex.com> Date: Wed, 16 Aug 2017 12:57:25 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <97d0475c-9603-03d8-144d-dc803e5530c7@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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 12:57:31 -0000 Den 2017-08-14 kl. 18:49, skrev Matt Joras: > On 08/14/2017 11:42, Panagiotes Mousikides wrote: >> I am working on the FreeBSD test suite, and need to create an image >> file from source. How can I do that? >> >> I need to run something similar to make installkernel && make >> installworld with an image file as the target, such that the end >> result is a ready-made FreeBSD system that can be started up with >> bhyve. How can I do that, including creating the correct /etc files, >> and the correct boot code and partitioning? >> > See release(7), https://www.freebsd.org/cgi/man.cgi?release(7). The > relevant section is under virtual machine disk images and the vm-image > target. The VMFORMATS for bhyve is "raw". That will generate an image > that "just works" with vmrun.sh > > Matt Joras > Hi Matt! Thank you so much for the tip! I tried what you recommended, the command I ran specifically was (inside release/) sudo make vm-image WITH_VMIMAGES=1 VMBASE=aaaa VMSIZE=2G VMFORMATS=raw VMSIZE=2G vm-image followed by sudo sh /usr/share/examples/bhyve/vmrun.sh -d aaaa.raw vm-aaaa but apparently the image generated doesn't work. The error I'm getting after hitting "1" at the boot screen is Error return from kevent monitor: Not permitted in capability mode repeatedly cascading through the screen. Any ideas? I would greatly appreciate your help! Best regards, Panagiotes