The Ubuntu 26.04 cloud qcow2 is fetched and customised inside
vmTools.runInLinuxVM. The image gets the act_runner closure plus
nodejs_24 copied into /nix/store, with each package's bin/* bulk-
symlinked into /usr/local/bin. A runner user (UID/GID 1001, HOME
/home/runner, locked password) is baked in to match GitHub-hosted
runner conventions, with passwordless sudo via /etc/sudoers.d/runner.
cloud-init is restricted to the NoCloud datasource so it applies
network-config quickly without scanning EC2/Azure endpoints, and
cloud-initramfs-growroot remains in place so partition + ext4 auto-
grow at boot.
At runtime each instance creates a fresh 40 GiB-virtual qcow2 overlay
backed by the read-only Nix-store image, registers an ephemeral
runner with Gitea, stages cloud-init meta-data + network-config
(static per-instance IP matched by MAC) alongside the resulting
.runner JSON and config.yaml, packages the lot into an ISO9660 disk
labelled cidata via xorriso, and launches qemu-system-x86_64 with
both disks plus a virtio-balloon device with free-page-reporting
enabled. cloud-init applies the network config; the in-VM
gitea-runner.service then runs as the runner user, mounts cidata
via ExecStartPre=+ and copies credentials into /var/lib/gitea-runner
before exec'ing act_runner directly.
A dedicated br-runners bridge handles networking with NAT to eth0 and
iptables FORWARD drops for RFC1918 and CGNAT ranges. Per-VM IPs are
assigned statically as 10.108.28.(10+i). qemu-bridge-helper is
capability-wrapped (cap_net_admin+ep) so the qemu process can attach
its TAP without holding cap_net_admin itself; the host service runs
as a fixed UID with NoNewPrivileges=false so the kernel honours the
file caps on exec (DynamicUser is incompatible — it implies and
enforces NoNewPrivileges, which would block the cap inheritance).
Disposable overlays use systemd CacheDirectory= under
/var/cache/gitea-actions-vm, persisted via a new
custom.impermanence.cache.extraDirs option so they land on the
SSD-backed /cache subvol (wiped on boot) rather than the tmpfs root.
Adds custom.services.gitea.actions-vm, running ephemeral act_runner
inside QEMU/KVM VMs alongside the existing nspawn Docker runner.
The Ubuntu 26.04 cloud qcow2 is fetched and customised inside
vmTools.runInLinuxVM. The image gets the act_runner closure plus
nodejs_24 copied into /nix/store, with each package's bin/* bulk-
symlinked into /usr/local/bin. A `runner` user (UID/GID 1001, HOME
/home/runner, locked password) is baked in to match GitHub-hosted
runner conventions, with passwordless sudo via /etc/sudoers.d/runner.
cloud-init is restricted to the NoCloud datasource so it applies
network-config quickly without scanning EC2/Azure endpoints, and
cloud-initramfs-growroot remains in place so partition + ext4 auto-
grow at boot.
At runtime each instance creates a fresh 40 GiB-virtual qcow2 overlay
backed by the read-only Nix-store image, registers an ephemeral
runner with Gitea, stages cloud-init meta-data + network-config
(static per-instance IP matched by MAC) alongside the resulting
.runner JSON and config.yaml, packages the lot into an ISO9660 disk
labelled cidata via xorriso, and launches qemu-system-x86_64 with
both disks plus a virtio-balloon device with free-page-reporting
enabled. cloud-init applies the network config; the in-VM
gitea-runner.service then runs as the `runner` user, mounts cidata
via ExecStartPre=+ and copies credentials into /var/lib/gitea-runner
before exec'ing act_runner directly.
A dedicated br-runners bridge handles networking with NAT to eth0 and
iptables FORWARD drops for RFC1918 and CGNAT ranges. Per-VM IPs are
assigned statically as 10.108.28.(10+i). qemu-bridge-helper is
capability-wrapped (cap_net_admin+ep) so the qemu process can attach
its TAP without holding cap_net_admin itself; the host service runs
as a fixed UID with NoNewPrivileges=false so the kernel honours the
file caps on exec (DynamicUser is incompatible — it implies and
enforces NoNewPrivileges, which would block the cap inheritance).
Disposable overlays use systemd CacheDirectory= under
/var/cache/gitea-actions-vm, persisted via a new
custom.impermanence.cache.extraDirs option so they land on the
SSD-backed /cache subvol (wiped on boot) rather than the tmpfs root.
Enables one instance on boron at 12 GiB / 6 vCPU.
Test plan:
- CI
- Migrated personal-agent with
https://gitea.hillion.co.uk/JakeHillion/personal-agent/pulls/53 - all
looks good.
Adds custom.services.gitea.actions-vm, running ephemeral act_runner
inside QEMU/KVM VMs alongside the existing nspawn Docker runner.
The Ubuntu 26.04 cloud qcow2 is fetched and customised inside
vmTools.runInLinuxVM. The image gets the act_runner closure plus
nodejs_24 copied into /nix/store, with each package's bin/* bulk-
symlinked into /usr/local/bin. A `runner` user (UID/GID 1001, HOME
/home/runner, locked password) is baked in to match GitHub-hosted
runner conventions, with passwordless sudo via /etc/sudoers.d/runner.
cloud-init is restricted to the NoCloud datasource so it applies
network-config quickly without scanning EC2/Azure endpoints, and
cloud-initramfs-growroot remains in place so partition + ext4 auto-
grow at boot.
At runtime each instance creates a fresh 40 GiB-virtual qcow2 overlay
backed by the read-only Nix-store image, registers an ephemeral
runner with Gitea, stages cloud-init meta-data + network-config
(static per-instance IP matched by MAC) alongside the resulting
.runner JSON and config.yaml, packages the lot into an ISO9660 disk
labelled cidata via xorriso, and launches qemu-system-x86_64 with
both disks plus a virtio-balloon device with free-page-reporting
enabled. cloud-init applies the network config; the in-VM
gitea-runner.service then runs as the `runner` user, mounts cidata
via ExecStartPre=+ and copies credentials into /var/lib/gitea-runner
before exec'ing act_runner directly.
A dedicated br-runners bridge handles networking with NAT to eth0 and
iptables FORWARD drops for RFC1918 and CGNAT ranges. Per-VM IPs are
assigned statically as 10.108.28.(10+i). qemu-bridge-helper is
capability-wrapped (cap_net_admin+ep) so the qemu process can attach
its TAP without holding cap_net_admin itself; the host service runs
as a fixed UID with NoNewPrivileges=false so the kernel honours the
file caps on exec (DynamicUser is incompatible — it implies and
enforces NoNewPrivileges, which would block the cap inheritance).
Disposable overlays use systemd CacheDirectory= under
/var/cache/gitea-actions-vm, persisted via a new
custom.impermanence.cache.extraDirs option so they land on the
SSD-backed /cache subvol (wiped on boot) rather than the tmpfs root.
Enables one instance on boron at 12 GiB / 6 vCPU.
Test plan:
- CI
- Migrated personal-agent with
JakeHillion/personal-agent#53 - all
looks good.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Adds custom.services.gitea.actions-vm, running ephemeral act_runner
inside QEMU/KVM VMs alongside the existing nspawn Docker runner.
The Ubuntu 26.04 cloud qcow2 is fetched and customised inside
vmTools.runInLinuxVM. The image gets the act_runner closure plus
nodejs_24 copied into /nix/store, with each package's bin/* bulk-
symlinked into /usr/local/bin. A
runneruser (UID/GID 1001, HOME/home/runner, locked password) is baked in to match GitHub-hosted
runner conventions, with passwordless sudo via /etc/sudoers.d/runner.
cloud-init is restricted to the NoCloud datasource so it applies
network-config quickly without scanning EC2/Azure endpoints, and
cloud-initramfs-growroot remains in place so partition + ext4 auto-
grow at boot.
At runtime each instance creates a fresh 40 GiB-virtual qcow2 overlay
backed by the read-only Nix-store image, registers an ephemeral
runner with Gitea, stages cloud-init meta-data + network-config
(static per-instance IP matched by MAC) alongside the resulting
.runner JSON and config.yaml, packages the lot into an ISO9660 disk
labelled cidata via xorriso, and launches qemu-system-x86_64 with
both disks plus a virtio-balloon device with free-page-reporting
enabled. cloud-init applies the network config; the in-VM
gitea-runner.service then runs as the
runneruser, mounts cidatavia ExecStartPre=+ and copies credentials into /var/lib/gitea-runner
before exec'ing act_runner directly.
A dedicated br-runners bridge handles networking with NAT to eth0 and
iptables FORWARD drops for RFC1918 and CGNAT ranges. Per-VM IPs are
assigned statically as 10.108.28.(10+i). qemu-bridge-helper is
capability-wrapped (cap_net_admin+ep) so the qemu process can attach
its TAP without holding cap_net_admin itself; the host service runs
as a fixed UID with NoNewPrivileges=false so the kernel honours the
file caps on exec (DynamicUser is incompatible — it implies and
enforces NoNewPrivileges, which would block the cap inheritance).
Disposable overlays use systemd CacheDirectory= under
/var/cache/gitea-actions-vm, persisted via a new
custom.impermanence.cache.extraDirs option so they land on the
SSD-backed /cache subvol (wiped on boot) rather than the tmpfs root.
Enables one instance on boron at 12 GiB / 6 vCPU.
Test plan:
JakeHillion/personal-agent#53 - all
looks good.
9bf1361b9fto09a98285f709a98285f7to265daffcfd265daffcfdtob7e673c354b7e673c354to2c8be9e1e72c8be9e1e7toc9f045fc30c9f045fc30to2c2a14a9a82c2a14a9a8to432c826256432c826256to316185f7ba316185f7bato0106a664cf0106a664cftobb74a0c2cdbb74a0c2cdto8bb929357d8bb929357dtod53ad2612bd53ad2612bto15c49ce2b615c49ce2b6tob2073f3de2b2073f3de2to01e4644aee01e4644aeetoe247490d2ee247490d2eto2c2a3b83ec2c2a3b83ecto59ef0592a159ef0592a1toeda1f4c9aeeda1f4c9aeto1eba8dc4651eba8dc465toa2ac84c87ba2ac84c87bto308ed65260308ed65260to2978aa954b2978aa954bto1fe61334421fe6133442to4b2719b8c64b2719b8c6to71b61e946271b61e9462to24b7ece4ab