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: Mon, 9 Dec 2024 10:27:41 +0100	[thread overview]
Message-ID: <Z1a4DYAp5GvOQIma@jurong> (raw)
In-Reply-To: <CAADtM-YsuaUTZ3AYgupiRnbH99Nz=69VVubQ1=3+2mFQVOAFkw@mail.gmail.com>

Hello Tim,

Am Sun, Dec 08, 2024 at 07:29:47PM -0500 schrieb Timothy Washington:
> (define vm-image
>   (image
>    (operating-system physical-operating-system)
>    (format qcow2-image-type)
>    (size (* 10 (expt 2 30)))))

looking at the code, I see this in gnu/image.scm:
(define-record-type* <image>
  image make-image
  image?
  (name               image-name ;symbol
                      (default #false))
  (format             image-format                ;symbol
                      (sanitize validate-image-format))
...

and a bit above:
;; The supported image formats.
(define-set-sanitizer validate-image-format format
  (disk-image compressed-qcow2 docker iso9660 tarball wsl2))

So my guess is that 'compressed-qcow2 would be the value to put there.

Andreas



  parent reply	other threads:[~2024-12-09 10:08 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 [this message]
2024-12-11  4:50   ` Timothy Washington
2024-12-11 12:42     ` Andreas Enge

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=Z1a4DYAp5GvOQIma@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).