Skip to content

Commit

Permalink
vagrant/kvm: configure grub to boot kernel with kvm.introspection=1
Browse files Browse the repository at this point in the history
Signed-off-by: Adalbert Lazăr <[email protected]>
  • Loading branch information
adlazar committed Oct 11, 2021
1 parent b8c3c69 commit c0a6d0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vagrant/ansible/roles/kvm/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
regexp: '^GRUB_DEFAULT'
line: 'GRUB_DEFAULT="1>0"'

- name: add kvm.introspection=1 to kernel command line
lineinfile:
dest: /etc/default/grub.d/99-introspection.cfg
line: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT kvm.introspection=1"'
create: yes

- name: update GRUB configuration
command: update-grub

Expand Down

0 comments on commit c0a6d0d

Please sign in to comment.