diff options
author | binary <me@rgoncalves.se> | 2020-11-19 23:40:34 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-11-19 23:40:34 +0100 |
commit | 3e891b1a1fe21c26e7a09293106bf60dea6334e5 (patch) | |
tree | a29d9e192423a39f9e6720a6acdaa05a24b0676f /roles/bhyve/templates | |
parent | c7cca6eb560146116a57fb2a2bfff35c9ba023bc (diff) | |
download | infrastructure-3e891b1a1fe21c26e7a09293106bf60dea6334e5.tar.gz |
Basic behyve initialization
Diffstat (limited to 'roles/bhyve/templates')
-rw-r--r-- | roles/bhyve/templates/alpine.conf.j2 | 14 | ||||
-rw-r--r-- | roles/bhyve/templates/openbsd.conf.j2 | 14 |
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" |