From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miroslav Rovis Subject: Re: Bad parameter to boot GuixSD in a VM Date: Tue, 11 Apr 2017 22:38:44 +0200 Message-ID: <20170411203844.GA14661@g0n.xdwgrp> References: <871st0ctpw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cy2Zh-0000O9-0Q for help-guix@gnu.org; Tue, 11 Apr 2017 16:39:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cy2Zd-0002LE-RG for help-guix@gnu.org; Tue, 11 Apr 2017 16:39:40 -0400 Content-Disposition: inline In-Reply-To: <871st0ctpw.fsf@gnu.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org Cc: pierre@2bst.fr --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 170410-14:50+0200, Ludovic Court=C3=A8s wrote: > Hello, >=20 > =E8=89=AF=CF=96 skribis: >=20 > > 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' >=20 > This section should read: >=20 > qemu-system-x86_64 -m 1024 -smp 1 \ > -net user -net nic,model=3Dvirtio -boot menu=3Don \ > -drive file=3Dguixsd.img \ > -drive file=3Dguixsd-usb-install-@value{VERSION}.@var{system} >=20 > (It=E2=80=99s a typo in the manual fixed in commit > d36b8457d04286b4db0543656eed69ae050ac783.) >=20 > > 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. >=20 > This is just a warning. >=20 > 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... =2E.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-V= M.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: =3D-=3D--=3D=3D=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D #!/bin/sh exec qemu-system-x86_64 \ -m 1024 -smp 1 \ -device virtio-net,netdev=3Dinternet \ -netdev \ bridge,br=3Dbr0,id=3Dinternet,helper=3D/usr/libexec/qemu-bridge-helper \ -boot menu=3Don \ -drive file=3Dguixsd.img \ -drive file=3Dguixsd-usb-install-0.12.0.x86_64-linux \ -monitor stdio =3D-=3D--=3D=3D=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D =2E.. (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, wr= ite 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), an= d 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=3D0,type=3Dnic,model=3Dvirtio-net-pci,macaddr=3D52:= 54:00:12:34:56 \ internet: index=3D0,type=3Dtap,helper=3D/usr/libexec/qemu-bridge-helper,= br=3Dbr0 (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: =3D-=3D--=3D=3D=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D #!/bin/sh exec qemu-system-x86_64 \ -machine type=3Dq35,accel=3Dkvm \ -enable-kvm \ -cpu host \ -device virtio-net,netdev=3Dinternet \ -netdev \ bridge,br=3Dbr0,id=3Dinternet,helper=3D/usr/libexec/qemu-bridge-helper \ -m 4196M \ -monitor stdio \ -boot menu=3Don \ -drive file=3Dguixsd.img \ -drive file=3Dguixsd-usb-install-0.12.0.x86_64-linux=20 =3D-=3D--=3D=3D=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D Oh, yes! This is maybe 10 times faster! But, still no network... Hmmmh! It's similar to the already reported above, regarding the network, basicall= y. Also the guixsd hasn't changed in the least. Same size, same timestamp. Untouched by my trials. Any ideas what to try? --=20 Miroslav Rovis Zagreb, Croatia https://www.CroatiaFidelis.hr --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE/PEyRe0kfc5EOFW36piEiE+68K4FAljtPtAACgkQ6piEiE+6 8K7XyBAAj5H3nQcxJdgU4hUOPo2goWzXvHk/VCsu7gy/FRs7e9XEf8a4nHHL54hA haqu3hdHAlU7VND76rgnNFrrUOFYUHElMXTqjFW5bhFNE/eoFsqH0+J+RxcbHfo8 1GtYZ03E/dyA8YXfDvkwXv7vr/CiOtCLCM5mr20Aypz+jTZ32xeknpE1myUK6cYc jjO8wR+xKglnsEVX42NDFIJ0NfX8tTjsEmuOxXu2DJAWH8H/nGLczGptbM+ufPsN +TmjmWn4prXyS5Wj0G0nxAoxZNOJiZ+1BB5rNzis1m811kUq+6h7bKkzW1xxYwBe YhNrlSsfNRJ06Orvs550d/7xD7Inf3T9UI7er+pSHnA9aywVtmQ8dhfsn+Gc+n1+ qweWPg717JssGi+KqexJc5s+nQZ0TRV2g68B/PBleMfrr88nbpXkfA7OKE/z3Nie P7Pgl5a/y6YnPzEXocnbH5xZjO+dO5EY7HBAhSW5uI8G0bslbFWBP1nfeo1BPOPp 4T9PGLC8kR2m1RKdReIi4Z0mFiYL8W6kKpgX1HbKO81rFWIVuEr2KPb8hbrbXJ5u RLRUPy6aMvaCNtX0mIMm0tSEjBGDFrxZyxzcROUFS2Egt1gh2KA1Twzi+w3apDaQ F7G8HdRg7188i/Cz4Wm/4Eym/mUZIe/XHZ48jLU59D6P7GKlT68= =PdMB -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--