From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: qemu instructions for manual Date: Tue, 12 Jan 2016 22:50:33 +0100 Message-ID: <871t9ma2mu.fsf@gnu.org> References: <20160111200317.GA8686@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJ6ps-000558-PT for guix-devel@gnu.org; Tue, 12 Jan 2016 16:50:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJ6po-00053l-M0 for guix-devel@gnu.org; Tue, 12 Jan 2016 16:50:40 -0500 In-Reply-To: <20160111200317.GA8686@jasmine> (Leo Famulari's message of "Mon, 11 Jan 2016 15:03:17 -0500") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Leo Famulari Cc: guix-devel@gnu.org Leo Famulari skribis: > This appears to be the minimum QEMU invocation that works: > $ qemu-system-x86_64 \ > -net user \ > -net nic,model=3Dvirtio \ > -m 256 \ > ./qemu-image In practice -enable-kvm is highly recommended too. I think anything less than 5 to 8(?) years old supports virtualization extensions. > Annotated version: > # System type to emulate. Does this have to match the host hardware? Can > # "foreign" arch machine images be built with Guix? > $ qemu-system-x86_64 \ In theory we should be able to cross-compile complete GuixSD images to other architectures, but that=E2=80=99s never been tried and there are prob= ably lots of build issues on the way, so let=E2=80=99s say that this has to matc= h the hardware platform or a sibling thereof (e.g., i686 code can be built on x86_64.) > # Unprivileged user mode networking. Guest can access host but not vice v= ersa. > # If you don't choose a network stack, the boot process will fail. > -net user \ > > # You must create a network interface of a given model. You can get a lis= t of > # available NIC types by running `qemu-system-$arch -net nic,model=3Dhelp= `. If > # you don't create a NIC, the boot process will fail. > -net nic,model=3Dvirtio \ > > # RAM available to the guest OS. Defaults to 128 megabytes, which is not = enough > # for the Guix daemon. More is better. > -m 256 \ > > OPTIONAL: If your system is x86 with hardware virtualization extensions, > enabling the kernel virtual machine will make things go much faster. > -enable-kvm \ > > # Path to the virtual machine image > ./qemu-image Sounds good! Note that our QEMU package installs two Info manuals. They are sparse, but helpful. In the Guix manual, and interesting thing would be an =E2=80=9CInstallating GuixSD in a VM=E2=80=9D section. This is a bit more involved than the abov= e, because you need a target disk image separate from the installation image, but the above is a good start. Thanks, Ludo=E2=80=99.