aboutsummaryrefslogtreecommitdiffstats
path: root/roles/bhyve/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/bhyve/templates')
-rw-r--r--roles/bhyve/templates/alpine.conf.j214
-rw-r--r--roles/bhyve/templates/openbsd.conf.j214
2 files changed, 28 insertions, 0 deletions
diff --git a/roles/bhyve/templates/alpine.conf.j2 b/roles/bhyve/templates/alpine.conf.j2
new file mode 100644
index 0000000..58cad66
--- /dev/null
+++ b/roles/bhyve/templates/alpine.conf.j2
@@ -0,0 +1,14 @@
+loader="grub"
+cpu={{ guest_cpu }}
+memory={{ guest_memory }}
+
+network0_type="virtio-net"
+network0_switch="{{ guest_switch }}"
+
+disk0_type="virtio-blk"
+disk0_name="disk0.img"
+
+grub_install0="linux /boot/vmlinuz-lts initrd=/boot/initramfs-lts alpine_dev=cdrom:iso9660 modules=loop,squashfs,sd-mod,usb-storage,sr-mod"
+grub_install1="initrd /boot/initramfs-lts"
+grub_run0="linux /boot/vmlinuz-lts root=/dev/vda3 modules=ext4"
+grub_run1="initrd /boot/initramfs-lts"
diff --git a/roles/bhyve/templates/openbsd.conf.j2 b/roles/bhyve/templates/openbsd.conf.j2
new file mode 100644
index 0000000..c791c6c
--- /dev/null
+++ b/roles/bhyve/templates/openbsd.conf.j2
@@ -0,0 +1,14 @@
+loader="grub"
+cpu={{ guest_cpu }}
+memory={{ guest_memory }}
+
+network0_type="virtio-net"
+network0_switch="{{ guest_switch }}"
+
+disk0_type="virtio-blk"
+disk0_name="disk0.img"
+
+grub_install0="kopenbsd -h com0 /6.8/amd64/bsd.rd"
+grub_run0="kopenbsd -h com0 -r sd0a /bsd"
+
+bhyve_options="-w"
remember that computers suck.