unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* QEmu image configuration
@ 2019-04-22 19:55 Vincent Legoll
  2019-04-30  3:49 ` Chris Marusich
  0 siblings, 1 reply; 3+ messages in thread
From: Vincent Legoll @ 2019-04-22 19:55 UTC (permalink / raw)
  To: guix-devel

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 ?

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 ?

Thanks

-- 
Vincent Legoll

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

* Re: QEmu image configuration
  2019-04-22 19:55 QEmu image configuration Vincent Legoll
@ 2019-04-30  3:49 ` Chris Marusich
  2019-05-03 10:34   ` Vincent Legoll
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Marusich @ 2019-04-30  3:49 UTC (permalink / raw)
  To: Vincent Legoll; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 2562 bytes --]

Vincent Legoll <vincent.legoll@gmail.com> 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=aa7cdc57dc28673dedfc6ec210974aaa0099a419

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=virtio \
                     -enable-kvm \
                     -m 1024 \
                     -device virtio-blk,drive=myhd \
                     -drive if=none,file=/tmp/the_image,id=myhd

For details of QEMU's invocation.  I hope that helps!

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: QEmu image configuration
  2019-04-30  3:49 ` Chris Marusich
@ 2019-05-03 10:34   ` Vincent Legoll
  0 siblings, 0 replies; 3+ messages in thread
From: Vincent Legoll @ 2019-05-03 10:34 UTC (permalink / raw)
  To: Chris Marusich; +Cc: guix-devel

On Tue, Apr 30, 2019 at 5:49 AM Chris Marusich <cmmarusich@gmail.com> wrote:
> Vincent Legoll <vincent.legoll@gmail.com> writes:
> > 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).

OK, thanks for the info, now that 1.0 is out, i'll retry with that one.

> > 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.

Again thanks, that's what I was thinking, but needed confirmation, I'll
see if something is still missing from the latest vesion, and send a
patch in that case.

> 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:

Perfect, thanks for all and congrats for the reached milestone !

-- 
Vincent Legoll

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

end of thread, other threads:[~2019-05-03 10:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-22 19:55 QEmu image configuration Vincent Legoll
2019-04-30  3:49 ` Chris Marusich
2019-05-03 10:34   ` Vincent Legoll

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).