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

kvm: update submodule #153

Closed
wants to merge 115 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
bc3243c
vagrant: use ansible_local to be compatible with Windows
Wenzel Oct 8, 2020
cbb2107
vagrant: add hyperv provider
Wenzel Oct 8, 2020
5551d78
vagrant: add basic Windows detection support in Vagrantfile
Wenzel Oct 8, 2020
cff5d0b
ansible: perform initial checkout of KVM inside guest for Windows host
Wenzel Oct 8, 2020
7027974
docs/setup: update Vagrant guide to include Windows
Wenzel Oct 8, 2020
b220f51
vagrant/README: refer to Sphinx documentation
Wenzel Oct 8, 2020
84dbea1
vagrant: expose parent dir via NFS in libvirt provider configuration
Wenzel Oct 12, 2020
0448264
vagrant: add synchronization of sync_folder_hash for hyperv
Wenzel Oct 12, 2020
98b5fe9
docs: add images to manage Linux VMs
Wenzel Oct 14, 2020
c728be1
Merge pull request #87 from KVM-VMI/vagrant_hyper_v_support
Wenzel Oct 14, 2020
b0cb8f6
docs: fix typo
Wenzel Oct 14, 2020
ea36f2e
kvm: update submodule
Wenzel Oct 23, 2020
36cd4bb
docs: fix libkvmi branch
Wenzel Nov 5, 2020
0f50317
Merge pull request #89 from KVM-VMI/docs_fix_branch_libkvmi
Wenzel Nov 5, 2020
96ea679
kvm: update submodule
Wenzel Nov 12, 2020
ee7327b
kvm: update submodule
Wenzel Nov 13, 2020
be7ac36
doc: update KVMi versions
Wenzel Nov 25, 2020
35ad962
docs: add description for kvmi
Wenzel Nov 25, 2020
0511d74
docs: add kernel version for kvmi
Wenzel Nov 25, 2020
faac256
Merge pull request #92 from KVM-VMI/doc_update_kvmi_versions
Wenzel Nov 25, 2020
764c29c
docs: add documentation for kvmi v2 and v3
Wenzel Nov 25, 2020
8570f7c
Merge pull request #93 from KVM-VMI/doc_add_v2_v3
Wenzel Nov 25, 2020
325ac12
travis: add build for vagrant
Wenzel May 11, 2020
f4c2183
travis: use rsync to sync folders
Wenzel May 19, 2020
509e975
travis: remove vagrant debug output
Wenzel May 19, 2020
e926e4d
travis: remove packages for NFS setup
Wenzel May 19, 2020
7d776d7
ansible: add option to download VM instead of building it (for CI)
Wenzel Nov 25, 2020
642ab2b
vagrant: add option to customize sync folder type for libvirt
Wenzel Nov 25, 2020
0556331
travis: enable downloading VM instead of building with packer
Wenzel Nov 25, 2020
4973238
travis: only enable win7
Wenzel Nov 25, 2020
e3aac35
travis: upgrade vagrant
Wenzel Nov 25, 2020
01ca372
travis: add vmi-process-list test
Wenzel Nov 26, 2020
61ebba2
README: add travis badge
Wenzel Nov 26, 2020
a09ca17
travis: increase sleep time
Wenzel Nov 27, 2020
4a51d60
ansible: add dl link for winxp
Wenzel Nov 27, 2020
8bacf3e
travis: test on winxp
Wenzel Nov 27, 2020
ca2b368
Merge pull request #51 from KVM-VMI/travis_build_vagrant
Wenzel Nov 27, 2020
db6d090
vagrant: ansible_local stdout callback set to yaml
Wenzel Oct 31, 2020
736ffc1
travis: toggle debug output when running libvmi examples
Wenzel Jan 20, 2021
3072961
kvm/qemu: update kvmi-v7
Wenzel Jan 20, 2021
f90ab7b
ansible/kvm: refactor enabling KVM_INTROSPECTION
Wenzel Jan 15, 2021
0320817
vagrant: recreate symlinks instead of copying them (rsync)
Wenzel Jan 18, 2021
93e9a05
ansible: run kvm self-tests
Wenzel Jan 21, 2021
514fd57
ansible/kvm: disable the singlestep test
adlazar Jan 29, 2021
1e7aeac
Merge pull request #96 from KVM-VMI/update_kvmi-v7
Wenzel Feb 1, 2021
a0613c7
libkvmi: add submodule
Wenzel Feb 17, 2021
8fca1da
ansible/kvm: install libkvmi from submodule
Wenzel Feb 17, 2021
f950447
docs: use libkvmi from submodule
Wenzel Feb 17, 2021
5d666d7
vagrant: upgrade box to v3.2.4
Wenzel Feb 17, 2021
148aa4e
Merge pull request #99 from KVM-VMI/add_libkvmi_submodule
Wenzel Feb 18, 2021
e46f8c4
docs: remove kvmi suffix for bare-metal setup
Wenzel Feb 26, 2021
dc5122b
Merge pull request #101 from KVM-VMI/doc_remove_kvmi_prefix_makefile
Wenzel Feb 26, 2021
4754f4e
build(deps): bump pygments from 2.6.1 to 2.7.4 in /docs
dependabot[bot] Mar 30, 2021
73a24e0
vagrant: bump box to v3.2.18
Wenzel May 1, 2021
35c3333
Merge pull request #106 from KVM-VMI/bump_box
Wenzel May 1, 2021
473b023
qemu: update submodule
Wenzel May 26, 2021
9aca601
vagrant/vm: fix domain XML VCPU allocation to match JSON profile
Wenzel May 27, 2021
9d31838
Merge pull request #107 from KVM-VMI/winxp_xml_fix_socket
Wenzel May 28, 2021
4f8af0e
build(deps): bump urllib3 from 1.25.8 to 1.26.5 in /docs
dependabot[bot] Jun 2, 2021
1f2e567
Merge pull request #108 from KVM-VMI/dependabot/pip/docs/urllib3-1.26.5
Wenzel Jun 2, 2021
0ce540f
Merge pull request #104 from KVM-VMI/dependabot/pip/docs/pygments-2.7.4
Wenzel Jul 28, 2021
0b1d2b5
build(deps): bump jinja2 from 2.11.2 to 2.11.3 in /docs
dependabot[bot] Jul 28, 2021
29ad7d3
kvm: update submodule
Wenzel Jul 28, 2021
139be86
Merge pull request #103 from KVM-VMI/dependabot/pip/docs/jinja2-2.11.3
Wenzel Jul 28, 2021
068d501
Merge pull request #111 from KVM-VMI/cpuid
Wenzel Jul 30, 2021
a52cb5a
kvm,qemu: update submodule
Wenzel Jul 30, 2021
5b76059
Merge pull request #114 from KVM-VMI/avoid_clash_syscall_index_pidfd_mem
Wenzel Jul 30, 2021
ec14a14
vagrant: bump box to v3.3.2
Wenzel Jul 28, 2021
0dcd592
docs: fix requirements conflict
Wenzel Jul 30, 2021
d2196a4
Merge pull request #115 from KVM-VMI/doc/fix_conflict_pip
Wenzel Jul 30, 2021
aa3e37d
Merge pull request #113 from KVM-VMI/vagrant/bump_vagrant
Wenzel Jul 30, 2021
ab03973
kvm: update submodule
Wenzel Aug 1, 2021
a9f8d81
Merge pull request #117 from KVM-VMI/fix_gcc_10
Wenzel Aug 1, 2021
06b5f72
ci: bump vagrant to 2.2.18
Wenzel Aug 2, 2021
1b2cff2
ci: bump dist to focal
Wenzel Aug 2, 2021
6f26617
Merge pull request #118 from KVM-VMI/ci/bump
Wenzel Aug 2, 2021
88a53a7
docs: update base-metal setup info
adlazar Aug 26, 2021
331de41
Merge pull request #119 from KVM-VMI/update-bare-metal-setup-info
Wenzel Aug 26, 2021
a62a7e5
kvm: update submodule
Wenzel Aug 26, 2021
ce55fbd
Merge pull request #120 from KVM-VMI/kvmi_update_ad_flags_declaration
Wenzel Aug 27, 2021
4740056
kvm: update submodule
Wenzel Aug 27, 2021
f406b0d
Merge pull request #121 from KVM-VMI/kvm_drop_obselete_code_and_doc
Wenzel Aug 27, 2021
459e100
docs: add 'debugging' and 'how to add new events/commands' sections
adlazar Aug 27, 2021
20542d0
Merge pull request #122 from KVM-VMI/add-debugging-and-how-to-add-new…
Wenzel Aug 27, 2021
317fbd6
docs: add info about v11 and v12
adlazar Oct 6, 2021
0da01b5
Merge pull request #126 from KVM-VMI/add-info-about-v11-and-v12
Wenzel Oct 6, 2021
74837e5
vagrant: bump box to v3.4.2
Wenzel Oct 12, 2021
db8a528
Merge pull request #128 from KVM-VMI/vagrant/bump_box
Wenzel Oct 12, 2021
c1b3ee7
build(deps): bump babel from 2.8.0 to 2.9.1 in /docs
dependabot[bot] Oct 21, 2021
92723d9
Merge pull request #130 from KVM-VMI/dependabot/pip/docs/babel-2.9.1
Wenzel Oct 21, 2021
195b7a0
vagrant: bump box to v3.6.12
Wenzel Apr 11, 2022
e9efce2
Merge pull request #134 from KVM-VMI/bump_vagrant_box
Wenzel Apr 11, 2022
797b6ec
kvm: update submodule
adlazar Jun 23, 2022
daabbfa
Merge pull request #135 from KVM-VMI/update-kvm-submodule
Wenzel Jun 23, 2022
1cf43ef
kvm: update submodule
adlazar Aug 30, 2022
220ef80
Merge pull request #136 from KVM-VMI/update-kvm-module
Wenzel Aug 31, 2022
744e74e
bump vagrant box to 4.1.18
Wenzel Oct 28, 2022
23dc9f2
Merge pull request #137 from KVM-VMI/bump_vagrant_box
Wenzel Oct 29, 2022
fc052e6
vagrant: bump box to v4.2.8
Wenzel Jan 8, 2023
be1dd6b
Merge pull request #141 from KVM-VMI/bump_vagrant_box
Wenzel Jan 8, 2023
95ebd33
add rsync__args to Vagrantfile
PuckiPwn Jan 11, 2023
df5e692
Update Vagrantfile
PuckiPwn Jan 11, 2023
f104f08
Merge pull request #144 from PuckiPwn/master
Wenzel Jan 12, 2023
25c0931
libkvmi: update submodule
Wenzel Jan 21, 2023
c5da709
Merge pull request #145 from KVM-VMI/update_libkvmi
Wenzel Jan 21, 2023
e115380
build(deps): bump certifi from 2019.11.28 to 2022.12.7 in /docs
dependabot[bot] Mar 10, 2023
2862d74
Merge pull request #139 from KVM-VMI/dependabot/pip/docs/certifi-2022…
Wenzel Mar 10, 2023
10aa62a
ci: add build workflow to test kvm on multiple Ubuntu releases
Wenzel Mar 10, 2023
6ed4364
docs: update bare-metal setup instruction
Wenzel Mar 10, 2023
00d8f23
Merge pull request #148 from KVM-VMI/kvm/build_workflow
Wenzel Mar 11, 2023
e8b77d5
ci/doc: bump python
Wenzel Apr 7, 2023
9aec86e
Merge pull request #150 from KVM-VMI/ci/doc/update_python
Wenzel Apr 7, 2023
8a15e95
ci/doc: fix python 3.10 string
Wenzel Apr 7, 2023
ad6bd5f
Merge pull request #151 from KVM-VMI/ci/doc/update_python
Wenzel Apr 7, 2023
5644515
kvm: update submodule
adlazar May 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Build

