From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: 'guix system vm' questions Date: Sat, 02 Jul 2016 15:06:20 +0200 Message-ID: <87poqwi3zn.fsf@gnu.org> References: <861t3g7a9p.fsf@gmail.com> <20160629154842.GA26047@jasmine> <864m89f73e.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJKct-0006v8-IS for help-guix@gnu.org; Sat, 02 Jul 2016 09:06:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJKcq-0004OS-9l for help-guix@gnu.org; Sat, 02 Jul 2016 09:06:27 -0400 In-Reply-To: <864m89f73e.fsf@gmail.com> (myglc2@gmail.com's message of "Fri, 01 Jul 2016 16:15:17 -0400") 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: myglc2 Cc: help-guix@gnu.org myglc2 skribis: > 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 >>>=20 >>> 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. Yeah this is expected: lshd won=E2=80=99t start if it cannot find a seed; eventually, the Shepherd=E2=80=A6 > Service SSH-daemeon has started. > No seed file. Please create on by running=20 > lwh-make-seed -o "/var/spool/lsh/yarrow-seed-file". > lshd: No rendomness generator available. > Service ssh-daemon has been disabled. > (Respawning too fast.) =E2=80=A6 disables it. > v1 login: root > root@v1 ~# lsh-make-seed=20 > -bash: lsh-make-seed: command not found I guess =E2=80=98lsh-service-type=E2=80=99 should be changed to extend =E2=80=98profile-service-type=E2=80=99 such that this command is available.= WDYT? Besides, we should add a service for OpenSSH=E2=80=99s sshd. Thanks, Ludo=E2=80=99.