修复 LXC 内 microVM Runner 启动链路 #11

Merged
panxiao81 merged 11 commits from fix/microvm-lxc-bootstrap into main 2026-09-16 18:02:51 +00:00
Owner

内容

  • 避免 Cloud Hypervisor 不支持的 qcow2 backing chain,改用 flat copy/reflink
  • 将 VM runner 命名统一为 gitea-vm-*
  • 通过仅监听 microVM bridge 的 endpoint 分发固定 guest 资产
  • guest runner 使用 3.5.0 配置并以 --once 运行
  • 增加不冒充 SPIFFE 验证的 VM bootstrap 配置

验证

  • pve2 CT 147 内 Cloud Hypervisor guest 已通过 DHCP、SSH、cloud-init 和 Docker 启动验证
  • 待本 PR 分支上的 [self-hosted, vm] workflow 完成端到端验证
## 内容 - 避免 Cloud Hypervisor 不支持的 qcow2 backing chain,改用 flat copy/reflink - 将 VM runner 命名统一为 `gitea-vm-*` - 通过仅监听 microVM bridge 的 endpoint 分发固定 guest 资产 - guest runner 使用 3.5.0 配置并以 `--once` 运行 - 增加不冒充 SPIFFE 验证的 VM bootstrap 配置 ## 验证 - pve2 CT 147 内 Cloud Hypervisor guest 已通过 DHCP、SSH、cloud-init 和 Docker 启动验证 - 待本 PR 分支上的 `[self-hosted, vm]` workflow 完成端到端验证
panxiao81 added 1 commit 2026-09-16 16:38:20 +00:00
修复 LXC 内 microVM Runner 启动链路
test / python (pull_request) Successful in 10s
test / shell (pull_request) Successful in 16s
3641e6ffb3
panxiao81 added 1 commit 2026-09-16 16:39:09 +00:00
添加 microVM kind 冒烟测试
test / python (pull_request) Successful in 10s
test / shell (pull_request) Successful in 17s
VM kind smoke / kind (pull_request) Failing after 2s
ce4c9f13b5
panxiao81 added 1 commit 2026-09-16 16:42:27 +00:00
将 VM smoke 改为手动触发
test / python (pull_request) Successful in 10s
test / shell (pull_request) Successful in 15s
70a8aa68c6
panxiao81 added 1 commit 2026-09-16 16:44:07 +00:00
校验 microVM Runner 任务完成状态
test / python (pull_request) Successful in 10s
test / shell (pull_request) Successful in 16s
ac85d5fe58
panxiao81 added 1 commit 2026-09-16 16:48:46 +00:00
为 cloud-init Runner 设置 HOME
test / python (pull_request) Successful in 11s
test / shell (pull_request) Failing after 21s
02e0b698c5
panxiao81 added 1 commit 2026-09-16 16:50:53 +00:00
修正 kind 二进制校验
test / python (pull_request) Successful in 9s
test / shell (pull_request) Failing after 16s
8578bee895
panxiao81 added 1 commit 2026-09-16 17:15:10 +00:00
避免 microVM 镜像复制占满 LXC page cache
test / python (pull_request) Successful in 9s
test / shell (pull_request) Failing after 18s
b25b1fbf62
panxiao81 added 1 commit 2026-09-16 17:20:37 +00:00
为 microVM 磁盘启用 direct I/O
test / python (pull_request) Successful in 18s
test / shell (pull_request) Failing after 21s
072a5bad77
panxiao81 added 1 commit 2026-09-16 17:28:33 +00:00
稳定 kind smoke 与 microVM 内存配置
test / python (pull_request) Successful in 14s
test / shell (pull_request) Failing after 19s
6dac9897fd
panxiao81 added 1 commit 2026-09-16 17:38:11 +00:00
共享 guest memfd 避免 LXC 内存双重计费
test / shell (pull_request) Failing after 22s
test / python (pull_request) Failing after 1m3s
401c1f9a00
panxiao81 added 1 commit 2026-09-16 17:42:55 +00:00
记录 LXC guest 内存共享要求
test / python (pull_request) Successful in 26s
test / shell (pull_request) Failing after 1m2s
c4aa6ee0af
panxiao81 merged commit 6a29a10244 into main 2026-09-16 18:02:51 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: panxiao81/gitea-dynamic-runner#11