[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [v2 1/1] doc: Show how to boot result of 'vm-image'.
From: |
Leo Famulari |
Subject: |
Re: [v2 1/1] doc: Show how to boot result of 'vm-image'. |
Date: |
Tue, 26 Jan 2016 14:42:15 -0500 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Tue, Jan 26, 2016 at 11:08:09AM +0100, Ludovic Courtès wrote:
> Leo Famulari <address@hidden> skribis:
>
> > * doc/guix.texi (Running GuixSD in a VM): New node.
> > (Invoking guix system): Add reference to 'Running GuixSD in a VM'.
>
> [...]
>
> > address@hidden Running GuixSD in a VM
> > address@hidden Running GuixSD in a VM
>
> s/VM/virtual machine/ on the second line.
>
> > +One way to run GuixSD in a virtual machine is to build a GuixSD virtual
>
> After “virtual machine”, add “(VM)” to introduce the acronym.
>
> > +machine image using @command{guix system vm-image} (@pxref{Invoking guix
> > +system}). The returned image is in qcow2 format, which the
> ^^
> Please make sure that all the end-of-sentence periods are followed by
> two spaces or a newline (info "(texinfo) Not Ending a Sentence").
>
> > +$ qemu-system-x86_64 \
> > +-net user -net nic,model=virtio \
> > +-enable-kvm -m 256 /tmp/qemu-image
>
> Would be nice to align the 2nd and 3rd line below the ‘e’ of ‘qemu’.
>
> > +And the annotated version:
>
> Maybe “Here is what each of these options means:”.
>
> > +x86_64, you can get a list of available NIC models by running
> > +`qemu-system-x86_64 -net nic,model=help`.
>
> Instead of backquotes, use @command{…}.
>
> > address@hidden -enable-kvm
> > +If your system has hardware virtualization extensions, enabling the
> > +kernel virtual machine will make things run faster.
>
> s/kernel virtual machine/Linux kernel's virtual machine support (KVM)/
>
> > address@hidden -m 256
> > +RAM available to the guest OS, in megabytes. Defaults to 128 megabytes,
> > +which is not enough for the Guix daemon.
>
> “Defaults to address@hidden, which may be insufficient for some
> operations.” (It’s not the daemon specifically, it’s mostly if you want
> to run X + Xfce, for instance. The former ‘guix substitute’ used to
> take quite a lot of memory, but I think that’s no longer the case since
> we switched to HTTP pipelining.)
I hit this limit while using the "bare-bones" configuration template.
The system would boot with 128 MiB of RAM but any operations using the
daemon would fail.
Also, I looked into how QEMU interprets "megabyte" et al. From the QEMU
source file "include/qemu-common.h":
#define M_BYTE (1ULL << 20)
So, I replaced "megabyte" with "mebibyte" in this paragraph.
>
> > address@hidden /tmp/qemu-image
> > +The filesystem path of the qcow2 image.
>
> s/filesystem path/file name/
>
> OK with these changes, thanks a lot!
Thanks for your help!
>
> Ludo’.