all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Miroslav Rovis <miro.rovis@croatiafidelis.hr>
To: help-guix@gnu.org
Cc: pierre@2bst.fr
Subject: Re: Bad parameter to boot GuixSD in a VM
Date: Tue, 11 Apr 2017 22:38:44 +0200	[thread overview]
Message-ID: <20170411203844.GA14661@g0n.xdwgrp> (raw)
In-Reply-To: <871st0ctpw.fsf@gnu.org>

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

On 170410-14:50+0200, Ludovic Courtès wrote:
> Hello,
> 
> 良ϖ <p.de.boisset@gmail.com> skribis:
> 
> > I've followed instructions on this page:
> > https://www.gnu.org/software/guix/manual/html_node/Installing-GuixSD-in-a-VM.html
> >
> > Howeverpoint 3 ("Boot the USB installation image in an VM: ") gets:
> >
> > qemu-system-x86_64: -net default: Invalid parameter 'default'
> 
> This section should read:
> 
>   qemu-system-x86_64 -m 1024 -smp 1 \
>     -net user -net nic,model=virtio -boot menu=on \
>     -drive file=guixsd.img \
>     -drive file=guixsd-usb-install-@value{VERSION}.@var{system}
> 
> (It’s a typo in the manual fixed in commit
> d36b8457d04286b4db0543656eed69ae050ac783.)
> 
> > If I remove that parameter I get another error:
> >
> > WARNING: Image format was not specified for
> > 'guixsd-usb-install-0.12.0.x86_64-linux' and probing guessed raw.
> >          Automatically detecting the format is dangerous for raw
> > images, write operations on block 0 will be restricted.
> >          Specify the 'raw' format explicitly to remove the restrictions.
> 
> This is just a warning.
> 
> However, you really need networking support in the VM to install GuixSD.

Trying to understand the above (such as the manual in question
is probably where I'll link to below...), but...

..But I followed the guide to try and run Guix from VM:
https://www.gnu.org/software/guix/manual/html_node/Installing-GuixSD-in-a-VM.html#Installing-GuixSD-in-a-VM

and, this is from yesterday when I did my tentative installing and
running:

$ ls -ltrh guixsd.img
-rw-r--r-- 1 miro miro 193K 2017-04-10 04:45 guixsd.img
$

( created as the page says:
qemu-img create -f qcow2 guixsd.img 5G
)

And this is the script (installed in /usr/local/bin) that I used, and
will try and use again so the question is more complete:

=-=--===-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

#!/bin/sh
exec qemu-system-x86_64 \
		-m 1024 -smp 1 \
		-device virtio-net,netdev=internet \
		-netdev \
			bridge,br=br0,id=internet,helper=/usr/libexec/qemu-bridge-helper \
		-boot menu=on \
		-drive file=guixsd.img \
		-drive file=guixsd-usb-install-0.12.0.x86_64-linux \
		-monitor stdio

=-=--===-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

... (let me retry before sending this) ...

So, it goes like this:

$ GuixVM02.sh
WARNING: Image format was not specified for 'guixsd-usb-install-0.12.0.x86_64-linux' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
QEMU 2.8.0 monitor - type 'help' for more information
(qemu)

and I press Esc (not F12 like the manual says, or is that changed/corrected
now?, let me see, no it's not, it still says F12, and my Qemu said Esc), and I chose 2, like the manual says, and it is booting now...

But it's so slow...

I think I need to add "-enable kvm". That got the VM's of Devuan, Heads,
Refracta, Gentoo very fast.

But, even though, and I'll paste agin from the prompt of the host (the
host is my Gentoo machine):

(qemu) info network
virtio-net-pci.0: index=0,type=nic,model=virtio-net-pci,macaddr=52:54:00:12:34:56
 \ internet: index=0,type=tap,helper=/usr/libexec/qemu-bridge-helper,br=br0
(qemu)

[even though] the network is there, I still have, now I have to manually
copy (I mean: by typing):

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...

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.

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!

But, still no network... Hmmmh!

It's similar to the already reported above, regarding the network, basically.

Also the guixsd hasn't changed in the least. Same size, same timestamp.
Untouched by my trials.

Any ideas what to try?

-- 
Miroslav Rovis
Zagreb, Croatia
https://www.CroatiaFidelis.hr

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

  reply	other threads:[~2017-04-11 20:39 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 [this message]
2017-04-12  1:00     ` Leo Famulari
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=20170411203844.GA14661@g0n.xdwgrp \
    --to=miro.rovis@croatiafidelis.hr \
    --cc=help-guix@gnu.org \
    --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.