From 30789e5d5f184a8f06a2f6eded4cf087e0a7cf19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Thu, 6 Sep 2018 23:34:19 +0200 Subject: [PATCH] Boot the vm, attaching the inputs as disks --- .gitignore | 1 + Makefile | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..709907b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.nar \ No newline at end of file diff --git a/Makefile b/Makefile index f5c21b1..efbf68b 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,8 @@ -all: - "$$(guix system vm-image config.scm)" +all: hello.nar /etc/guix/signing-key.pub Makefile + qemu-system-x86_64 -enable-kvm -m 256 \ + "$$(guix system vm-image config.scm)" \ + -drive format=raw,readonly,file=hello.nar,index=0,if=ide,index=1,media=disk \ + -drive format=raw,readonly,file=/etc/guix/signing-key.pub,index=0,if=ide,index=2,media=disk + +%.nar: Makefile + guix archive --export --recursive $* > $@