| 1 | ;; -*-scheme-*-
|
| 2 |
|
| 3 | ;; This is an operating system configuration template
|
| 4 | ;; for a "bare bones" QEMU setup, with no X11 display server.
|
| 5 |
|
| 6 | ;; To build a disk image for a virtual machine, do:
|
| 7 | ;;
|
| 8 | ;; ./pre-inst-env guix system image --image-type=hurd64-qcow2 --image-size=6G \
|
| 9 | ;; --no-offload gnu/system/examples/devel-hurd64.tmpl
|
| 10 | ;;
|
| 11 | ;; You may run it like so:
|
| 12 | ;;
|
| 13 | ;; cp /gnu/store/.../disk-image devel-hurd.img
|
| 14 | ;; guix shell qemu -- qemu-system-x86_64 -m 4096 -M q35 \
|
| 15 | ;; --enable-kvm \
|
| 16 | ;; --device e1000,netdev=net0 \
|
| 17 | ;; --netdev user,id=net0,hostfwd=tcp:127.0.0.1:10022-:2222 \
|
| 18 | ;; --hda devel-hurd.img
|
| 19 | ;;
|
| 20 | ;; and use it like:
|
| 21 | ;;
|
| 22 | ;; ssh -p 10022 root@localhost
|
| 23 | ;; guix build -e '(@@ (gnu packages commencement) gnu-make-boot0)'
|
| 24 | ;;
|
| 25 | ;; or even:
|
| 26 | ;;
|
| 27 | ;; guix build hello
|
| 28 | ;;
|
| 29 | ;; For Guix hacking, do something like:
|
| 30 | ;;
|
| 31 | ;; guix shell --boostrap -D guix
|
| 32 | ;; mkdir ~/src && cd src
|
| 33 | ;; git clone git://git.savannah.gnu.org/guix
|
| 34 | ;; ./bootstrap
|
| 35 | ;; ./configure
|
| 36 | ;; make
|
| 37 |
|
| 38 | (include "devel-hurd.tmpl")
|
| 39 | (include "bare-hurd64.tmpl")
|
| 40 |
|
| 41 | (define %hurd64-devel-os
|
| 42 | (operating-system
|
| 43 | (inherit %hurd64-os)
|
| 44 | (bootloader (bootloader-configuration
|
| 45 | (bootloader grub-minimal-bootloader)
|
| 46 | (targets '("/dev/sdX"))
|
| 47 | (timeout 0)))
|
| 48 | (timezone "Europe/Berlin")
|
| 49 | (swap-devices (list (swap-space
|
| 50 | (target "/swapfile"))))
|
| 51 | (packages (cons*
|
| 52 | gdb-minimal-15
|
| 53 | git-minimal
|
| 54 | gnu-make
|
| 55 | m4
|
| 56 | openssh-sans-x
|
| 57 | (append
|
| 58 | guix-packages
|
| 59 | hurd-packages
|
| 60 | %base-packages/hurd)))))
|
| 61 |
|
| 62 | %hurd64-devel-os
|