From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 27 01:27:13 2021 Received: (at 48053) by debbugs.gnu.org; 27 Apr 2021 05:27:13 +0000 Received: from localhost ([127.0.0.1]:47759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbGFc-0008EH-P8 for submit@debbugs.gnu.org; Tue, 27 Apr 2021 01:27:12 -0400 Received: from mail-qk1-f171.google.com ([209.85.222.171]:39710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbGFa-0008E4-Gu for 48053@debbugs.gnu.org; Tue, 27 Apr 2021 01:27:11 -0400 Received: by mail-qk1-f171.google.com with SMTP id k127so3315765qkc.6 for <48053@debbugs.gnu.org>; Mon, 26 Apr 2021 22:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=2focFljVEQ8F6IyrEdoj6xAcTXOJXPpA8IA+Hmbhzug=; b=m+fdVXCOWlfaQRPj0nWs0pd7VABDrEf69s0Fcvv4Y4vS2rY8erz1VCoHafEPWR1mDU 4pVlT8B+DwmoSTq0ql2mSfBxVGYB0BQvW9ojM2OUfL2SiL7bVcY0tGUUJvniXJN3FrDQ IBSj8tg8i4OD3M0jFc2/MYUITLH4IMv8f4p0klsirb75SU4cfNAnMIzJi5RqVa3uPYLv QjD+xegS5mCp9kJgSZdFmy95TfsZaK7x2/z05ZrnhEsU3D93fSMX3W3XRG5pZMo44xVx s4uSBS/7ehtfFUMcQlV+6NbHRIXv16/HQ0vHdeLqvXmGwlumVbISiGaNCg9c5dkYGZKb yeNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=2focFljVEQ8F6IyrEdoj6xAcTXOJXPpA8IA+Hmbhzug=; b=o+rXXDaEY1JvZdXiolPb8E54T8hikVTUcDyJk2HIpanZ2Z9GkUCCmz3Ud22AplRlTp iAOookT//5AgpJIbGBtkHGP4E8XvmflDaS3ZwWTqSlu97FUgjgXWMzG7zNaUvovXijF2 A71q1Jx+yYUrBgPjV7J9RPh7L037eFdzq8ZXjIeOuUDU4LkBpvk32wZ3LlbgU1H7VDVX nNAC4lvmXCY+0EMGjJVeRAVthiJPJ5xgH0EQGxJndfz/Im8N4Lw4KnKyObDC3030xWkj u+gFtUE1gdCl6APdrrAp+sGywIbrj+ahXTk7WYPN+NyFcQ+WPbmIQvqLahXrdnWChmgN 9QBw== X-Gm-Message-State: AOAM530kFURakiGZ+VZvEx7080TcGhAIguUKiliItOCw9wkyXDokZgZe CUHDBAx7wnN9SSrckhlbAZ8KDYwJz6M= X-Google-Smtp-Source: ABdhPJyivfxgnKM9VDhzrXZxaPb+UU79rWnPoqQhlgJlqeKyrSaJRp0AvUH6uIW2uCZdfLyF4A/17Q== X-Received: by 2002:ae9:e017:: with SMTP id m23mr20598208qkk.482.1619501224687; Mon, 26 Apr 2021 22:27:04 -0700 (PDT) Received: from hurd (dsl-236-123-46.b2b2c.ca. [207.236.123.46]) by smtp.gmail.com with ESMTPSA id x24sm13609405qtm.95.2021.04.26.22.27.04 for <48053@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Apr 2021 22:27:04 -0700 (PDT) From: Maxim Cournoyer To: 48053@debbugs.gnu.org Subject: Re: bug#48053: Starting the hurd-vm service doesn't always succeed References: <87fszcjq72.fsf@gmail.com> Date: Tue, 27 Apr 2021 01:27:03 -0400 In-Reply-To: <87fszcjq72.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 27 Apr 2021 00:40:01 -0400") Message-ID: <87bla0jo0o.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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48053 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: -1.0 (-) Maxim Cournoyer writes: > Hello! > > I'm not sure if that's only on my setup, but starting or restart the > hurd-vm service seems a bit dodgy here: > > $ sudo herd restart hurd-vm > Service hurd-vm is not running. > secret service: sending secrets to 11004 > secret service: retrying connection [59 attempts left] > secret service: connected; waiting for handshake... > secret service: invalid handshake # > Service hurd-vm could not be started. > > [...] many tries fail as above > > Finally, it worked: > > $ sudo herd start hurd-vm > secret service: sending secrets to 11004 > secret service: retrying connection [59 attempts left] > secret service: connected; waiting for handshake... > secret service: sending files from "/etc/childhurd"... > secret service: done sending files to port 11004 > Service hurd-vm has been started. > > Have others experience this? > > Maxim Here's the relevant config in case it matters: (service hurd-vm-service-type (hurd-vm-configuration (os (operating-system (inherit %hurd-vm-operating-system) (services (modify-services (operating-system-user-services %hurd-vm-operating-system) (openssh-service-type config => (openssh-configuration (inherit config) (authorized-keys `(("root" ,(local-file "maxim_nopwd.pub")))))))))) (memory-size (* 4 1024)) ;4GiB (disk-size (* 20000 (expt 2 20))) ;20GiB ;; Extend the default net-options with a port forward ;; for the incoming 10.0.1.1 Wireguard IP as well. (net-options '("--device" "rtl8139,netdev=net0" "--netdev" (string-append "user,id=net0," "hostfwd=tcp:127.0.0.1:11004-:1004," "hostfwd=tcp::10022-:2222," "hostfwd=tcp:127.0.0.1:15900-:5900"))))) The net-options override is to make QEMU listen for 10022 on all interfaces, not just the loopback one. Otherwise I've added my ssh key and set the memory and disk-size.