From: myglc2 <myglc2@gmail.com>
To: help-guix@gnu.org
Subject: 'guix system vm' questions
Date: Wed, 29 Jun 2016 02:57:06 -0400 [thread overview]
Message-ID: <861t3g7a9p.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
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
2) passwords need to be set in the QEMU console
3) on the vm, 'guix package -i' throws an error, e.g.,
(on the console)
v1 login: u1
password: <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
4) I can't log in to the vm like I expected, e.g. 'ssh u1@10.0.2.15'
times out
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
Your suggestions &/or sample configurations would be most welcome.
TIA - George
PS I am running this guix git checkout ...
* master d6e374a gnu: mafft: Update to 7.299.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: mkvm.sh --]
[-- Type: text/x-sh, Size: 1484 bytes --]
#!/bin/bash
# make and run a Guix VM
set -x
VMNUM=1
tmpdir=vm$VMNUM
rm -fr $tmpdir
mkdir $tmpdir
# vm.config
cat > "$tmpdir/vm.scm"<<EOF
(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules admin
disk
ssh rsync wget screen
version-control
emacs
xorg certs
graphviz
package-management
)
(operating-system
(host-name "v1")
(timezone "America/New_York")
(locale "en_US.utf8")
(bootloader (grub-configuration (device "/dev/sda")))
(file-systems (cons (file-system
(device "g1sd")
(title 'label)
(mount-point "/")
(type "ext4"))
%base-file-systems))
(users (cons* (user-account
(name "u1")
(comment "u 1")
(group "users")
(supplementary-groups '("wheel"))
(home-directory "/home/u1"))
%base-user-accounts))
(packages
(cons*
glibc-utf8-locales
parted
openssh nss-certs xauth rsync wget git git-manpages
emacs magit screen
graphviz
guix
%base-packages
)
)
(services (cons* (dhcp-client-service)
(lsh-service #:root-login? #t)
%base-services)))
EOF
# show guix version
# guix system --version
(stat $HOME/.config/guix/latest | grep File:)
git -C ~/.config/guix/latest branch -av | grep '* master'
make -C $HOME/.config/guix/latest -s
# make vm & run
# Note: '-k en-us' is a hack to get Mac XQuartz keys to sort of work
$(guix system vm $tmpdir/vm.scm --expose=$HOME --share=$HOME/tmp=/exchange) -k en-us
next reply other threads:[~2016-06-29 6:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-29 6:57 myglc2 [this message]
2016-06-29 14:10 ` 'guix system vm' questions Thompson, David
2016-06-29 15:48 ` Leo Famulari
2016-07-01 20:15 ` myglc2
2016-07-02 13:06 ` Ludovic Courtès
2016-07-03 13:47 ` myglc2
2016-07-11 19:32 ` Leo Famulari
2016-06-30 21:20 ` myglc2
-- strict thread matches above, loose matches on Subject: below --
2016-06-29 18:23 David Craven
2016-06-30 13:10 ` David Craven
2016-07-03 13:53 ` myglc2
2016-07-03 16:09 David Craven
2016-07-06 16:17 ` myglc2
2016-07-07 16:26 David Craven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=861t3g7a9p.fsf@gmail.com \
--to=myglc2@gmail.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.