From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: Re: [PATCH 1/9] system: vm: Remove -net user flag. Date: Sat, 3 Sep 2016 15:44:58 +0200 Message-ID: References: <20160901155711.7388-1-david@craven.ch> <87vayeim5r.fsf@we.make.ritual.n0.is> <87lgz9m7ba.fsf@gnu.org> 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]:58283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgBFp-00059D-Gs for guix-devel@gnu.org; Sat, 03 Sep 2016 09:45:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgBFl-0003Fl-Au for guix-devel@gnu.org; Sat, 03 Sep 2016 09:45:04 -0400 Received: from mail-yw0-x22a.google.com ([2607:f8b0:4002:c05::22a]:34415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgBFk-0003EU-3W for guix-devel@gnu.org; Sat, 03 Sep 2016 09:45:01 -0400 Received: by mail-yw0-x22a.google.com with SMTP id g192so26963382ywh.1 for ; Sat, 03 Sep 2016 06:44:58 -0700 (PDT) In-Reply-To: <87lgz9m7ba.fsf@gnu.org> 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: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: guix-devel > I sympathize with this; what problems are you referring to? > > The reason for =E2=80=9C-net user=E2=80=9D is that it allows me to run = =E2=80=9Cdhclient -v > eth0=E2=80=9D in the VM and get access to the network, which is often wha= t I > want. I usually have the need to add my own flags most of the time anyway. This is the script I usually use - the line marked > doesn't take effect when a -net user flag was already provided: $($HOME/guix/pre-inst-env guix system vm server-configuration.scm) \ > -net user,hostfwd=3Dtcp::10022-:22 \ -vga virtio \ -device virtio-rng-pci,bus=3Dpci.0,addr=3D0x10 \ -spice port=3D5930,disable-ticketing \ -device virtio-serial-pci,id=3Dvirtio-serial0,max_ports=3D16,bus=3Dpci.= 0,addr=3D0x5 \ -chardev spicevmc,name=3Dvdagent,id=3Dvdagent \ -device virtserialport,nr=3D1,bus=3Dvirtio-serial0.0,chardev=3Dvdagent,= name=3Dcom.redhat.spice.0>