Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

point kvm/qemu/libkvmi to kvmi-v12 branches #127

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
url = https://github.com/KVM-VMI/qemu
[submodule "libvmi"]
path = libvmi
url = https://github.com/KVM-VMI/libvmi
url = https://github.com/adlazar/libvmi
[submodule "libkvmi"]
path = libkvmi
url = https://github.com/bitdefender/libkvmi
url = https://github.com/adlazar/libkvmi
2 changes: 1 addition & 1 deletion kvm
Submodule kvm updated from 150b4b to 6d4c3d
2 changes: 1 addition & 1 deletion libkvmi
2 changes: 1 addition & 1 deletion libvmi
2 changes: 1 addition & 1 deletion qemu
4 changes: 3 additions & 1 deletion vagrant/ansible/playbook_2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
DEBUG: 1
become: false

# add timeout because the self-tests can hang
# and we don't won't to burn Travis CI credits for no reason
- name: run kvm self-tests
command: ./tools/testing/selftests/kvm/x86_64/kvmi_test
command: timeout 10s ./tools/testing/selftests/kvm/x86_64/kvmi_test
args:
chdir: "{{ root_dir }}/kvm"

Expand Down
16 changes: 14 additions & 2 deletions vagrant/ansible/roles/kvm/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@
become: false
when: is_windows

- name: configure kernel using distro's config
command: make olddefconfig
- name: configure kernel using default x86_64 config
command: make x86_64_defconfig
args:
chdir: "{{ root_dir }}/kvm"
become: false

- name: configure kernel with KVM guest features
command: make kvm_guest.config
args:
chdir: "{{ root_dir }}/kvm"
become: false
Expand Down Expand Up @@ -84,6 +90,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
4 changes: 1 addition & 3 deletions vagrant/ansible/roles/vm/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
include: libvirt.yml

- name: install Packer
apt:
name: packer
state: present
include: packer.yml

- name: upload templates
synchronize:
Expand Down
20 changes: 20 additions & 0 deletions vagrant/ansible/roles/vm/tasks/packer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
- name: install unzip for unarchive module
package:
name: unzip

- name: download Packer 1.3.4
get_url:
url: 'https://releases.hashicorp.com/packer/1.3.4/packer_1.3.4_linux_amd64.zip'
dest: /tmp/packer.zip

- name: extract Packer
unarchive:
src: /tmp/packer.zip
dest: /usr/local/bin/
remote_src: yes

- name: remove Packer archive
file:
path: /tmp/packer.zip
state: absent