unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How to boot GuixSD in LXD
@ 2016-12-17 22:49 David Braun
  2016-12-18 19:27 ` David Craven
  0 siblings, 1 reply; 5+ messages in thread
From: David Braun @ 2016-12-17 22:49 UTC (permalink / raw)
  To: guix-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-12-22 22:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-17 22:49 How to boot GuixSD in LXD David Braun
2016-12-18 19:27 ` David Craven
2016-12-19 14:24   ` Ludovic Courtès
2016-12-22 22:37     ` David Braun
2016-12-22 22:36   ` David Braun

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).