From owner-freebsd-virtualization@freebsd.org Mon Jul 15 01:31:00 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3D35EAD5E1 for ; Mon, 15 Jul 2019 01:31:00 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [174.136.98.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 716816FA65; Mon, 15 Jul 2019 01:30:59 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.206] (cpe-23-243-162-239.socal.res.rr.com [23.243.162.239]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 4481fc01 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; Mon, 15 Jul 2019 01:30:57 +0000 (UTC) Subject: Re: Custom Qcow2 Images To: Allan Jude , freebsd-virtualization@freebsd.org References: <459c53d0-f00b-6ce3-dfab-de3ddac1c0bb@nomadlogic.org> From: Pete Wright Message-ID: Date: Sun, 14 Jul 2019 18:30:56 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 716816FA65 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 174.136.98.114 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-5.85 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[nomadlogic.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-2.87)[ip: (-9.40), ipnet: 174.136.96.0/20(-4.62), asn: 25795(-0.26), country: US(-0.06)]; MX_GOOD(-0.01)[cached: mail.nomadlogic.org]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.68)[-0.678,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:25795, ipnet:174.136.96.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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: Mon, 15 Jul 2019 01:31:00 -0000 On 7/14/19 4:59 PM, Allan Jude wrote: > On 2019-07-14 19:37, Pete Wright wrote: >> Hey there folks, >> I am wondering if anyone has any pointers on creating a custom Qcow2 >> FreeBSD that is akin in size to nanobsd.  I have an environment where we >> need to run a single binary and want to keep our disk image as small as >> possible.  It will run inside a user-mode Qemu process.  Reading through >> the nanobsd script it seems that it expects a raw disk for installation, >> so I do think using the nanobsd script itself well work well.  Has >> anyone else done something similar?  My goal is to have a disk image >> that is around 500MB. >> >> Thanks in advance! >> -pete >> > I would expect the answer is `poudriere image` with a src.conf with many > WITHOUT_* knobs to disable things you don't need to get the image down > in size. There is likely a list of such knobs you could borrow from nanobsd. > Thanks Allan - I hadn't thought of using poudriere in this way, I'll give this a shot tonight! -p -- Pete Wright pete@nomadlogic.org @nomadlogicLA