all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Miroslav Rovis <miro.rovis@croatiafidelis.hr>
Cc: pierre@2bst.fr, help-guix@gnu.org
Subject: Re: Bad parameter to boot GuixSD in a VM
Date: Tue, 11 Apr 2017 21:00:43 -0400	[thread overview]
Message-ID: <20170412010043.GA5129@jasmine> (raw)
In-Reply-To: <20170411203844.GA14661@g0n.xdwgrp>

[-- Attachment #1: Type: text/plain, Size: 3069 bytes --]

On Tue, Apr 11, 2017 at 10:38:44PM +0200, Miroslav Rovis wrote:

Hi, thanks for the detailed feedback!

In general, the instructions in the manual related to QEMU are the
simplest QEMU invocations that will work for basic use cases. They are
intended to be something that a person without QEMU experience can use
to boot GuixSD in a virtualized environment. We assume that users will
adapt these examples to their use case if they plan to virtualize GuixSD
in production.

> root@gnu ~# ping www.gnu.org
> ping: unknown host
> root@gnu ~#
>
> Previously I ran "ip a", nothing really shows... And afterwards I tried:
> 
> root@gnu ~# curl https://www.gnu.org
> root@gnu ~# links https://www.gnu.org
> root@gnu ~# elinks https://www.gnu.org
> root@gnu ~# lynx https://www.gnu.org
> 
> but none of those seems to be installed.
> 
> In short, no network in the Guix guest...

There is a built-in network client `guix download` that you could try.

There was (is?) a bug related to name resolution failures being cached
for too long in certain cases:

<https://bugs.gnu.org/22209>

So, I connect to a well-known IP address like 8.8.8.8 in order to test
the network.

As an aside, the unprivileged "user mode" QEMU networking system doesn't
support ICMP, so if you were using that, ping won't work.

> And I was courious, why are you suggesting/recommending (in that manual)
> the old:
>  -net ...
> instead of the new:
>  -netdev ...
> ? The Qemu devs are firm that the new is better, IIUC.

I looked into this previously, and I decided to keep the old '-net user'
syntax in the examples we provide.

My reason is that '-netdev user' requires the user to specify a unique
'id' parameter, while '-net user' does not.

Since both syntaxes provide the same "user mode network stack", I
thought that the older and simpler syntax was better for the examples in
the manual. Remember, these are supposed to be the simplest examples
that will boot GuixSD with a network connection.

Is there some limitation with '-net user' that we should consider for
the examples in the manual?

> Let me try another script:
> 
> =-=--===-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 
> #!/bin/sh
> exec qemu-system-x86_64 \
> 		-machine type=q35,accel=kvm \
> 		-enable-kvm \
> 		-cpu host \
> 		-device virtio-net,netdev=internet \
> 		-netdev \
> 			bridge,br=br0,id=internet,helper=/usr/libexec/qemu-bridge-helper \
> 		-m 4196M \
> 		-monitor stdio \
> 		-boot menu=on \
> 		-drive file=guixsd.img \
> 		-drive file=guixsd-usb-install-0.12.0.x86_64-linux 
> 
> =-=--===-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 
> Oh, yes! This is maybe 10 times faster!

Yes, KVM will do that :)

> But, still no network... Hmmmh!

Hm, I'm not sure what's wrong. I assume that the TAP device is properly
configured in your host system?

The nice thing about the user-mode QEMU networking is that it doesn't
require any special configuration on the host. But of course it's very
limited...

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2017-04-12  1:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-09 18:59 Bad parameter to boot GuixSD in a VM 良ϖ
2017-04-10 12:50 ` Ludovic Courtès
2017-04-11 20:38   ` Miroslav Rovis
2017-04-12  1:00     ` Leo Famulari [this message]
2017-04-12 11:13       ` Miroslav Rovis
2017-04-12 14:32         ` Miroslav Rovis
2017-04-12 15:26         ` Leo Famulari
2017-04-20 18:53           ` Miroslav Rovis

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

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

  git send-email \
    --in-reply-to=20170412010043.GA5129@jasmine \
    --to=leo@famulari.name \
    --cc=help-guix@gnu.org \
    --cc=miro.rovis@croatiafidelis.hr \
    --cc=pierre@2bst.fr \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.