Skip to content

Commit

Permalink
fix running vm && add building module in vm
Browse files Browse the repository at this point in the history
  • Loading branch information
ansavin committed Aug 25, 2024
1 parent 66b4e3f commit de6a3c7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/run_module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

# Install dependencies
- run: sudo apt update
- run: sudo apt -y install bison busybox-static cargo cmake coreutils cpio elfutils file flex gcc gcc-multilib git iproute2 jq kbd kmod libcap-dev libelf-dev libunwind-dev libvirt-clients libzstd-dev linux-headers-generic linux-tools-common linux-tools-generic make ninja-build pahole pkg-config python3-dev python3-pip python3-requests qemu-kvm rsync rustc stress-ng udev zstd
- run: sudo apt -y install bison busybox-static cmake coreutils cpio elfutils file flex gcc gcc-multilib git iproute2 jq kbd kmod libcap-dev libelf-dev libunwind-dev libvirt-clients libzstd-dev linux-headers-generic linux-tools-common linux-tools-generic make pahole pkg-config python3-dev python3-pip python3-requests qemu-kvm rsync stress-ng udev zstd curl
### END DEPENDENCIES ###

# Install virtme-ng
Expand All @@ -36,8 +36,9 @@ jobs:
# Generate kernel headers
- run: cd linux && make headers

# Run VM & test kernel module
- run: vng -v -- ls ..
# Print CPU model before running the tests (this can be useful for
# debugging purposes)
- run: grep 'model name' /proc/cpuinfo | head -1

# Setup KVM support
- name: "KVM support"
Expand All @@ -46,6 +47,9 @@ jobs:
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
# Run VM & test kernel module
- run: cd linux && vng -v -- 'cd .. && ls && make KSRC=linux && insmod mod-webserver.ko && echo 1 > /sys/kernel/webserver/net/data/status && curl 127.0.0.1:2000'

# Re-run with KVM support
- name: "Check KVM support"
run: |
Expand Down

0 comments on commit de6a3c7

Please sign in to comment.