summaryrefslogtreecommitdiff
path: root/vm.vmdb
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-04-01 09:11:38 +0300
committerLars Wirzenius <liw@liw.fi>2020-04-01 09:11:38 +0300
commitbfe1f96f3e55fb8d537df46c44fb61a83d69f6d2 (patch)
tree7b4ea33978cdf7bd810030687a04b45533dac654 /vm.vmdb
parent21e9727b047f995856fd8756b3b84a6c9ba14667 (diff)
downloadick-contractor-bfe1f96f3e55fb8d537df46c44fb61a83d69f6d2.tar.gz
Add: first sketch of outer VM spec for vmdb2 and script to build
Diffstat (limited to 'vm.vmdb')
-rw-r--r--vm.vmdb43
1 files changed, 43 insertions, 0 deletions
diff --git a/vm.vmdb b/vm.vmdb
new file mode 100644
index 0000000..2be065b
--- /dev/null
+++ b/vm.vmdb
@@ -0,0 +1,43 @@
+# An image for running the Ick contractor outer VM.
+
+steps:
+ - mkimg: "{{ output }}"
+ size: 20G
+
+ - mklabel: msdos
+ device: "{{ output }}"
+
+ - mkpart: primary
+ device: "{{ output }}"
+ start: 0%
+ end: 100%
+ tag: /
+
+ - kpartx: "{{ output }}"
+
+ - mkfs: ext4
+ partition: /
+
+ - mount: /
+
+ - unpack-rootfs: /
+
+ - debootstrap: buster
+ mirror: http://deb.debian.org/debian
+ target: /
+ unless: rootfs_unpacked
+
+ - apt: install
+ packages:
+ - linux-image-amd64
+ - python3
+ tag: /
+ unless: rootfs_unpacked
+
+ - cache-rootfs: /
+ unless: rootfs_unpacked
+
+ - fstab: /
+
+ - grub: bios
+ tag: /