From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2 Subject: Re: 'guix system vm' questions Date: Wed, 06 Jul 2016 12:17:29 -0400 Message-ID: <86eg76rbae.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKpYK-0003QW-7J for help-guix@gnu.org; Wed, 06 Jul 2016 12:19:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKpYG-0008Ur-6A for help-guix@gnu.org; Wed, 06 Jul 2016 12:19:56 -0400 Received: from plane.gmane.org ([80.91.229.3]:51306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKpYF-0008UC-V2 for help-guix@gnu.org; Wed, 06 Jul 2016 12:19:52 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bKpYE-0001Ig-VN for help-guix@gnu.org; Wed, 06 Jul 2016 18:19:51 +0200 Received: from c-73-167-118-254.hsd1.ma.comcast.net ([73.167.118.254]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Jul 2016 18:19:50 +0200 Received: from myglc2 by c-73-167-118-254.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Jul 2016 18:19:50 +0200 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 David Craven writes: [...] >> >> From: myglc2 >> >> David Craven writes: >> >>> 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 >> >> This sounds great. I see you submitted patches. Am I correct in thinking >> that the next step is to add an lsh-option option that uses rmg-tools >> instead of lsh-make-seed to set the yarrow seed? >> > @myglc2 the simplest workaround to this issue is to add -device > virtio-rng-pci to your qemu flags ... Thanks, that works but ... > ... and patch lsh to use /dev/hwrng in the /bin/lsh-make-seed file I > linked to in a previous reply. ... I don't follow this. Are you referring to the posts above? I have your "b58cbf9 * services: Add rngd-service." patch. Is the idea to add entropy so we don't need to bang on the keyboard? Or is an additional patch required/in the pipeline/a self help item? Thanks - George