From mboxrd@z Thu Jan 1 00:00:00 1970 From: dian_cecht@zoho.com Subject: bug#24943: Error when starting a vm-image in qemu Date: Fri, 18 Nov 2016 14:09:08 -0800 Message-ID: <20161118220908.GA10079@khaalida> References: <20161115050131.GA14613@khaalida> <871sydgimv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7rMD-0005Z4-Na for bug-guix@gnu.org; Fri, 18 Nov 2016 17:10:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7rMA-0001Kd-HM for bug-guix@gnu.org; Fri, 18 Nov 2016 17:10:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:47103) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c7rMA-0001KY-Dr for bug-guix@gnu.org; Fri, 18 Nov 2016 17:10:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c7rMA-0007cu-3y for bug-guix@gnu.org; Fri, 18 Nov 2016 17:10:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <871sydgimv.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 24943@debbugs.gnu.org I thought I had included that info, but yes that does work. Part of the reason for filing the bugreport was so that this case could be handled more elegantly instead of bugging out and dropping a user in the REPL. Unless one is a dev, the REPL might as well be a kernel panic, only without the (potentially) useful timeout. I'd personally prefer it if the image generated by vm-image could either A) Spit out an error that there isn't a networking device found and shutdown (not a fan, but if there is a reason vm-image /has/ to have a working network connection, this would likely be better. Including a chance to hit a key to drop a dev/advanced user into the REPL would be nice as well) or B) Spit out an error and finish the booting process, with guix complaining about no network connection any time it's needing to download something (easily the better option). Another option would be a a command for the REPL that would simply shut things down (which would likely be useful in more cases than just this, depending on how often a user might be staring at the REPL in case of critical errors). On Tue, Nov 15, 2016 at 11:08:40AM +0100, Ludovic Courtès wrote: > > ‘guix system vm-image’ produces an image that expects QEMU’s networking > interface available as eth0 inside the host, hence the error you were > getting. > > To enable that, I think you need to do: > > qemu-system-x86_64 -net user -net nic,model=virtio … > > See: > > https://www.gnu.org/software/guix/manual/html_node/Running-GuixSD-in-a-VM.html > > Could you try and report back? > > Thanks, > Ludo’.