From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 09/10] vm: Honor 'QEMU_FLAGS' and 'QEMU_NET_FLAGS'. Date: Tue, 19 Jul 2016 22:35:13 +0200 Message-ID: <87shv5e58e.fsf@gnu.org> References: <20160709125011.24587-1-david@craven.ch> <20160718165552.1480-1-david@craven.ch> <20160718165552.1480-9-david@craven.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPbjd-0006Bz-Be for guix-devel@gnu.org; Tue, 19 Jul 2016 16:35:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPbjZ-0004I6-9J for guix-devel@gnu.org; Tue, 19 Jul 2016 16:35:20 -0400 In-Reply-To: <20160718165552.1480-9-david@craven.ch> (David Craven's message of "Mon, 18 Jul 2016 18:55:51 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: David Craven Cc: guix-devel@gnu.org David Craven skribis: > * gnu/system/vm.scm (common-qemu-options): Add 'QEMU_FLAGS' and > 'QEMU_NET_FLAGS'. > --- > gnu/system/vm.scm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm > index c31e3a8..9f52909 100644 > --- a/gnu/system/vm.scm > +++ b/gnu/system/vm.scm > @@ -462,11 +462,11 @@ with '-virtfs' options for the host file systems li= sted in SHARED-FS." > "") > " -no-reboot -net nic,model=3Dvirtio \ > " #$@(map virtfs-option shared-fs) " \ > - -net user \ > + -net user,$QEMU_NET_FLAGS \ > -vga std \ > -drive file=3D" #$image > ",if=3Dvirtio,cache=3Dwriteback,werror=3Dreport,readonly \ > - -m 256")) > + -m 256 $QEMU_FLAGS")) When is this needed? =E2=80=98guix system vm=E2=80=99 returns a script tha= t appends its arguments, so you can do: $(guix system vm foo.scm) -m 1024 -net foo,bar Ludo=E2=80=99.