From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnOcm-0002NE-B1 for guix-patches@gnu.org; Thu, 31 Aug 2017 08:31:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnOcg-0005LM-NK for guix-patches@gnu.org; Thu, 31 Aug 2017 08:31:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:55940) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dnOcg-0005KI-Ft for guix-patches@gnu.org; Thu, 31 Aug 2017 08:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dnOcg-0005vA-9L for guix-patches@gnu.org; Thu, 31 Aug 2017 08:31:02 -0400 Subject: [bug#28198] [PATCH 1/4] vm: Add disk-image-size to . Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170823101831.72c11e2f@cbaines.net> <20170823092516.6846-1-mail@cbaines.net> Date: Thu, 31 Aug 2017 14:29:56 +0200 In-Reply-To: <20170823092516.6846-1-mail@cbaines.net> (Christopher Baines's message of "Wed, 23 Aug 2017 10:25:13 +0100") Message-ID: <87y3pzudh7.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Christopher Baines Cc: 28198@debbugs.gnu.org Hi Chris, Christopher Baines skribis: > * gnu/system/vm.scm (): Add > disk-image-size. > (port-forwardings->qemu-options): Use disk-image-size from > . In which case is it useful? Perhaps if you want to create lots of data on the root file system in the MongoDB test? Currently builds a shared-store VM (like =E2=80=98guix sy= stem vm=E2=80=99) in which the root file system has a fixed size that=E2=80=99s = usually good enough. > --- a/gnu/system/vm.scm > +++ b/gnu/system/vm.scm > @@ -653,6 +653,8 @@ it is mostly useful when FULL-BOOT? is true." > (default #f)) > (memory-size virtual-machine-memory-size ;integer (MiB) > (default 256)) > + (disk-image-size virtual-machine-disk-image-size ;integer (bytes) > + (default (* 70 (expt 2 20)))) I think we can use 'guess here as the default value (and we should do the same in places where #:disk-image-size has an arbitrary default.) Ludo=E2=80=99.