Skip to content

Commit d69e1e9

Browse files
authored
Merge pull request #56 from AkihiroSuda/dev
CI: fix `Kernel panic - not syncing: IO-APIC + timer doesn't work!`
2 parents 3695a36 + 65174a5 commit d69e1e9

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
run: brew install iperf3 jq
6565
- name: "Lima: vm1: prepare"
6666
run: |
67-
limactl start --name=vm1 --set '.cpus=1 | .memory = "1GiB"' --tty=false template://vmnet
67+
limactl start --name=vm1 --set '.cpus=1 | .memory = "1GiB"' --tty=false ./test/vmnet.yaml
6868
limactl shell vm1 ip a
6969
- name: "Lima: vm1: set up iperf3"
7070
run: |
@@ -81,7 +81,7 @@ jobs:
8181
run: tail -n500 ~/.lima/vm1/*.log
8282
- name: "Lima: vm2: prepare"
8383
run: |
84-
limactl start --name=vm2 --set '.cpus=1 | .memory = "1GiB"' --tty=false template://vmnet
84+
limactl start --name=vm2 --set '.cpus=1 | .memory = "1GiB"' --tty=false ./test/vmnet.yaml
8585
limactl shell vm2 ip a
8686
- name: "Lima: vm2: set up iperf3"
8787
run: |

test/vmnet.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Forked from https://github.com/lima-vm/lima/blob/v0.23.2/examples/vmnet.yaml
2+
#
3+
# `no_timer_check` is injected to the kernel cmdline, as a workaround to https://github.com/lima-vm/lima/issues/84
4+
5+
images:
6+
- location: "https://cloud-images.ubuntu.com/releases/24.04/release-20240821/ubuntu-24.04-server-cloudimg-amd64.img"
7+
arch: "x86_64"
8+
digest: "sha256:0e25ca6ee9f08ec5d4f9910054b66ae7163c6152e81a3e67689d89bd6e4dfa69"
9+
kernel:
10+
location: https://cloud-images.ubuntu.com/releases/24.04/release-20240821/unpacked/ubuntu-24.04-server-cloudimg-amd64-vmlinuz-generic
11+
digest: sha256:1e894dc26a939a7cb408ba8366e101f5572a5f85a90a6d74ab4cb55211460306
12+
cmdline: root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyAMA0 no_timer_check
13+
initrd:
14+
location: https://cloud-images.ubuntu.com/releases/24.04/release-20240821/unpacked/ubuntu-24.04-server-cloudimg-amd64-initrd-generic
15+
digest: sha256:c44215c42d97abd9ada4a961de0ab7305d74c39860776cf2d7a0260ac9d0637e
16+
17+
mounts:
18+
- location: "~"
19+
- location: "/tmp/lima"
20+
writable: true
21+
networks:
22+
- lima: shared

0 commit comments

Comments
 (0)