From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SGSrEaNatGBAKwEAgWs5BA (envelope-from ) for ; Mon, 31 May 2021 05:40:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QPAhDaNatGD5CAAA1q6Kng (envelope-from ) for ; Mon, 31 May 2021 03:40:19 +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 594EF261F4 for ; Mon, 31 May 2021 05:40:18 +0200 (CEST) Received: from localhost ([::1]:35224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnYml-0007lQ-G3 for larch@yhetil.org; Sun, 30 May 2021 23:40:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnYmZ-0007jz-3J for bug-guix@gnu.org; Sun, 30 May 2021 23:40:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49121) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnYmY-0001rd-RP for bug-guix@gnu.org; Sun, 30 May 2021 23:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnYmY-0006iy-NP for bug-guix@gnu.org; Sun, 30 May 2021 23:40:02 -0400 Subject: bug#48739: QEMU SSH hostfwd example from manual doesn't work anymore Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Mon, 31 May 2021 03:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 48739 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Eric Brown Mail-Followup-To: 48739@debbugs.gnu.org, maxim.cournoyer@gmail.com, maxim.cournoyer@gmail.com Received: via spool by 48739-done@debbugs.gnu.org id=D48739.162243239925831 (code D ref 48739); Mon, 31 May 2021 03:40:02 +0000 Received: (at 48739-done) by debbugs.gnu.org; 31 May 2021 03:39:59 +0000 Received: from localhost ([127.0.0.1]:60665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnYmV-0006iZ-GJ for submit@debbugs.gnu.org; Sun, 30 May 2021 23:39:59 -0400 Received: from mail-qv1-f45.google.com ([209.85.219.45]:34481) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnYmS-0006iK-2M for 48739-done@debbugs.gnu.org; Sun, 30 May 2021 23:39:57 -0400 Received: by mail-qv1-f45.google.com with SMTP id m6so1836574qvg.1 for <48739-done@debbugs.gnu.org>; Sun, 30 May 2021 20:39:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=raECjWxopr/NbusCQaS7IeFCSBdyQcQ/CJl0GZ8ghmo=; b=s+iHlUb344B4bYdkt1N1fS5OpfUQnKxr2hfvRlR3lFxAsHLsCd0sBuPWWfKMxwAhjx 17BpiPWbQt3Uwvbyfv34m7rMAuHm3gLD7f7R7uycCv3i8zmGZj5UpQ3GCov1mipJpwfF ZXwgEbT4XhqnybtIt1KIy17RSSn2wK2NjuT/+CYvQdiiDTLiOr8Y7Ap2xyumuv1ntX2A zJDk7ETfKaiiAmqpWqMloaiMlVOBh1eNZu29D9WwYpx+I2lFEde3Q0BtTkOevtKCDlUz xnTyl6q2B+Zof7Jf5BQHcQeM7lRUSiGVVex1IE26jkMmSWnneEI5LoeuFPBLk6CnwQ7P mtQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=raECjWxopr/NbusCQaS7IeFCSBdyQcQ/CJl0GZ8ghmo=; b=c1YIupeMxnfNclVOi8/yO5eljfdsAd7SlGhSMs2K1aNrx6wEFAZUDyQvG2sLq/g7s3 I+67GvCQGTrCpAd2uhgFMUF02ESXN8fStHQ5HL2iSFT08JxIqOQQ/9l4PpnL8ixpBhU5 uimv8NgXC0mHV2IGDMkpAfgJnMJPSwCTOqeyEGSngxftuTXXUC65eTX3cbj06qCf2YrX Ti4+5YXFCE9nwourk8h6yhvTtolr/07jwJAewbB2gSo2AsOGoLJBceE16L5QwBjrfQ8k v8JnhJoafUiQFkQsydL3pXbNu+j62U8wyfQ0/nhrhVhkWkeZJUZxOhjcIWXvzgNubbbu el7w== X-Gm-Message-State: AOAM5320Xj0ljcOxzpFX8iEAS9yo7CBHmFNijog4XLtpDVZ7uV4PjHiU T7f12SWY7Vz5rsngxkHPOU07GZeMUUg= X-Google-Smtp-Source: ABdhPJxB+dB6nAUFiPd7FP16d1yzWPwzntljKdabbY4EreKw9qobR61DWYajbmZOvRihhWkLHT3Epw== X-Received: by 2002:ad4:4baf:: with SMTP id i15mr15156871qvw.61.1622432390394; Sun, 30 May 2021 20:39:50 -0700 (PDT) Received: from hurd (dsl-10-146-248.b2b2c.ca. [72.10.146.248]) by smtp.gmail.com with ESMTPSA id y10sm7807324qtm.17.2021.05.30.20.39.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 May 2021 20:39:49 -0700 (PDT) From: Maxim Cournoyer References: <87zgwchgmv.fsf@gmail.com> <86bl8r7v8z.fsf@hurd.ericcbrown.com> Date: Sun, 30 May 2021 23:39:49 -0400 In-Reply-To: <86bl8r7v8z.fsf@hurd.ericcbrown.com> (Eric Brown's message of "Sun, 30 May 2021 22:43:40 +0100") Message-ID: <87v96zh8qi.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 48739-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622432419; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=raECjWxopr/NbusCQaS7IeFCSBdyQcQ/CJl0GZ8ghmo=; b=j6GModNmxWzH78rJMngJMzLQmKCzD7S6XsTBDpOUiOFLUji4QXMZnYioJOdHsPr2enXHT2 8IWqtdjreoXV2Li/wHDK7aJg+SkqIcgsKoFe+nx1OYPVqC2uMW6Z1HCb5wdGOGcAaXlZ3q 5fmn2dBDf4/rESnAIpwsqgTTCknvuUiR6qgwSoKpuiNi1wU888nSrvG5MN21NykhYemGqO eqWx50ABuJe6bN7inv8lg03XtjyhX0X7puZeQsk6FfHXLnOLUujDuqkvAfextwEY5Xr4oV mxSami6vnvgXQjA94ELDbkMQBrdjAcqIPyY0CkzPIcvMlXj9Td6fKu0z/KHFDA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622432419; a=rsa-sha256; cv=none; b=s1nFnegfUodzarYl5shd43384L6ggjcfvglKekxEZfrEHSML2GG925I450NqjsdotayhU1 KzT4ECX1XNA3wdEn2oznrG+Dva1DG+yDB3fanXJxINlXZWeDbGi1zSyke7s4Sfhx3XKPl8 aeCFMLnhV9WvuuTMkEyxRYcjnZoLbuKLGTEN6XxSKYmAdQ8xkfvcl0azs8/s4CLz5zGUxQ +ZZGS8STDd6H5P8VwYxmZXLUT7PfLWYFV+RT8qORm/zz9Iy34RRwl6vJUOrn+64cZ3RYlF xZ94ZLp0I5aYZfnwT8PBo7SkMW9XtIXeEzwr82eg1YgbsMQFz9XAv0O6yG7tNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=s+iHlUb3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=s+iHlUb3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 594EF261F4 X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: SnF1ckOKIpoe Hello Eric, [...] > Hello Maxim, > > Just today I ssh'd into childhurd with -p 10022 like the manual > suggests. > > Also, I ssh'd into Debian GNU/Hurd in qemu with 5555 like the Hurd documentation > suggests. I ended up using (also to get Spice): > > qemu-system-x86_64 -m 3072 -smp 1 -enable-kvm -nic \ > user,model=rtl8139,hostfwd=tcp::5555-:22 -net user -boot menu=on,order=d \ > -drive cache=writeback,file=hurd.img -device \ > virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x5 \ > -chardev spicevmc,name=vdagent,id=vdagent -device \ > virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,name=com.redhat.spice.0 > > You may have a different issue, just want to give some feedback. > > Best regards, > Eric Thanks a lot for sharing this; I tried your above snippet with the Debian Hurd img file, and it worked! Out of curiosity, how do you use Spice with the above? It'd need a Spice-enabled viewer such as virt-manager right? How do you point virt-manager to the VM instance spawned with QEMU? So it's not a QEMU bug. I'm also running a childhurd VM and it indeed works there. The command the childhurd service uses is: --8<---------------cut here---------------start------------->8--- qemu-system-i386 -m 512 --device rtl8139,netdev=net0 --netdev user,id=net0,hostfwd=tcp:127.0.0.1:11004-:1004,hostfwd=tcp:127.0.0.1:10022-:2222,hostfwd=tcp:127.0.0.1:15900-:5900 --snapshot --hda /gnu/store/84881fwqhwl37n7gbh8lhg3i01sxrp2p-disk-image --no-reboot --enable-kvm --8<---------------cut here---------------end--------------->8--- Stealing its --device and --netdev options applied to my case: --8<---------------cut here---------------start------------->8--- /gnu/store/kkwyzm7b6mg42sm5cljlqrca9f5hqmyn-run-vm.sh --device rtl8139,netdev=net0 --netdev user,id=net0,hostfwd=tcp:127.0.0.1:3333-:22 --8<---------------cut here---------------end--------------->8--- And try to connect to SSH, I can see messages like: --8<---------------cut here---------------start------------->8--- qemu-system-x86_64: Slirp: Failed to send packet, ret: -1 --8<---------------cut here---------------end--------------->8--- So at this point I'm guessing my minimal OS declaration is too minimal and missing a networking component. It's this: --8<---------------cut here---------------start------------->8--- (use-modules (gnu services ssh) (gnu system) (gnu tests)) (simple-operating-system (service openssh-service-type (openssh-configuration (permit-root-login #t) (allow-empty-passwords? #t) (log-level 'debug)))) --8<---------------cut here---------------end--------------->8--- Adding the DHCP client service like so: --8<---------------cut here---------------start------------->8--- (use-modules (gnu services networking) (gnu services ssh) (gnu system) (gnu tests)) (simple-operating-system (service dhcp-client-service-type) (service openssh-service-type (openssh-configuration (permit-root-login #t) (allow-empty-passwords? #t) (log-level 'debug)))) --8<---------------cut here---------------end--------------->8--- I've added a note to document this and spare others the trouble of going down this hole with commit b9ac7d9aaaa5849cc3c2acd4b1b41acdd545e66b. Thanks a lot for helping me see the solution! Closing. Maxim