From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miroslav Rovis Subject: Re: Bad parameter to boot GuixSD in a VM Date: Wed, 12 Apr 2017 13:13:29 +0200 Message-ID: <20170412111329.GA7450@g0n.xdwgrp> References: <871st0ctpw.fsf@gnu.org> <20170411203844.GA14661@g0n.xdwgrp> <20170412010043.GA5129@jasmine> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyGFT-0000V2-W4 for help-guix@gnu.org; Wed, 12 Apr 2017 07:15:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyGFO-0007XI-PM for help-guix@gnu.org; Wed, 12 Apr 2017 07:15:43 -0400 Received: from alt1.smtp6.plusvps.com ([89.201.164.169]:47033) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cyGFO-0007Wk-EM for help-guix@gnu.org; Wed, 12 Apr 2017 07:15:38 -0400 Received: from lin22.mojsite.com ([178.218.165.68]) by smtp6.plusvps.com with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1cyGFG-0002ml-M1 for help-guix@gnu.org; Wed, 12 Apr 2017 13:15:30 +0200 Content-Disposition: inline In-Reply-To: <20170412010043.GA5129@jasmine> 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, pierre@2bst.fr --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable A part reply (since I'm not sure to find time soon for more detailed reply on some of the issues broght up, which I would very much like, but not sure will be able to). On 170411-21:00-0400, Leo Famulari wrote: > On Tue, Apr 11, 2017 at 10:38:44PM +0200, Miroslav Rovis wrote: >=20 > Hi, thanks for the detailed feedback! Your're most welcome. I'm really glad you find it useful.=20 > 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. I see. >=20 > > root@gnu ~# ping www.gnu.org > > ping: unknown host > > root@gnu ~# > > > > Previously I ran "ip a", nothing really shows... And afterwards I tried: > >=20 > > 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 > >=20 > > but none of those seems to be installed. > >=20 > > In short, no network in the Guix guest... >=20 > There is a built-in network client `guix download` that you could try. I will, as soon as I find time to. Mainly this `guix download` I have to leave for later... (That's the part I'll possibly go back to, in the future. Possibly.) > There was (is?) a bug related to name resolution failures being cached > for too long in certain cases: >=20 > Looked it up, but not enough to understand it more fully... yet. (another part for later) > So, I connect to a well-known IP address like 8.8.8.8 in order to test > the network. Oh, no, just not Schmoog the Schmoogle, pls. :-) I don't recommend the Schmoog to anybody. My opinion. Freely disregard it of course. However, few people can dispute that the Schmoog are the toughest surveillors on the world, that Sergey and Larry Schmoog made most of their moneys out of, essentially spying on everybody they could lay their tentacles on their electronic communications of any kind, so essentially they're spies, and they made their moneys with the aforesaid spying, and that their (mostly unwilling and unwitting) payers are, essentially tax payers via almost any, even almost every country's of the world secret agencies, from NSA to China's SA (whichever the name of it)... So... But again, I'm only reminding about the facts/claims aforementioned, and anybody's opinion is free to differ. I'm done reminding. Moving on (unless there should be a need to consider replies in regard). > As an aside, the unprivileged "user mode" QEMU networking system doesn't > support ICMP, so if you were using that, ping won't work. >=20 > > 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. >=20 > I looked into this previously, and I decided to keep the old '-net user' > syntax in the examples we provide. >=20 > My reason is that '-netdev user' requires the user to specify a unique > 'id' parameter, while '-net user' does not. May be. I'm not even advanced with Qemu... More below... > 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. >=20 > Is there some limitation with '-net user' that we should consider for > the examples in the manual? Not that I know of, but I did find, back a few months ago when I dedicated hours upon hours for my first long reading of Qemu manual, and wikis in various places about Qemu, that it was much better (the cited reasons I don't remember clearly at this time) to use "-netdev ...". > > Let me try another script: > >=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 > >=20 > > #!/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-help= er \ > > -m 4196M \ > > -monitor stdio \ > > -boot menu=3Don \ > > -drive file=3Dguixsd.img \ > > -drive file=3Dguixsd-usb-install-0.12.0.x86_64-linux=20 > >=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 > >=20 > > Oh, yes! This is maybe 10 times faster! >=20 > Yes, KVM will do that :) >=20 > > But, still no network... Hmmmh! >=20 > Hm, I'm not sure what's wrong. I assume that the TAP device is properly > configured in your host system? Yes it is. If it wasn't, how would I be able to connect to internet my VMs running Devuan, Refracta, Tails, Gentoo, Heads (each in their time, I run simple Qemu one at a time), if it wasn't... > 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... Yes it is, I remember that much. Actually now I'll tell the "more" which I promised above. I essentially created my scripts following various tutuorials and copying btwn various scripts what got the previous ones running... ;-) Wow! how clever of me, how expertly done ;) ;) ;) ;)=20 And I actually wasn't able to get the use more networking! I think with none or hardly one of the various VMs mentioned (and if I did with one of the above, I don't remember which one it was anymore)... I don't understand much at all (and maybe won't any time soon, nor later either) on the programming side of it... But I do start those few VMs of various kind (mentioned above) without much issues most of them these days, and half a year ago, I wasn't able to, say, get the network working on any of the ISOs I was trying back then... I wish in some more time that I would learn more and be able to test for good FOSS like Guix! Regards! --=20 Miroslav Rovis Zagreb, Croatia https://www.CroatiaFidelis.hr --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE/PEyRe0kfc5EOFW36piEiE+68K4FAljuC9QACgkQ6piEiE+6 8K7gvQ/+L0dqJ9sB+gLAld3wOEbl4ijD7cMVBfRm8DGZDmC6CnWagFIYchugPl90 TS0GwOLU7aXO8kwdMbm50YFsMq1nFJhVtWBiheWCYbZhPFaHvMZ/EUWEGQj/R+Kx xVXb+ovulcJ8WpbIrmL+V2Bejnqd/G8418Sgu7w8RsPHWWIU2BYrGak3CuOv28Mq ZwJ2PcOmi8xklhoQTQGIfjrREYU4dvt/YsucmkWu4Y5EKDQ2z8p6sz1T2pDO29m9 MffjAMc2dpOaRV6KTD83w7A9y7qch3lT8DlIKiQTsx4Mc2vW/0wT/Zx6Bfl+Dn7u 8EMcEwGfNrK3JdifiISPiy/HQD6xo4vzkKk5PjWAcKrBJ52lEp2rEfhHYwf0GHwb wIGDJ/n+PEUP/8g6agQVmQQwtyV6lxxcY59MPcY8hA6JFsxh+XjR4EgZyrbaiOpl 8X9qIcXccb//+6dN91l8AVKIg68LFKhAwqDDeamMhwP0pIyeyfrYPP+v3JGUND0M Z43AqfK26wNg81cVQMmMNfT+53AxLkq+cwSoGzqC/ddwaQyvwsblQEswZ3mgXn6i BViOZq2Oer/xj27TwYbri3MX0njA2jTvsm6VK5ajvSfpEN0vZRBkUMOR51+Muc1l /AB0bOZC33OFI/c03dJGdD9MUJIr0EbEqnUDl8RacbaXFBZnvWE= =Rkej -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm--