# Qemu Kernel Build

> Use for building Linux kernels for QEMU boot testing, including defconfig selection, cross compile variables, Docker or host toolchains, Image, DTB, modules, initramfs inputs, output hashes, and provenance records.

- **Type:** Skill
- **Install:** `agentstack add skill-processmission-oh-my-qemu-qemu-kernel-build`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [processmission](https://agentstack.voostack.com/s/processmission)
- **Installs:** 0
- **Category:** [Cloud & Infrastructure](https://agentstack.voostack.com/c/cloud-infrastructure)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [processmission](https://github.com/processmission)
- **Source:** https://github.com/processmission/oh-my-qemu/tree/main/.agents/skills/qemu-kernel-build
- **Website:** https://processmission.github.io/oh-my-qemu/

## Install

```sh
agentstack add skill-processmission-oh-my-qemu-qemu-kernel-build
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# QEMU Kernel Build

Use this workflow when a QEMU task needs a Linux kernel artifact to boot or debug a modeled board.

## Primitive Composition

1. Use `qemu-flow-plan` for scope, acceptance criteria, and artifact root.
2. Use `qemu-source-provenance` before building.
3. Build the kernel with the local tree's documented method.
4. Update `source-provenance.md` with produced `Image`, `vmlinux`, DTBs, modules, initramfs inputs, and hashes.
5. Hand off to `qemu-direct-linux-boot`, `qemu-firmware-linux-boot`, or `qemu-image-packaging`.

## Build Flow

Record and verify:

- kernel source path, revision, and dirty state;
- architecture, cross compiler prefix, compiler path, and version;
- defconfig and any config fragment or manual `.config` change;
- output directory, build command, and parallelism;
- DTB names and destination paths;
- module install path if modules are needed;
- initramfs or rootfs source if the boot command depends on it.

## Command Shape

Use the kernel tree's preferred commands. Typical Linux patterns are:

```bash
make ARCH= O= 
make ARCH= O= CROSS_COMPILE= -j$(nproc) Image modules dtbs
```

If Docker is used, record image, mounts, user, working directory, and the command run inside the container.

## Output Rules

- Do not mix outputs from different kernel revisions without recording it.
- Hash the exact files passed to QEMU or packed into an image.
- Keep build logs under `build/agent//logs/`.
- If the kernel boots but modules fail to load, verify kernel release and module tree before changing QEMU.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [processmission](https://github.com/processmission)
- **Source:** [processmission/oh-my-qemu](https://github.com/processmission/oh-my-qemu)
- **License:** MIT
- **Homepage:** https://processmission.github.io/oh-my-qemu/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-processmission-oh-my-qemu-qemu-kernel-build
- Seller: https://agentstack.voostack.com/s/processmission
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
