From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: QEmu image configuration Date: Mon, 29 Apr 2019 20:49:05 -0700 Message-ID: <87d0l4ywy6.fsf@gmail.com> References: 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]:54896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLJlb-00074r-9d for guix-devel@gnu.org; Mon, 29 Apr 2019 23:49:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLJla-0003sr-5k for guix-devel@gnu.org; Mon, 29 Apr 2019 23:49:15 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:39763) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLJlZ-0003sR-Ra for guix-devel@gnu.org; Mon, 29 Apr 2019 23:49:14 -0400 Received: by mail-pl1-x62e.google.com with SMTP id e92so6084528plb.6 for ; Mon, 29 Apr 2019 20:49:13 -0700 (PDT) In-Reply-To: (Vincent Legoll's message of "Mon, 22 Apr 2019 21:55:46 +0200") 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: Vincent Legoll Cc: guix-devel --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Vincent Legoll writes: > Hello, > > I've been trying to find the system config.scm used to > generate the QEmu image (0.16.0 from the download > page). I searched inside the booted VM, and tried to > get clues from the documentation. I couldn't find it. > > What am I missing ? > > Shouldn't it be put in the VM image at /etc/config.scm ? If you build the image from a very recent version of Guix's source, it should be there, now (see below). > I finally managed to get the image working, but had to > guess a bit how to do it, I think the doc could be enhanced, > so that newbies like me won't get lost. > > I tried to have a look at where is the source for : > "6.2.14 Running GuixSD in a Virtual Machine" > But the guix/doc/guix.texi text I found in the git repo > looked different from what I read on the web site: > https://www.gnu.org/software/guix/manual/en/html_node/Running-GuixSD-in-a= -VM.html > > Are they out of sync ? Or is the web manual rendered > from an older version of that file ? The website is synced periodically. I think we keep the website synced to the latest release, so that when you download the latest release, the documentation you read on the website is precisely for the version of Guix that you downloaded. If you update Guix later on, you should refer to the documentation that gets installed in your OS, rather than the website. You can access it with a Texinfo reader, for example by invoking "info guix" on the command line or "C-h i" followed by "guix" in Emacs. It may not be exactly the same version that was used to build the version available on the website, but you can find an up-to-date version of the VM image's OS configuration at './gnu/system/examples/vm-image.tmpl' in the Guix source: http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/examples/vm-image= .tmpl?id=3Daa7cdc57dc28673dedfc6ec210974aaa0099a419 It's been recently changed as a result of this discussion: https://lists.gnu.org/archive/html/guix-devel/2019-04/msg00540.html You may need to customize the qemu invocation you use to start it. Something like the following ought to work (I haven't tested this, though): qemu-system-x86_64 -net user \ -net nic,model=3Dvirtio \ -enable-kvm \ -m 1024 \ -device virtio-blk,drive=3Dmyhd \ -drive if=3Dnone,file=3D/tmp/the_image,id=3Dmyhd For details of QEMU's invocation. I hope that helps! =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlzHxbIACgkQ3UCaFdgi Rp0M3w//YbXFTEd4MFW4kQq76ilxA6wZFqepIxE+CKHe6kKpI1D2cRzgvtROBfdY vKeLzVUFguqD6Pstt1PUlnPOOY1c5vs2hAuORy/1Iuetwy1//ZT7MgUwuD4zneKi 48uctI3GQtD99mLoaHQg1bXcZYCjq+/fehf4XgcX21Vd06giA22UH3MsMjqv4pEx POJzntK5ZCNUzTBAa2M2moKuEBujSDwtUwPvuBPoi2SFNmPB7ZSunkeIGXziBW21 rDArddDahCMl5nxPqnSvA6X3KkEX1AU5qkOZPoUI/r93TxmfhFA3s/YsnFMbfj/L AOEtznUzKqunwA0amwKid0e1Nl90eobLhoLyTVM4S9KOVCjNZQxThCCvGaH0dXWm 9iZqBRn9liQZV/0zG+oX9PSXYkRPFdylpQLMhjLp/5jsQxifutw2k9HsvZp6jdlH h2EG4krk1mtr+JwNWuyupAFKXX+1yyU3BFicnIk9RkRzm1j+ndv5pudCKNh/YSf5 n1W7LSSIBnDhZspjf1F4mDT5TDvrIfQEDpae1bzTeXe03iOho85QONfCBhNg3cSi TQTon3oZx9YlDl0HYe/kBn1MRgEZn/NIFy3CqX01nVarcmiAciC4AJbb/KWU6mDr UtHp9Js9nj8C06ZwbDaq6BcsdumCjlsLDoOBLXyNMn0HWqQgjzg= =QcBd -----END PGP SIGNATURE----- --=-=-=--