summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Legoll <vincent.legoll@idgrilles.fr>2016-07-13 16:24:08 +0200
committerLudovic Courtès <ludo@gnu.org>2016-08-02 14:26:32 +0200
commitc8b543741f422ecf41e7635c6a1c40b3bd55947a (patch)
tree03d7fb35a299aaebf8d2e65c155e8deeb43f7c06
parent873b51b34057d9d13c628289f57b10dec07b2060 (diff)
doc: Add "Installing GuixSD in a VM" node.
* doc/guix.texi (Installing GuixSD in a VM): New node. (USB Stick Installation): Refer to it. (System Installation): Mention "GuixSD". Co-authored-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--doc/guix.texi55
1 files changed, 54 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 9b3f51ecafe..77f028e0779 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -187,6 +187,7 @@ System Installation
187* USB Stick Installation:: Preparing the installation medium. 187* USB Stick Installation:: Preparing the installation medium.
188* Preparing for Installation:: Networking, partitioning, etc. 188* Preparing for Installation:: Networking, partitioning, etc.
189* Proceeding with the Installation:: The real thing. 189* Proceeding with the Installation:: The real thing.
190* Installing GuixSD in a VM:: GuixSD playground.
190* Building the Installation Image:: How this comes to be. 191* Building the Installation Image:: How this comes to be.
191 192
192System Configuration 193System Configuration
@@ -6029,7 +6030,7 @@ to join! @xref{Contributing}, for information about how you can help.
6029@section System Installation 6030@section System Installation
6030 6031
6031@cindex Guix System Distribution 6032@cindex Guix System Distribution
6032This section explains how to install the Guix System Distribution 6033This section explains how to install the Guix System Distribution (GuixSD)
6033on a machine. The Guix package manager can 6034on a machine. The Guix package manager can
6034also be installed on top of a running GNU/Linux system, 6035also be installed on top of a running GNU/Linux system,
6035@pxref{Installation}. 6036@pxref{Installation}.
@@ -6054,6 +6055,7 @@ available.
6054* USB Stick Installation:: Preparing the installation medium. 6055* USB Stick Installation:: Preparing the installation medium.
6055* Preparing for Installation:: Networking, partitioning, etc. 6056* Preparing for Installation:: Networking, partitioning, etc.
6056* Proceeding with the Installation:: The real thing. 6057* Proceeding with the Installation:: The real thing.
6058* Installing GuixSD in a VM:: GuixSD playground.
6057* Building the Installation Image:: How this comes to be. 6059* Building the Installation Image:: How this comes to be.
6058@end menu 6060@end menu
6059 6061
@@ -6199,6 +6201,9 @@ Once this is done, you should be able to reboot the system and boot from
6199the USB stick. The latter usually requires you to get in the BIOS' boot 6201the USB stick. The latter usually requires you to get in the BIOS' boot
6200menu, where you can choose to boot from the USB stick. 6202menu, where you can choose to boot from the USB stick.
6201 6203
6204@xref{Installing GuixSD in a VM}, if, instead, you would like to install
6205GuixSD in a virtual machine (VM).
6206
6202@node Preparing for Installation 6207@node Preparing for Installation
6203@subsection Preparing for Installation 6208@subsection Preparing for Installation
6204 6209
@@ -6456,6 +6461,54 @@ Join us on @code{#guix} on the Freenode IRC network or on
6456@file{guix-devel@@gnu.org} to share your experience---good or not so 6461@file{guix-devel@@gnu.org} to share your experience---good or not so
6457good. 6462good.
6458 6463
6464@node Installing GuixSD in a VM
6465@subsection Installing GuixSD in a Virtual Machine
6466
6467@cindex virtual machine, GuixSD installation
6468If you'd like to install GuixSD in a virtual machine (VM) rather than on
6469your beloved machine, this section is for you.
6470
6471To boot a @uref{http://qemu.org/,QEMU} VM for installing GuixSD in a
6472disk image, follow these steps:
6473
6474@enumerate
6475@item
6476First, retrieve the GuixSD installation image as described previously
6477(@pxref{USB Stick Installation}).
6478
6479@item
6480Create a disk image that will hold the installed system. To make a
6481qcow2-formatted disk image, use the @command{qemu-img} command:
6482
6483@example
6484qemu-img create -f qcow2 guixsd.img 5G
6485@end example
6486
6487This will create a 5GB file.
6488
6489@item
6490Boot the USB installation image in an VM:
6491
6492@example
6493qemu-system-x86_64 -m 1024 -smp 1 \
6494 -net default -net nic,model=virtio -boot menu=on \
6495 -drive file=guixsd.img \
6496 -drive file=guixsd-usb-install-@value{VERSION}.@var{system}
6497@end example
6498
6499In the VM console, quickly press the @kbd{F12} key to enter the boot
6500menu. Then press the @kbd{2} key and the @kbd{RET} key to validate your
6501selection.
6502
6503@item
6504You're now root in the VM, proceed with the installation process.
6505@xref{Preparing for Installation}, and follow the instructions.
6506@end enumerate
6507
6508Once installation is complete, you can boot the system that's on your
6509@file{guixsd.img} image. @xref{Running GuixSD in a VM}, for how to do
6510that.
6511
6459@node Building the Installation Image 6512@node Building the Installation Image
6460@subsection Building the Installation Image 6513@subsection Building the Installation Image
6461 6514