From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: Re: 'guix system vm' questions Date: Thu, 30 Jun 2016 15:10:45 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIbk5-0003N5-St for help-guix@gnu.org; Thu, 30 Jun 2016 09:10:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIbk1-00041W-L4 for help-guix@gnu.org; Thu, 30 Jun 2016 09:10:53 -0400 Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:36376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIbk0-00040k-Ep for help-guix@gnu.org; Thu, 30 Jun 2016 09:10:49 -0400 Received: by mail-qk0-x229.google.com with SMTP id j2so88858753qkf.3 for ; Thu, 30 Jun 2016 06:10:47 -0700 (PDT) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org So I packaged rng-tools and created a shepherd service, but I realized that the service needs to be started before the activation part of the lsh service. What's the best way to do this? https://git.lysator.liu.se/lsh/lsh/blob/master/src/lsh-make-seed.c#L1075 On Wed, Jun 29, 2016 at 8:23 PM, David Craven wrote: > HW_RANDOM_VIRTIO is enabled in the default kernel. > > Starting the vm like this enables the hwrng: > /gnu/store/3rqbwx34kfa789jbywfbxl90nids08cf-run-vm.sh -device virtio-rng-pci > and it works as can be verified by > cat /dev/hwrng > > The only missing components from what I can tell is packaging rng-tools > and adding a service to add /dev/hwrng to the entropy pool on boot. > > https://git.kernel.org/cgit/utils/kernel/rng-tools/rng-tools.git/ > >> We should look into QEMU's VirtIO RNG, which could help here: >> http://wiki.qemu-project.org/Features-Done/VirtIORNG