From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: New VM image Date: Fri, 26 Apr 2019 01:03:26 -0700 Message-ID: <87tvelkxbl.fsf@gmail.com> References: <87d0m1stsc.fsf@inria.fr> <20190409204810.GA26383@jasmine.lan> <87d0ll43pl.fsf@gmail.com> <87zhoekpbc.fsf_-_@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:35798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJvpd-0003eH-5k for guix-devel@gnu.org; Fri, 26 Apr 2019 04:03:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJvpb-0007wd-8t for guix-devel@gnu.org; Fri, 26 Apr 2019 04:03:41 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s 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=E2=80=99d 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: =2D There are many folders on the desktop. For example, there is one for "/sys/fs/cgroup/memory". A minor blemish, but rather odd. =2D 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! =2D "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. =2D 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. =2D "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. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlzCu04ACgkQ3UCaFdgi Rp1vqRAArLnCe4JIGj9ltMoGhf6Q2IhE51GVppVQCLZZCOT+/0C4NzICX2aDEkj7 srXoIiorfn2OWbFW+cNL8kHiMhQF8ULfiZz7S0YVhN2BNwOx5mdEG7enOmVXxJiR q+j6fkbGLmrZUwfeMxins2CU3LjJa45tsqY4NL9r504GygUGs7+vKeLBLL77RM24 lXHbq83UtRlG4aNbMdTP/+pwxy6QvuZCGld/BKWs5mjtPnaqO1Pzhn9kH3FsNwAv TX/MUYWDNZvhbTbu1urPcr8cJgbmfNcEcIw3wYujGQ615mW1ZfQnH2owco5rtLCK rXYabzEWHzFaH8g70to/O9/Xad+k/eYwsYe+G7Io9RQL1riBxdoGZfCg4TVxNTP8 s+5gmxj4bUNvxZyjKUtHH/3cjt+yziIwLAjPPU2Se1/vT1uoVYyRWTb8/3sfgQhj XsPy61Y/esKRj/IaRwKl876nQavb7Oo4KD3T44xKoH1TNSWaMppDgytylG1hZp+l 8Kw+Gx+R0ZU/6NMdvTP+ZRYzBlxRYAKAbjTBiTRZpDahKCun+zQt+/jGfBlS6zAU FDFhIB/kPGiE6syTzdItZy3w5asVw6YvyfNNGw9T1QyLJy6edC1jgn9g8dOgLQLe BT4vleuEunBj7tj12f6oVcUPyrl8cA8Wl64v+2IaZeZx+JKgPQI= =wWQ3 -----END PGP SIGNATURE----- --=-=-=--