From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: Network with QEMU generated image (guix system vm)? Date: Wed, 28 Sep 2016 12:42:47 +0000 Message-ID: <87oa38qjp4.fsf@we.make.ritual.n0.is> References: <87pont13rh.fsf@we.make.ritual.n0.is> <878tuc5so8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpECh-0007Vd-18 for guix-devel@gnu.org; Wed, 28 Sep 2016 08:43:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpECc-0008Nd-Qs for guix-devel@gnu.org; Wed, 28 Sep 2016 08:43:13 -0400 Received: from aibo.runbox.com ([91.220.196.211]:46283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpECc-0008MS-Ko for guix-devel@gnu.org; Wed, 28 Sep 2016 08:43:10 -0400 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1bpECa-0007lR-65 for guix-devel@gnu.org; Wed, 28 Sep 2016 14:43:08 +0200 Received: from x5d83e56d.dyn.telefonica.de ([93.131.229.109] helo=localhost) by mailfront12.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1bpECI-0001kH-JA for guix-devel@gnu.org; Wed, 28 Sep 2016 14:42:50 +0200 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel David Craven writes: >> It should be enough to add “-net user” on the run-vm.sh command line >> (info "(guix) Running GuixSD in a VM"), and then having a DHCP client >> run inside the VM, such as ‘dhcp-client-service’. > > Ah, yes this probably needs some documentation. Also should include an > explanation why the flag isn't added by default and how to connect to > a ssh server running in the vm. > >> Currently I can't ping > > You can't ping a vm anyway since it emulates the TCP/UDP layers I > think and no ICMP. [0] > > [0] http://unix.stackexchange.com/questions/78953/qemu-how-to-ping-host-network The solutions they describe in the stackexchange answers are some of those "simple" solutions which look even more "simple" to apply on GuixSD than on other systems, like every "simple" solution you find somewhere. What I mean is, I expect this feature (tcp connections in/out to/from "the internet" to vm) to work in guix system vm, as it is a normal expectation coming from NixOS and Gentoo that it just works without any added specialities. As I don't want to spend another week experimenting with this, I will just reconfigure my build server to run from a guix git checkout and test the services directly there. I am working on a system which wraps itself around GuixSD, sort of like an live-system but specific to some preconfigured applications, and I've set phases for myself. I'm stuck on phase I for too long now. Most if not all of what this is will be upstreamed, so at some point you'll see where this getting. -- ng0