on:
push:
branches:
- master
pull_request:

jobs:
kvm:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04]

steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: install build dependencies
run: sudo apt-get install -y dwarves bc fakeroot flex bison libelf-dev libssl-dev ncurses-dev

- name: copy Ubuntu kernel config
run: cp /boot/config-$(uname -r) .config
working-directory: kvm

- name: configure kernel
run: |
# disable kernel signature
./scripts/config --disable SYSTEM_TRUSTED_KEYS
./scripts/config --disable SYSTEM_REVOCATION_KEYS
# compress debug info (otherwise might fail with 'no space left on device' on the runnner)
./scripts/config --enable DEBUG_INFO_COMPRESSED
# enable KVM
./scripts/config --module KVM
./scripts/config --module KVM_INTEL
./scripts/config --module KVM_AMD
./scripts/config --enable KVM_INTROSPECTION
# fix ERROR: "unlock_device_hotplug" [drivers/dax/kmem.ko] undefined!
./scripts/config --disable TRANSPARENT_HUGEPAGE
# tweak locaversion
./scripts/config --set-str CONFIG_LOCALVERSION -kvmi
working-directory: kvm

- name: configure kernel (Ubuntu 22.04)
run: |
# fix: arch/x86/entry/thunk_64.o: warning: objtool: missing symbol table
./scripts/config --enable PREEMPT
# fix: error: call to '__compiletime_assert_653' in drivers/net/ethernet/netronome/nfp/bpf/jit.c
./scripts/config --disable NET_VENDOR_NETRONOME
working-directory: kvm
if: ${{ matrix.os == 'ubuntu-22.04' }}

