Skip to content

Commit ff1eb3d

Browse files
committed
test(ci): test nested virtualization
Signed-off-by: Adrien Langou <alangou@nvidia.com>
1 parent fb83d1a commit ff1eb3d

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)