Skip to content

Commit 02f54d9

Browse files
committed
configure grub to boot kernel with kvm.introspection=1
Signed-off-by: Adalbert Lazăr <[email protected]>
1 parent 3af9450 commit 02f54d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vagrant/ansible/roles/kvm/tasks/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@
8484
regexp: '^GRUB_DEFAULT'
8585
line: 'GRUB_DEFAULT="1>0"'
8686

87+
- name: add kvm.introspection=1 to kernel command line
88+
lineinfile:
89+
dest: /etc/default/grub.d/99-introspection.cfg
90+
line: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT kvm.introspection=1"'
91+
create: yes
92+
8793
- name: update GRUB configuration
8894
command: update-grub
8995

0 commit comments

Comments
 (0)