From owner-freebsd-hackers@freebsd.org Mon Aug 14 18:49: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 7B011DDD273; Mon, 14 Aug 2017 18:49:37 +0000 (UTC) (envelope-from matt.joras@gmail.com) Received: from mail-qt0-f194.google.com (mail-qt0-f194.google.com [209.85.216.194]) (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 422FD69744; Mon, 14 Aug 2017 18:49:36 +0000 (UTC) (envelope-from matt.joras@gmail.com) Received: by mail-qt0-f194.google.com with SMTP id d10so10420747qtb.4; Mon, 14 Aug 2017 11:49:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=bRgszLATcv5yYWIJdZGI6ujptpdXwEcPjLrTvZdAsjU=; b=m9iaugAWjdLJSaFurAigP2YmkYNYVdZvdum0MJTA759owxbs6DDyAx2UQCJXOlK8jU nNpHDZ6fgZUJaeCJOmNNkcUjjZWnV17o1/QUNe2s1KwWxATfVdJkcnI7NI6PytsEwCan 2pxjKXT9Pr6hKRNPbaSs4sl0xIQO90ZKV/XcNdmpWChxAj2udaa8KZZi7sGS8YOhdFJ8 fbl7NS2hkL5+3CSQaxhHevf+GbilM97Z5dk53r4Dir+aJb2hd8x03Y4T3mUBclEwF+Oa +f4fcfXkqkxIhRecvqd8B0NkkhvR5DCaDItfTWQg4umfRpFEQ+v+XXabupEttIwkVBqQ eM4Q== X-Gm-Message-State: AHYfb5gE0u6WFvTuYTwFaBg5p2nNF/oDHmFK4jpoD05itHb+FIu2Pykj w+j8Z9FydZabStQFX7Y= X-Received: by 10.200.38.243 with SMTP id 48mr32777657qtp.130.1502736569873; Mon, 14 Aug 2017 11:49:29 -0700 (PDT) Received: from [192.168.2.122] (71-212-76-202.tukw.qwest.net. [71.212.76.202]) by smtp.gmail.com with ESMTPSA id s22sm5711944qte.92.2017.08.14.11.49.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Aug 2017 11:49:29 -0700 (PDT) Subject: Re: Install FreeBSD from source into VM image To: Panagiotes Mousikides , FreeBSD Current , "freebsd-hackers@freebsd.org" References: <8888acfa-4dc8-a68f-8ca8-c4df84e5e74a@yandex.com> From: Matt Joras Message-ID: <97d0475c-9603-03d8-144d-dc803e5530c7@FreeBSD.org> Date: Mon, 14 Aug 2017 11:49:27 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <8888acfa-4dc8-a68f-8ca8-c4df84e5e74a@yandex.com> Content-Type: text/plain; charset=utf-8 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: Mon, 14 Aug 2017 18:49:37 -0000 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