unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: dian_cecht@zoho.com
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 24943@debbugs.gnu.org
Subject: bug#24943: Error when starting a vm-image in qemu
Date: Fri, 18 Nov 2016 14:09:08 -0800	[thread overview]
Message-ID: <20161118220908.GA10079@khaalida> (raw)
In-Reply-To: <871sydgimv.fsf@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’.

  reply	other threads:[~2016-11-18 22:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-15  5:01 bug#24943: Error when starting a vm-image in qemu dian_cecht
2016-11-15 10:08 ` Ludovic Courtès
2016-11-18 22:09   ` dian_cecht [this message]
2016-11-19 17:48     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161118220908.GA10079@khaalida \
    --to=dian_cecht@zoho.com \
    --cc=24943@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).