Re: Building Qemu VM

2024-12-12 Thread Timothy Washington
Good catch. I'm starting to get a better hang of navigating guix code. And this nudges me along. Thanks for that. Tim On Wed, 11 Dec 2024 at 07:42, Andreas Enge wrote: > Am Tue, Dec 10, 2024 at 11:50:44PM -0500 schrieb Timothy Washington: > > (define (boot-partition size) > > (file-system > >

Re: Building Qemu VM

2024-12-11 Thread Andreas Enge
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/vda

Re: Building Qemu VM

2024-12-10 Thread Timothy Washington
Yes, Cheers for that. I'm able to run that command, and get a bit further. Tim On Mon, 9 Dec 2024 at 05:08, Jeremy Korwin-Zmijowski < jer...@korwin-zmijowski.fr> wrote: > Hi Timothy, > > Last time I generated a system image, I ran this command : > > guix system image --image-size=10G --image-typ

Re: Building Qemu VM

2024-12-10 Thread Timothy Washington
Hi Andreas, Ah, so my `(use-modules)` needed A, not B. Ie the `image` form is coming from `gnu.image`, not `gnu.system.image`. But then what is the difference between these two modules? When would I use `gnu.system.image` instead of `gnu.image`? A. (gnu image) B. (gnu system image) Either way, I

Re: Building Qemu VM

2024-12-09 Thread Andreas Enge
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*

Re: Building Qemu VM

2024-12-09 Thread Jeremy Korwin-Zmijowski
Hi Timothy, Last time I generated a system image, I ran this command : guix system image --image-size=10G --image-type=qcow2 basic.scm Does it help ? Jérémy

Building Qemu VM

2024-12-08 Thread Timothy Washington
I've got an existing `system.scm` which defines `physical-operating-system` as a guix `operating-system`. I've created a simplified `vm-image` in its own file `vm.scm`. (use-modules (gnu) (gnu system) (gnu system image) (gnu system vm) (guix gex