From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 13 03:31:00 2020 Received: (at 41785) by debbugs.gnu.org; 13 Jun 2020 07:31:00 +0000 Received: from localhost ([127.0.0.1]:40777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jk0cw-0006Uu-Ji for submit@debbugs.gnu.org; Sat, 13 Jun 2020 03:30:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jk0cu-0006Uh-RD for 41785@debbugs.gnu.org; Sat, 13 Jun 2020 03:30:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54146) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jk0cp-0002as-IA; Sat, 13 Jun 2020 03:30:47 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=33732 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jk0cj-0003xx-Nh; Sat, 13 Jun 2020 03:30:44 -0400 From: Jan Nieuwenhuizen To: Diego Nicola Barbato Subject: Re: [bug#41785] [PATCH] DRAFT services: Add 'hurd-in-vm service-type'. Organization: AvatarAcademy.nl References: <20200610085441.890-1-janneke@gnu.org> <87r1unm9xy.fsf@gnu.org> <87h7vhfk2y.fsf@gnu.org> <87tuzgyehe.fsf@gnu.org> <87v9jw8slq.fsf@GlaDOS.home> X-Url: http://AvatarAcademy.nl Date: Sat, 13 Jun 2020 09:30:39 +0200 In-Reply-To: <87v9jw8slq.fsf@GlaDOS.home> (Diego Nicola Barbato's message of "Fri, 12 Jun 2020 12:51:29 +0200") Message-ID: <87d063h17k.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 41785 Cc: Mathieu Othacehe , 41785@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Diego Nicola Barbato writes: Hi, > Jan Nieuwenhuizen writes: > > [...] > >> and the interwebs told me that to start the VM, you have to add "-cpu >> host"; so I started it using >> >> /gnu/store/k2b7nx34cwyi6yk49wgy4hg9mrwcmll5-run-vm.sh -cpu host -m >> 2G -device rtl8139,netdev=3Dnet0 -netdev >> user,id=3Dnet0,hostfwd=3Dtcp:127.0.0.1:10022-:2222,hostfwd=3Dtcp:127.0.0= .1:25900-:25900 >> >> >> and trying to "ssh -p 20022 localhost" from inside the bare-bones VM now >> prints >> >> qemu-system-i386: Slirp: Failed to send package, ret: -1 >> qemu-system-i386: Slirp: Failed to send package, ret: -1 >> qemu-system-i386: Slirp: Failed to send package, ret: -1 >> qemu-system-i386: Slirp: Failed to send package, ret: -1 >> qemu-system-i386: Slirp: Failed to send package, ret: -1 >> qemu-system-i386: Slirp: Failed to send package, ret: -1 >> key_exchange_identification: read: Connection reset by peer >> Connection reset by 127.0.0.1 port 20022 >> >> ...something networky with QEMU. Ideas? > > I've recently had intermittent issues with 'guix system vm' and hostfwd. > Does it help if you remove the '-nic user,model=3Dvirtio-net-pci' option > from (a copy of) the run-vm.sh script so that there's only one netdev? That's helpful! I now noticed that the QEMU command above I used was the one I have been using to start the Hurd, networking wise. After running --8<---------------cut here---------------start------------->8--- ./run-vm.sh -cpu host -m 2G -net nic -net user,id=3Dnet0,hostfwd=3Dtcp:127.= 0.0.1:10022-:2222,hostfwd=3Dtcp:127.0.0.1:5900-:25900,hostfwd=3Dtcp:127.0.0= .1:20022-:20022 --8<---------------cut here---------------end--------------->8--- I noticed that instead of two network interfaces, there is now just one, as expected; much better. No luck ssh'ing into the second VM, directly or indirectly. I'm not exploring this further as we don't have an actually need for this vm-in-vm thing. Greetings, Janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com