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 09:12:47 +0000 Message-ID: <874m505qwg.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]:50406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpAvb-0007Nt-44 for guix-devel@gnu.org; Wed, 28 Sep 2016 05:13:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpAvV-0003Zp-Sc for guix-devel@gnu.org; Wed, 28 Sep 2016 05:13:22 -0400 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: David Craven , Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel > Hi, > 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’. > Does that help? > Ludo’. I will double check on dhcp-client-service, but afaik I already tried all variations of dhcp we can have in guix. I will try passing just this again. > > 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] Thanks for the answer, but as I've written in my initial question I don't want to ping the VM. I am creating a VM from a guix branch with ./pre-inst-env guix system and a config.scm of a specific system. I've read my initial post again and I can understand how you could draw this conclusion. So, I am not trying to ping the VM. I am inside the VM and my service needs an outbound connection to get an initial file into its home. To debug my service I need to test if I can ping gnu.org because connection fails in every configuration I have. With the normal qemu VMs running Gentoo in NixOS I have, I can use ping which is normal expected behavior. > [0] http://unix.stackexchange.com/questions/78953/qemu-how-to-ping-host-network -- ng0