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 ms11 with LMTPS id JwdbKfmh6F9WFAAA0tVLHw (envelope-from ) for ; Sun, 27 Dec 2020 15:02:17 +0000 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 YKKrJPmh6F8ZQQAA1q6Kng (envelope-from ) for ; Sun, 27 Dec 2020 15:02:17 +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 1CD729401CD for ; Sun, 27 Dec 2020 15:02:17 +0000 (UTC) Received: from localhost ([::1]:47540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktXYl-0001vx-Sz for larch@yhetil.org; Sun, 27 Dec 2020 10:02:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktXXb-0001ts-6G for bug-guix@gnu.org; Sun, 27 Dec 2020 10:01:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktXXa-0002RK-UF for bug-guix@gnu.org; Sun, 27 Dec 2020 10:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ktXXa-0003BV-Sr for bug-guix@gnu.org; Sun, 27 Dec 2020 10:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#36380: service urandom-seed takes too long on boot References: In-Reply-To: Resent-From: Stefan Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 27 Dec 2020 15:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36380 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 36380@debbugs.gnu.org Received: via spool by 36380-submit@debbugs.gnu.org id=B36380.160908123412180 (code B ref 36380); Sun, 27 Dec 2020 15:01:02 +0000 Received: (at 36380) by debbugs.gnu.org; 27 Dec 2020 15:00:34 +0000 Received: from localhost ([127.0.0.1]:33237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktXX8-0003AO-3C for submit@debbugs.gnu.org; Sun, 27 Dec 2020 10:00:34 -0500 Received: from smtpout2.vodafonemail.de ([145.253.239.133]:38102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktXX5-0003A9-RD for 36380@debbugs.gnu.org; Sun, 27 Dec 2020 10:00:33 -0500 Received: from smtp.vodafone.de (unknown [10.2.0.33]) by smtpout2.vodafonemail.de (Postfix) with ESMTP id ADF9812369D for <36380@debbugs.gnu.org>; Sun, 27 Dec 2020 16:00:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-smtpout-mb-15sep; t=1609081224; bh=Q2Hz4mC8kUzLgW4k+JFcQjszc5p975ZesEZ6hlckElg=; h=From:Subject:Date:To; b=jUM0WXxfezNU7LpJdWVHEH0JC8RM0pGkGlAMTK2XDvzHaOHoZR89neAxNMV+hQx1y /gvc79fhRnuxCzLZMudLUPWFl7uAtql7bzQhgSJcB1fI9Lz2TqR8ba+5aLTXCtIj0r 64KZpbkMsRsUUb/jEHrirUgEKC3nsxWVbr73h9EA= Received: from macbook-pro.kuh-wiese.my-router.de (dslb-002-206-141-133.002.206.pools.vodafone-ip.de [2.206.141.133]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 449A014107E for <36380@debbugs.gnu.org>; Sun, 27 Dec 2020 15:00:24 +0000 (UTC) From: Stefan Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <2C14BF51-2755-4315-AC75-26F71F93884D@vodafonemail.de> Date: Sun, 27 Dec 2020 16:00:23 +0100 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 2314 X-purgate-ID: 155817::1609081224-00005EB2-0B824C2A/0/0 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.82 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=vodafonemail.de header.s=vfde-smtpout-mb-15sep header.b=jUM0WXxf; dmarc=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: 1CD729401CD X-Spam-Score: -0.82 X-Migadu-Scanner: scn1.migadu.com X-TUID: gaxlDyFwtQ2R Hi! I=E2=80=99m running Guix in qemu on a NAS. The boot takes sometimes more = than 30 minutes, probably waiting to start the urandom-seed service. Guix is using virtio_rng: stefan@guix ~$ cat /sys/devices/virtual/misc/hw_random/rng_available virtio_rng.0=20 stefan@guix ~$ cat /sys/devices/virtual/misc/hw_random/rng_current virtio_rng.0 stefan@guix ~$ guix describe Generation 1 26. Dezember 2020 15:06:11 (aktuell) guix 4969b51 Repository-URL: https://git.savannah.gnu.org/git/guix.git Branch: master Commit: 4969b51d175497bfcc354c91803e9d70542b7113 This may be relevant information from dmesg: [ 0.194324] random: get_random_u64 called from = __kmem_cache_create+0x30/0x460 with crng_init=3D0 =E2=80=A6 [ 3.271767] random: fast init done =E2=80=A6 [ 3.497369] random: crng init done =E2=80=A6 [ 21.228829] shepherd[1]: Service file-systems has been started. [ 21.243838] shepherd[1]: Service user-homes has been started. [ 2182.735965] shepherd[1]: Service urandom-seed has been started. [ 2182.737229] shepherd[1]: Service user-processes has been started. =E2=80=A6 Sometimes the urandom-seed service takes =E2=80=9Cjust=E2=80=9D 200 = seconds =E2=80=93 still a lot. Interestingly during this time-out the system can=E2=80=99t be pinged, = the networking with dhclient doesn't seem to be done. The Guix installer iso is not using the urandom-seed service and does = not suffer from this delay. The host kernel and qemu are rather old: ~$ uname -a Linux aaaaaaaa 4.4.59+ #25426 SMP PREEMPT Mon Dec 14 18:48:50 CST 2020 = x86_64 GNU/Linux synology_apollolake ~$ /usr/local/bin/qemu-system-x86_64 --version QEMU emulator version 2.12.1 (-dirty) Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers Qemu is invoked with these arguments concerning random: -cpu = host,+smap,+rdseed,+erms,+smep,+fsgsbase,+3dnowprefetch,+rdtscp,+pdpe1gb,+= rdrand,+osxsave,+xsave,+tsc-deadline,+movbe,+x2apic,+pdcm,+xtpr,+tm2,+est,= +vmx,+ds_cpl,+dtes64,+pclmuldq,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme -object = rng-random,id=3Dobjrng0,filename=3D/dev/random -device = virtio-rng-pci,rng=3Dobjrng0,id=3Drng0,bus=3Dpci.0,addr=3D0x1c The full qemu command is huge. I can provide it on request. Bye Stefan=