Skip to content

Commit ddfe10f

Browse files
committed
test(ci): test nested virtualization
1 parent fb83d1a commit ddfe10f

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Nested Virtualization Probe
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
runner:
7+
description: "Runner label to probe"
8+
required: false
9+
type: string
10+
default: "linux-amd64-cpu8"
11+
12+
permissions:
13+
contents: read
14+
15+
defaults:
16+
run:
17+
shell: bash
18+
19+
jobs:
20+
probe:
21+
name: Probe nested virtualization
22+
runs-on: ${{ inputs.runner }}
23+
timeout-minutes: 5
24+
25+
steps:
26+
- name: Print CPU virtualization signals
27+
run: |
28+
set -euo pipefail
29+
30+
echo "runner_name=${RUNNER_NAME}"
31+
echo "runner_os=${RUNNER_OS}"
32+
echo "runner_arch=${RUNNER_ARCH}"
33+
uname -a
34+
35+
echo "vmx_count=$(grep -cw vmx /proc/cpuinfo || true)"
36+
echo "svm_count=$(grep -cw svm /proc/cpuinfo || true)"
37+
38+
echo "::group::/dev/kvm"
39+
ls -l /dev/kvm || true
40+
echo "::endgroup::"
41+
42+
echo "::group::/proc/cpuinfo"
43+
cat /proc/cpuinfo
44+
echo "::endgroup::"

0 commit comments

Comments
 (0)