- name: olddefconfig
run: make olddefconfig
working-directory: kvm

- name: generate debian package
run: make -j$(nproc) bindeb-pkg
working-directory: kvm

- uses: actions/upload-artifact@v3
with:
name: kvm-${{ matrix.os }}
path: '*.deb'
6 changes: 3 additions & 3 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

strategy:
matrix:
Expand All @@ -22,9 +22,9 @@ jobs:
ref: ${{ matrix.kvmi_ver }}

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4.5.0
with:
python-version: 3.6
python-version: "3.10"

- name: Install dependencies 📦
run: pip install -r docs/requirements.txt
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "libvmi"]
path = libvmi
url = https://github.com/KVM-VMI/libvmi
[submodule "libkvmi"]
path = libkvmi
url = https://github.com/bitdefender/libkvmi
55 changes: 55 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
dist: focal
language: minimal
git:
depth: 1
addons:
apt:
sources:
- sourceline: 'deb [arch=amd64] https://apt.releases.hashicorp.com focal main'
key_url: 'https://apt.releases.hashicorp.com/gpg'
packages:
- bridge-utils
- dnsmasq-base
- ebtables
- libvirt-daemon-system
- libvirt-dev
- qemu-kvm
- qemu-utils
- ruby-dev
- ansible
- vagrant

