From 3e891b1a1fe21c26e7a09293106bf60dea6334e5 Mon Sep 17 00:00:00 2001 From: binary Date: Thu, 19 Nov 2020 23:40:34 +0100 Subject: Basic behyve initialization --- roles/bhyve/templates/alpine.conf.j2 | 14 ++++++++++++++ roles/bhyve/templates/openbsd.conf.j2 | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 roles/bhyve/templates/alpine.conf.j2 create mode 100644 roles/bhyve/templates/openbsd.conf.j2 (limited to 'roles/bhyve/templates') 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" -- cgit v1.2.3