aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-21 16:24:49 +0100
committerbinary <me@rgoncalves.se>2020-11-21 16:24:49 +0100
commit4306686384cdcd1afa6ecf85c4e1df3465f54319 (patch)
tree5eb58ed3201b4dc73a3ed674c94daa0c1b751f4d
parentb39a9432929c19eb11562c3687eac7c65c75180b (diff)
downloadinfrastructure-4306686384cdcd1afa6ecf85c4e1df3465f54319.tar.gz
Switch to virt kernel and check for cpu microcode.
-rw-r--r--roles/bhyve/tasks/main.yml1
-rw-r--r--roles/bhyve/templates/alpine.conf.j28
2 files changed, 5 insertions, 4 deletions
diff --git a/roles/bhyve/tasks/main.yml b/roles/bhyve/tasks/main.yml
index 3c1cadf..3ff902a 100644
--- a/roles/bhyve/tasks/main.yml
+++ b/roles/bhyve/tasks/main.yml
@@ -34,6 +34,7 @@
- vm-bhyve
- bhyve-firmware
- grub2-bhyve
+ - devcpu-data
- name: enable bhyve vm
shell: |
diff --git a/roles/bhyve/templates/alpine.conf.j2 b/roles/bhyve/templates/alpine.conf.j2
index 58cad66..9baf5c2 100644
--- a/roles/bhyve/templates/alpine.conf.j2
+++ b/roles/bhyve/templates/alpine.conf.j2
@@ -8,7 +8,7 @@ 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"
+grub_install0="linux /boot/vmlinuz-virt initrd=/boot/initramfs-virt alpine_dev=cdrom:iso9660 modules=loop,squashfs,sd-mod,usb-storage,sr-mod"
+grub_install1="initrd /boot/initramfs-virt"
+grub_run0="linux /boot/vmlinuz-virt root=/dev/vda3 modules=ext4"
+grub_run1="initrd /boot/initramfs-virt"
remember that computers suck.