From c4aa6ee0af9ce3d24475b4defb671fe89680a333 Mon Sep 17 00:00:00 2001 From: panxiao81 Date: Wed, 16 Sep 2026 17:42:52 +0000 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E5=BD=95=20LXC=20guest=20=E5=86=85?= =?UTF-8?q?=E5=AD=98=E5=85=B1=E4=BA=AB=E8=A6=81=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ scripts/microvm-runner-launch | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 04d6668..0e2178b 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,9 @@ pytest - guest runner 使用 `--ephemeral`,每台 VM 只执行一个 job。 - launcher 只接受 UUID instance ID 和 URL-safe nonce,所有临时文件都位于独立目录。 - base image 不得包含 runner identity、registration token、SSH 密码或 host key。 +- LXC 内运行 Cloud Hypervisor 必须为 guest memory 启用 `shared=on`。默认的 private + memfd 映射会在 guest 写入后同时产生 shmem 与 anonymous CoW charge,使 LXC cgroup + 对 guest RAM 接近双倍计费。 homelab 的 Kubernetes、OpenBao、LXC、bridge 和容量配置保留在 `panxiao81/homelab-infra`。 diff --git a/scripts/microvm-runner-launch b/scripts/microvm-runner-launch index 299cb0f..c45956f 100755 --- a/scripts/microvm-runner-launch +++ b/scripts/microvm-runner-launch @@ -19,7 +19,7 @@ bridge=${RUNNER_BRIDGE:-mvrbr0} cloud_hypervisor=${CLOUD_HYPERVISOR:-/usr/local/bin/cloud-hypervisor} vm_timeout=${RUNNER_VM_TIMEOUT:-3h} cpus=${RUNNER_VM_CPUS:-4} -memory=${RUNNER_VM_MEMORY:-2G} +memory=${RUNNER_VM_MEMORY:-3G} gitea_instance=${GITEA_INSTANCE:-https://git.ddupan.top} runner_labels=${RUNNER_LABELS:-self-hosted:host,vm:host} token_url=${RUNNER_TOKEN_URL:-http://172.30.0.1:8787}