# Cache the big Vagrant boxes
cache:
directories:
- /home/travis/.vagrant.d/boxes

install:
- vagrant --version

- vagrant plugin install vagrant-libvirt
- vagrant plugin install vagrant-reload

script:
- pushd vagrant
# use rsync since NFS doesn't work
- sed -i -E "s:^(\s*)libvirt_sync_folder_type =.*:\1libvirt_sync_folder_type = 'rsync':" Vagrantfile
# enable winxp
- sed -i -E "s/^(\s*'winxp'\:\s).*/\1true,/g" Vagrantfile
# disable ubuntu
- sed -i -E "s/^(\s*'ubuntu'\:\s).*/\1false,/g" Vagrantfile
# disable win7
- sed -i -E "s/^(\s*'win7'\:\s).*/\1false,/g" Vagrantfile
# enable downloading VM images instead of building them
- sed -i -E "s/^(\s*download_vm_image\:\s).*/\1true/" ansible/playbook_2.yml
# we are not in libvirt group, so use sudo
- while sleep 9m; do echo "=====[ $SECONDS seconds still running ]====="; done &
- sudo -E vagrant up --provider=libvirt
- kill %1
# start winxp VM
- sudo -E vagrant ssh -c 'virsh -c qemu:///system start winxp'
# wait a few minutes until the VM boots
- sleep 9m
# run vmi-process-list
- sudo -E vagrant ssh -c 'LIBVMI_DEBUG=1 vmi-process-list -n winxp -j /etc/libvmi/winxp-profile.json -s /tmp/introspector'
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ KVM-based Virtual Machine Instrospection.
</h3>

<p align="center">
<a href="https://travis-ci.com/KVM-VMI/kvm-vmi">
<img src="https://travis-ci.com/KVM-VMI/kvm-vmi.svg?branch=master" alt="CI">
</a>
<a href="https://kvm-vmi.slack.com">
<img src="https://img.shields.io/badge/Slack-KVM--VMI-important" alt="Slack">
</a>
Expand Down
Binary file added docs/images/linux/add_connection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/linux/ip_a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/windows/cr3-event.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/windows/ip_a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/windows/port.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/windows/start_winxp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/windows/vagrant_ssh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/windows/vmi-process-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/windows/vmi-win-guid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/windows/vnc_connect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/windows/vnc_warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/windows/winxp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading