From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2 Subject: Re: 'guix system vm' questions Date: Fri, 01 Jul 2016 16:15:17 -0400 Message-ID: <864m89f73e.fsf@gmail.com> References: <861t3g7a9p.fsf@gmail.com> <20160629154842.GA26047@jasmine> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJ4sS-0004ka-14 for help-guix@gnu.org; Fri, 01 Jul 2016 16:17:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJ4sO-00026h-QP for help-guix@gnu.org; Fri, 01 Jul 2016 16:17:27 -0400 Received: from plane.gmane.org ([80.91.229.3]:56784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJ4sO-00026b-G4 for help-guix@gnu.org; Fri, 01 Jul 2016 16:17:24 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bJ4sK-0002nx-Nt for help-guix@gnu.org; Fri, 01 Jul 2016 22:17:20 +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 ; Fri, 01 Jul 2016 22:17:20 +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 ; Fri, 01 Jul 2016 22:17:20 +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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Leo Famulari writes: > On Wed, Jun 29, 2016 at 10:10:35AM -0400, Thompson, David wrote: >> On Wed, Jun 29, 2016 at 2:57 AM, myglc2 wrote: >> > I have a headless server running Guix/Debian 8.3 on which I would like >> > to run some guix vms. So far, I have a script (see mkvm.sh, attached) >> > that runs a single vm. It has some issues: >> > >> > 1) lsh-service hangs waiting for keystrokes on the QEMU console >> >> LSH needs to be initialized with a key on first boot, which is why you >> need to type to create entropy. This sucks for automation, so I would >> recommend OpenSSH instead, but we don't have an openssh-service yet. > > In your operating system configuration, you can pass 'initialize? #f' to > lsh-service to skip the SSH seed and host-key initialization. You will > need to initialize the LSH service later, before you can use it. I tried that and ... lsh spun looking for a seed file advising me to run 'lsh-make-seed', and then stopped. 'lsh-make-seed' was not available. Maybe this is a bug? What I saw on the VM: ### lsh spins and stops showing [...] Respawning ssh-daemon. Service SSH-daemeon has started. No seed file. Please create on by running lwh-make-seed -o "/var/spool/lsh/yarrow-seed-file". lshd: No rendomness generator available. Service ssh-daemon has been disabled. (Respawning too fast.) ### lsh-make-seed seems to be missing v1 login: root root@v1 ~# lsh-make-seed -bash: lsh-make-seed: command not found guix version: Note: running from git checkout File: ‘/home/g1/.config/guix/latest’ -> ‘../../dev/guix’ * master 242ad41 download: Use basic authentication when userinfo is present in URI. test script: attached below --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=lsh Content-Transfer-Encoding: base64 IyEvYmluL2Jhc2gKc2V0IC14ZQoKIyBndWl4IHZtIGV4YW1wbGVzCgojIHVzYWdlCiMgJCA8c2Ny aXB0bmFtZT4gbWsgIFt2bSNdIC0gbWFrIGltYWdlCiMgJCA8c2NyaXB0bmFtZT4gcnVuIFt2bSNd IC0gcnVuIGltYWdlCgpDTUQ9YGJhc2VuYW1lICIkMCJgClZNTlVNPSR7MjotIiJ9ClRNUERJUj0k UFdEL3RtcC8kQ01EJFZNTlVNCm1rZGlyIC1wICRUTVBESVIKCmNhc2UgJDEgaW4KICAgICMgbWFr ZSB2bSBpbWFnZQogICAgbWspCgkjIHZtLmNvbmZpZwoJY2F0ID4gIiRUTVBESVIvdm0uc2NtIjw8 RU9GCih1c2UtbW9k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