From: Chris Marusich <cmmarusich@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: New VM image
Date: Fri, 26 Apr 2019 01:03:26 -0700 [thread overview]
Message-ID: <87tvelkxbl.fsf@gmail.com> (raw)
In-Reply-To: 87zhoekpbc.fsf_-_@gnu.org
[-- Attachment #1: Type: text/plain, Size: 3193 bytes --]
Ludovic Courtès <ludo@gnu.org> writes:
> The attached config file can be used to produce a 2.9G QCOW image
> (uncompressed) that internally appears to have a 20G file system:
Nice!
> I think it would fill the need of those who want to see what Guix is
> like, and also the need of developers who want to test their software on
> Guix without installing it (I’d argue that installing Guix on top of
> their distro is simpler, but some people will use the VM image for that
> purpose anyway.)
>
> What do people think?
I like it! Is it intended to replace gnu/system/examples/vm-image.tmpl?
The phrase "live image" suggests a live USB stick that can be booted as
a live system. To avoid confusion, would it be better to just call it a
"VM image"? I don't feel that strongly about it.
> (define this-file
> (local-file "./vm-live.tmpl" "config.scm"))
Cute! But FYI, I tried building this and it failed at first, since I
renamed the file and forgot about this reference. I then re-ran the
command from the same directory as the file, which of course worked.
I built it, booted with 1 CPU and 1024 MB of RAM, logged in, and
successfully built GNU Hello. I confirmed that changes persist across
reboots, and that the file system appears to have about 16 GB of space
left.
When I booted into the system, I noticed some things:
- There are many folders on the desktop. For example, there is one for
"/sys/fs/cgroup/memory". A minor blemish, but rather odd.
- The "guest" user cannot run "sudo". However, after you invoke
"passwd" and change the password to something, you can invoke sudo. I
guess this is a side effect of using an empty password. Would it be
hard to arrange for the "guest" user to be allowed passwordless sudo?
I guess I should have listened to your comment in the config file and
given root/guest a password from the start!
- "sudo herd status" reports that term-auto and user-homes is stopped,
which I think might be intended, but I'm not sure. I also see
possibly unnecessary services: wpa-supplicant, upower-daemon. The VM
probably doesn't need wpa-supplicant, but maybe it needs
upower-daemon? Not sure.
- There is a "Web Browser" link at the bottom of the screen. It begs to
be clicked. But when you click it, the system asks you to choose a
default web browser, and there are no options. Hmm.
- "sudo guix system reconfigure /etc/config.scm" failed because "error:
missing field initializers (home-directory)". I then ran "guix pull"
and tried again with "sudo -E guix system reconfigure
/etc/config.scm", since I remembered that the proper way to do this
using my freshly pulled Guix would be to use -E. I got a new error:
"error: device '/dev/vda' not found: No such file or directory", which
occurred because the VM has /dev/sda but not /dev/vda. Maybe we can
modify the config file to use sda instead?
I hope that helps. I think it's better to provide a VM image than none
at all. Even though it's a little bumpy, it's still a decent way to try
out Guix if you don't want to install it on your existing distro.
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2019-04-26 8:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-04 14:56 VM image: can we simplify its use? Ludovic Courtès
2019-04-06 20:12 ` Gábor Boskovits
2019-04-09 20:48 ` Leo Famulari
2019-04-10 18:38 ` Daniel Jiang
2019-04-10 20:54 ` Ludovic Courtès
2019-04-10 20:52 ` Ludovic Courtès
2019-04-17 5:10 ` Chris Marusich
2019-04-25 16:44 ` New VM image Ludovic Courtès
2019-04-25 17:19 ` Leo Famulari
2019-04-26 8:03 ` Chris Marusich [this message]
2019-04-26 13:29 ` Ludovic Courtès
2019-04-26 14:28 ` Danny Milosavljevic
2019-04-27 13:15 ` Ludovic Courtès
2019-04-30 3:09 ` Chris Marusich
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=87tvelkxbl.fsf@gmail.com \
--to=cmmarusich@gmail.com \
--cc=guix-devel@gnu.org \
--cc=ludo@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.