From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: 'guix system vm' questions Date: Wed, 29 Jun 2016 10:10:35 -0400 Message-ID: References: <861t3g7a9p.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIGCT-0007mC-Ey for help-guix@gnu.org; Wed, 29 Jun 2016 10:10:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIGCM-0001le-FC for help-guix@gnu.org; Wed, 29 Jun 2016 10:10:44 -0400 Received: from mail-vk0-x234.google.com ([2607:f8b0:400c:c05::234]:32817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIGCM-0001lV-3U for help-guix@gnu.org; Wed, 29 Jun 2016 10:10:38 -0400 Received: by mail-vk0-x234.google.com with SMTP id j3so67546874vkb.0 for ; Wed, 29 Jun 2016 07:10:37 -0700 (PDT) In-Reply-To: <861t3g7a9p.fsf@gmail.com> 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 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. > 2) passwords need to be set in the QEMU console What is the QEMU console? If you mean user passwords, it is possible to specify the hashed password in a user account in your OS config file, IIRC. > 3) on the vm, 'guix package -i' throws an error, e.g., > > (on the console) > v1 login: u1 > password: > $ guix package -i > accepted connection from pid 390, user u1 > guix package: error: build failed: changing ownership of '/path/store': Read-only file system The VMs created with 'guix system vm' are immutable. Copying the result of 'guix system vm-image' is probably what you want. > 4) I can't log in to the vm like I expected, e.g. 'ssh u1@10.0.2.15' > times out Sounds like you have a QEMU networking issue to figure out. Doesn't seem related to Guix at all. > 5) I would like to have the user 'u1' share read/write access to the > $HOME directory and be able to use $HOME/.ssh credentials Once you have a writable disk image, you can just write files to the home directory as you please. GuixSD does not manage files in stateful directories like $HOME. HTH, - Dave