From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4MrTF73YBF9hfwAA0tVLHw (envelope-from ) for ; Tue, 07 Jul 2020 20:19:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id kLa5E73YBF9FAQAAB5/wlQ (envelope-from ) for ; Tue, 07 Jul 2020 20:19:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C53B7940B25 for ; Tue, 7 Jul 2020 20:19:08 +0000 (UTC) Received: from localhost ([::1]:57604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jsu3W-0002Rg-6F for larch@yhetil.org; Tue, 07 Jul 2020 16:19:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsu3O-0002RK-IB for help-guix@gnu.org; Tue, 07 Jul 2020 16:18:58 -0400 Received: from dustycloud.org ([50.116.34.160]:35084) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsu3M-0004Vj-SZ; Tue, 07 Jul 2020 16:18:58 -0400 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 66A9126617; Tue, 7 Jul 2020 16:18:54 -0400 (EDT) References: <87blkrgphk.fsf@dustycloud.org> <87h7ujayft.fsf@gnu.org> User-agent: mu4e 1.4.9; emacs 26.3 From: Christopher Lemmer Webber To: Jan Nieuwenhuizen Subject: Re: Port forwarding and `guix system vm` In-reply-to: <87h7ujayft.fsf@gnu.org> Date: Tue, 07 Jul 2020 16:18:53 -0400 Message-ID: <875zazgjte.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=50.116.34.160; envelope-from=cwebber@dustycloud.org; helo=dustycloud.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/07 16:18:54 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_NOVOWEL=0.5 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: NN9kmtMmrh21 Jan Nieuwenhuizen writes: > You want to add something like > > (service dhcp-client-service-type) ... doh, I can't believe I missed that. Thank you! > > In our chat on IRC I mentioned that adding this "-nic user,virtio-net-pci bit", > I mentioned that this gives me two eth devices: > > --8<---------------cut here---------------start------------->8--- > eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56 > inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:3 errors:0 dropped:0 overruns:0 frame:0 > TX packets:9 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:1314 TX bytes:1286 > > eth1 Link encap:Ethernet HWaddr 52:54:00:12:34:57 > inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:11 errors:0 dropped:0 overruns:0 frame:0 > TX packets:17 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:1784 TX bytes:1706 > > lo Link encap:Local Loopback > inet addr:127.0.0.1 Bcast:0.0.0.0 Mask:255.0.0.0 > UP LOOPBACK RUNNING MTU:65536 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:0 TX bytes:0 > --8<---------------cut here---------------end--------------->8--- I'm also seeing a duplicate network device as above. (Not sure if it's causing problems or not.) > I noticed this yesterday while struggled similarly, and found that > removing this bit from run-sh; like so: > > --8<---------------cut here---------------start------------->8--- > sed 's,-nic user[^ ]* ,,' /gnu/store/j8fqc160diq82da7913gpdlcjca45rhz-run-vm.sh > run-vm.sh > --8<---------------cut here---------------end--------------->8--- > > and running "run-vm.sh, will create only eth0. I blamed this second > eth1 device for my ssh'ing troubles...but I cannot reproduce that > today...dunno! > > Greetings, > Janneke It does seem like having two network devices bound to the same address would be ripe for a heisenbug though, right? So maybe...