unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Andreas Enge <andreas@enge.fr>
To: Timothy Washington <twashing@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Building Qemu VM
Date: Wed, 11 Dec 2024 13:42:12 +0100	[thread overview]
Message-ID: <Z1mIpO_SV1f0LNWD@jurong> (raw)
In-Reply-To: <CAADtM-a4jVOMFAibZ35iJZUPYKE6fbY4hGYx65Hwmynnr=cvAw@mail.gmail.com>

Am Tue, Dec 10, 2024 at 11:50:44PM -0500 schrieb Timothy Washington:
> (define (boot-partition size)
>   (file-system
>      (mount-point "/boot")
>      (device "/dev/vda1")
>      (type "ext4")))
> 
> (define (root-partition size)
>   (file-system
>      (mount-point "/")
>      (device "/dev/vda1")
>      (type "ext4")))
> 
> (define vm-image
>   (image
>    (operating-system physical-operating-system)
>    (format 'compressed-qcow2)
>    (size (* 10 (expt 2 30)))
>    (partitions
>     (list (boot-partition (* 1 (expt 2 30)))
>           (root-partition (* 9 (expt 2 30)))))))

Have a look at the documentation of the "image" record:
   https://guix.gnu.org/manual/en/html_node/image-Reference.html#index-image
and follow the "partition Reference":
   https://guix.gnu.org/manual/en/html_node/partition-Reference.html

A partition is not a file-system.

Andreas



      reply	other threads:[~2024-12-11 12:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-09  0:29 Building Qemu VM Timothy Washington
2024-12-09  8:51 ` Jeremy Korwin-Zmijowski
2024-12-11  4:52   ` Timothy Washington
2024-12-09  9:27 ` Andreas Enge
2024-12-11  4:50   ` Timothy Washington
2024-12-11 12:42     ` Andreas Enge [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Z1mIpO_SV1f0LNWD@jurong \
    --to=andreas@enge.fr \
    --cc=help-guix@gnu.org \
    --cc=twashing@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).