From: "David Braun" <Guix-box@snkmail.com>
To: guix-devel@gnu.org
Subject: How to boot GuixSD in LXD
Date: Sat, 17 Dec 2016 17:49:35 -0500 [thread overview]
Message-ID: <10922-1482015184-113309@sneakemail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1720 bytes --]
Hi,
I just discovered GuixSD; it's very exciting! I want to boot it as a
virtual machine in LXD (https://www.ubuntu.com/cloud/lxd).
So far I've created a LXD image by using the GuixSD installer to create a
bare bones file system. Here's my etc/config.scm:
;; This is an operating system configuration template
;; for a "bare bones" setup, with no X11 display server.
(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules admin)
(operating-system
(host-name "GuixSD")
(timezone "Etc/UTC")
(locale "en_US.UTF-8")
;; Assuming /dev/sdX is the target hard disk, and "my-root" is
;; the label of the target root file system.
(bootloader (grub-configuration (device "/dev/sda")))
(file-systems (cons (file-system
(device "my-root")
(title 'label)
(mount-point "/")
(type "ext4"))
%base-file-systems))
;; Add services to the baseline: a DHCP client and
;; an SSH server.
(services (cons* (dhcp-client-service)
(lsh-service #:port-number 2222)
%base-services)))
and my LXD metadata.yaml:
architecture: x86_64
creation_date: 1481846400
properties:
description: GuixSD 0.11.0 bare bones x86_64
os: GuixSD
release: 0.11.0
Now when I attempt to launch the image, LXD fails when it tries to start
/sbin/init and can't find it. I understand that GuixSD uses Shepherd
instead of init. What's the best way for me to configure the image so that
LXD can start it? Perhaps I should create a symlink at /sbin/init that
points to shepherd but I'm not sure if I should take the initrd into
account as well.
Thanks,
David
[-- Attachment #2: Type: text/html, Size: 5800 bytes --]
next reply other threads:[~2016-12-17 22:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-17 22:49 David Braun [this message]
2016-12-18 19:27 ` How to boot GuixSD in LXD David Craven
2016-12-19 14:24 ` Ludovic Courtès
2016-12-22 22:37 ` David Braun
2016-12-22 22:36 ` David Braun
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=10922-1482015184-113309@sneakemail.com \
--to=guix-box@snkmail.com \
--cc=guix-devel@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.