Skip to content

fix(os-templates): correct qemu-guest-agent runcmd#27

Merged
Zorlin merged 1 commit into
mainfrom
fix/os-template-qemu-guest-agent
Jun 21, 2026
Merged

fix(os-templates): correct qemu-guest-agent runcmd#27
Zorlin merged 1 commit into
mainfrom
fix/os-template-qemu-guest-agent

Conversation

@Zorlin

@Zorlin Zorlin commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

cloud-init final stage failed exit 5 on every provisioned VM: the qemu-guest-agent runcmd ran 'systemctl start' with no preceding daemon-reload (systemd hadn't scanned the unit apt just dropped), and 'systemctl enable' errored on this static (no [Install]) unit first. Last command's exit propagated -> scripts-user FAILED -> cloud-init status: error.

Fix: apt-get update + noninteractive install, daemon-reload, then start ... || true; drop the meaningless enable. debian-12/13 + ubuntu-2204/2404 (apt), rocky-10 (dnf). Rebases cleanly on main (#24 touched reimage code, not os-templates). Already deployed to prod.

🤖 Generated with Claude Code

cloud-init's final stage was failing with exit 5 on every provisioned
VM: the runcmd ran 'systemctl start qemu-guest-agent' with no preceding
daemon-reload, so systemd hadn't scanned the unit file apt just dropped;
and 'systemctl enable' errored on this static (no [Install]) unit, bailing
before its implicit reload. With no 'set -e', the last command's exit
propagated and marked scripts-user FAILED -> cloud-init status: error.

Fix: apt-get update + noninteractive install, daemon-reload, then start
(tolerate failure since udev may race activation). Drop the meaningless
enable on a static unit. debian-12/13 + ubuntu-2204/2404 (apt), rocky-10 (dnf).

Co-Authored-By: Claude <noreply@anthropic.com>
@Zorlin Zorlin merged commit 0c4ec28 into main Jun 21, 2026
@Zorlin Zorlin deleted the fix/os-template-qemu-guest-agent branch June 21, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant