QEMU/KVM skill for virtualization and kernel development. An agent skill from mohitmishra786/low-level-dev-skills.

MITAuto-check: notes

Install Qemu Kvm

skills CLI
$ npx skills add mohitmishra786/low-level-dev-skills --skill qemu-kvm -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mohitmishra786/low-level-dev-skills qemu-kvm --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/virtualization/qemu-kvm .claude/skills/qemu-kvm && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
qemu-kvm
GitHub stars
252
Token cost
~1.3k tokens
SKILL.md length
264 words
Files
1
Skills in repo
138
Repo updated
First seen
Licence
MIT

At a glance

QEMU/KVM skill for virtualization and kernel development. An agent skill from mohitmishra786/low-level-dev-skills.

  • Works in 8 steps: Basic KVM VM → virtio devices → VFIO device passthrough → …
  • Running qemu-system-x8664 with KVM
  • SKILL.md covers Purpose, When to Use, Workflow and Common Problems, plus 1 more section
  • Reaches archive.ubuntu.com

What it does

Qemu Kvm is an agent skill from mohitmishra786/low-level-dev-skills. QEMU/KVM skill for virtualization and kernel development. Use when running qemu-system-x8664 with KVM, configuring virtio devices, VFIO passthrough, QMP monitor, libvirt, or booting custom kernels. Activates on queries about QEMU, KVM, virtio, VFIO, virsh, virt-install, or -kernel -append.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: A curated suite of AI agent skills for systems and low-level programming with C/C++, Rust, and Zig toolchains, covering compilers, debuggers, profilers, build systems…. The licence is MIT.

When your agent uses it

  • Running qemu-system-x8664 with KVM
  • Configuring virtio devices
  • VFIO passthrough
  • Booting custom kernels

Example prompts

  • “/qemu-kvm”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Basic KVM VM
  2. virtio devices
  3. VFIO device passthrough
  4. QMP monitor
  5. libvirt and virsh
  6. Kernel development boot
  7. Debugging kernel in QEMU
  8. qcow2 disk management

What it can do on your machine

Read from SKILL.md and the folder at commit bdc5847. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • archive.ubuntu.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Qemu Kvm loads about 1.3k tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 264 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~75
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteRuns commands with sudoSKILL.md:77
    echo 10de 1c03 | sudo tee /sys/bus/pci/drivers/vfio-pci/new_id
  • NoteRuns commands with sudoSKILL.md:78
    sudo virsh nodedev-detach pci_0000_01_00_0

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mohitmishra786/low-level-dev-skills at commit bdc5847, republished under its MIT licence (© mohitmishra786). 264 words, ~1,324 tokens.

Download SKILL.mdSave it as .claude/skills/qemu-kvm/SKILL.md (or your agent's skills folder).
name
qemu-kvm
description
QEMU/KVM skill for virtualization and kernel development. Use when running qemu-system-x86_64 with KVM, configuring virtio devices, VFIO passthrough, QMP monitor, libvirt, or booting custom kernels. Activates on queries about QEMU, KVM, virtio, VFIO, virsh, virt-install, or -kernel -append.

QEMU / KVM

Purpose

Guide agents through QEMU system emulation and KVM acceleration: key qemu-system-x86_64 flags, virtio devices, VFIO device passthrough, QMP monitor protocol, libvirt/virsh management, and QEMU for kernel development with -kernel -initrd -append.

When to Use

  • Running Linux VMs with hardware acceleration
  • Testing custom kernels without bare metal
  • Passing through GPU or NIC to a VM with VFIO
  • Managing VMs with libvirt and virsh
  • Creating VM snapshots for reproducible testing
  • Developing kernel or bootloader with direct kernel boot

Workflow

1. Basic KVM VM
bash
# Check KVM support
egrep -c '(vmx|svm)' /proc/cpuinfo
ls -l /dev/kvm

# Minimal Ubuntu VM
qemu-system-x86_64 \
  -enable-kvm \
  -cpu host \
  -m 4096 \
  -smp 4 \
  -drive file=ubuntu.img,format=qcow2 \
  -netdev user,id=net0 \
  -device virtio-net-pci,netdev=net0 \
  -display none \
  -serial mon:stdio
FlagPurpose
-enable-kvmUse KVM acceleration
-cpu hostPass through host CPU features
-mRAM in MB
-smpvCPU count
-driveDisk image
-netdev / -deviceNetwork backend
2. virtio devices
bash
# virtio-blk (paravirtual disk — faster)
-device virtio-blk-pci,drive=hd0 \
-drive if=none,id=hd0,file=disk.qcow2,format=qcow2

# virtio-net
-netdev tap,id=net0,ifname=tap0,script=no,downscript=no \
-device virtio-net-pci,netdev=net0

# virtio-balloon (dynamic memory)
-device virtio-balloon-pci

# virtio-scsi
-device virtio-scsi-pci,id=scsi0 \
-device scsi-hd,drive=hd0,bus=scsi0.0

Always prefer virtio over emulated devices for performance.

3. VFIO device passthrough
bash
# Bind device to vfio-pci
echo 10de 1c03 | sudo tee /sys/bus/pci/drivers/vfio-pci/new_id
sudo virsh nodedev-detach pci_0000_01_00_0

# QEMU with passthrough
qemu-system-x86_64 \
  -enable-kvm -m 8192 -smp 8 \
  -device vfio-pci,host=01:00.0 \
  ...

Requires IOMMU enabled (intel_iommu=on or amd_iommu=on in kernel cmdline).

4. QMP monitor
bash
# Start with QMP socket
qemu-system-x86_64 ... \
  -qmp unix:/tmp/qmp.sock,server,nowait

# Send QMP commands
socat - UNIX-CONNECT:/tmp/qmp.sock
{"execute":"qmp_capabilities"}
{"execute":"query-status"}
{"execute":"system_powerdown"}
{"execute":"savevm", "arguments":{"name":"checkpoint1"}}
5. libvirt and virsh
bash
# Define VM from XML
virsh define myvm.xml

# Start/stop
virsh start myvm
virsh shutdown myvm
virsh destroy myvm   # force power off

# Console
virsh console myvm

# Snapshot
virsh snapshot-create-as myvm snap1 "before upgrade"

# List
virsh list --all
bash
# Create VM interactively
virt-install \
  --name ubuntu-vm \
  --ram 4096 \
  --vcpus 4 \
  --disk path=/var/lib/libvirt/images/ubuntu.qcow2,size=20 \
  --os-variant ubuntu22.04 \
  --network bridge=virbr0 \
  --graphics none \
  --console pty,target_type=serial \
  --location http://archive.ubuntu.com/ubuntu/dists/jammy/main/installer-amd64/ \
  --extra-args 'console=ttyS0,115200n8'
6. Kernel development boot
bash
# Direct kernel boot (no disk install needed)
qemu-system-x86_64 \
  -enable-kvm \
  -m 512 \
  -kernel arch/x86/boot/bzImage \
  -initrd /path/to/initramfs.cpio.gz \
  -append "console=ttyS0 root=/dev/sda rw nokaslr" \
  -serial stdio \
  -display none \
  -no-reboot
bash
# With custom rootfs on virtio disk
-drive file=rootfs.ext4,format=raw,if=virtio \
-append "console=ttyS0 root=/dev/vda rw"
7. Debugging kernel in QEMU
bash
# GDB stub for kernel
qemu-system-x86_64 \
  -kernel bzImage -append "console=ttyS0 nokaslr" \
  -s -S \   # -s = gdb port 1234, -S = wait for gdb
  -serial stdio -display none

# Host GDB
gdb vmlinux
(gdb) target remote :1234
(gdb) break start_kernel
(gdb) continue
8. qcow2 disk management
bash
qemu-img create -f qcow2 disk.qcow2 20G
qemu-img snapshot -c clean disk.qcow2
qemu-img convert -O raw disk.qcow2 disk.raw
qemu-img info disk.qcow2

Common Problems

SymptomCauseFix
KVM disabled warningBIOS VT-x off or nested issueEnable VT-x/AMD-V; check /dev/kvm
VM very slowKVM not activeAdd -enable-kvm; install kvm modules
VFIO group errorDevice not in IOMMU groupUse find /sys/kernel/iommu_groups/
No network in VMWrong netdev backenduser networking vs tap/bridge
Kernel panic on bootWrong root= or missing driverAdd virtio drivers to initrd
QMP connection refusedSocket not readyWait for QEMU start; check path
  • skills/virtualization/hypervisor-internals — VT-x/SVM theory under KVM
  • skills/kernel/kernel-testing — boot test kernels in QEMU
  • skills/kernel/os-dev-scratch — minimal OS development in QEMU
  • skills/kernel/kernel-debugging — kgdb with QEMU -s -S
  • skills/async-io/dpdk — DPDK with QEMU virtio
  • skills/platform/riscv-privileged — qemu-system-riscv64

© mohitmishra786, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/virtualization/qemu-kvm of mohitmishra786/low-level-dev-skills.

Open the folder on GitHubat commit bdc5847

Compare with similar skills

Qemu Kvm next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Qemu Kvm compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Qemu Kvm this skillmohitmishra786/low-level-dev-skills252—~1.3kAutomated safety check: NotesMIT
Kernel Organizationsgl-project/sglang37k—~1.3kAutomated safety check: PassApache-2.0
Metal Kernelpytorch/pytorch104k—~4.9kAutomated safety check: PassCustom licence
Semantic Kernelgithub/awesome-copilot40k1 repos~756Automated safety check: PassMIT
Add Sgl Kernelsgl-project/sglang37k2 repos~3.4kAutomated safety check: PassApache-2.0
Add Jit Kernelsgl-project/sglang37k—~13kAutomated safety check: PassApache-2.0

Similar skills

  • Kernel Organization

    sgl-project/sglang

    Apply the SGLang kernels RFC when adding, moving, splitting, or reviewing kernel APIs, registry metadata, kernel tests, benchmarks, and model-specific implementations.

    37k GitHub stars~1.3k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Metal Kernel

    pytorch/pytorch

    Write Metal/MPS kernels for PyTorch operators. An agent skill from pytorch/pytorch.

    104k GitHub stars~4.9k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Semantic Kernel

    github/awesome-copilot

    Official

    Create, update, refactor, explain, or review Semantic Kernel solutions using shared guidance plus language-specific references for .NET and Python.

    40k GitHub starsUsed in 1 repo~756 tokens
    DevelopmentAuto-check passed
  • Add Sgl Kernel

    sgl-project/sglang

    Step-by-step tutorial for adding a heavyweight AOT CUDA/C++ kernel to sgl-kernel (including tests & benchmarks)

    37k GitHub starsUsed in 2 repos~3.4k tokens
    AI & LLM EngineeringAuto-check passed
  • Add Jit Kernel

    sgl-project/sglang

    Step-by-step tutorial for adding a new lightweight JIT CUDA kernel to sglang.kernels JIT infrastructure and public operator groups

    37k GitHub stars~13k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Paddle Phi Kernel

    PaddlePaddle/Paddle

    A skill your agent uses when working with Paddle's PHI kernel system: registering new kernels, debugging kernel selection/dispatch, understanding code auto-generation from YAML, or implementing…

    24k GitHub stars~656 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from mohitmishra786/low-level-dev-skills

All 138 skills in this repo
  • ARM and AArch64 Assembly

    mohitmishra786/low-level-dev-skills

    Guides reading and writing AArch64 and ARM Thumb assembly: compiler output, inline asm, registers, the AAPCS calling convention and NEON or SVE basics.

    252 GitHub stars~1.9k tokensUpdated 3 mo ago
    Auto-check passed
  • RISC-V Assembly Guide

    mohitmishra786/low-level-dev-skills

    Reference for RISC-V assembly on RV32 and RV64: register names and calling convention, extension naming, GCC and Clang inline asm, and QEMU with GDB debugging.

    252 GitHub stars~1.8k tokensUpdated 3 mo ago
    Auto-check passed
  • x86-64 Assembly Reference

    mohitmishra786/low-level-dev-skills

    Explains x86-64 registers, the System V AMD64 calling convention, and how to read compiler-generated or inline assembly.

    252 GitHub stars~1.5k tokensUpdated 3 mo ago
    Auto-check passed
  • Bazel for C and C++

    mohitmishra786/low-level-dev-skills

    Guides your agent through Bazel for C/C++ projects: BUILD files, Bzlmod dependencies, toolchain registration, remote execution, dependency queries and sandbox debugging.

    252 GitHub stars~1.5k tokensUpdated 3 mo ago
    Auto-check passed
  • Binary Hardening

    mohitmishra786/low-level-dev-skills

    Binary hardening skill for security-hardened C/C++ builds. An agent skill from mohitmishra786/low-level-dev-skills.

    252 GitHub stars~2k tokensUpdated 3 mo ago
    Auto-check passed
  • Binutils

    mohitmishra786/low-level-dev-skills

    GNU binutils skill for binary manipulation and analysis. An agent skill from mohitmishra786/low-level-dev-skills.

    252 GitHub stars~1.2k tokensUpdated 3 mo ago
    Auto-check passed

Questions about Qemu Kvm

What does Qemu Kvm do?

QEMU/KVM skill for virtualization and kernel development. An agent skill from mohitmishra786/low-level-dev-skills. Qemu Kvm is an agent skill from mohitmishra786/low-level-dev-skills. QEMU/KVM skill for virtualization and kernel development.

When should I use Qemu Kvm?

Qemu Kvm fits situations like: running qemu-system-x8664 with KVM; configuring virtio devices; VFIO passthrough; booting custom kernels.

How do I install Qemu Kvm in Claude Code?

Run `npx skills add mohitmishra786/low-level-dev-skills --skill qemu-kvm -a claude-code`. Or copy the skill folder (skills/virtualization/qemu-kvm in mohitmishra786/low-level-dev-skills) into .claude/skills/qemu-kvm in your project. Claude Code loads it when a task matches its description.

How do I install Qemu Kvm in Codex?

Run `npx skills add mohitmishra786/low-level-dev-skills --skill qemu-kvm -a codex`. Or copy the skill folder (skills/virtualization/qemu-kvm in mohitmishra786/low-level-dev-skills) into .agents/skills/qemu-kvm in your project. Codex loads it when a task matches its description.

Can I use Qemu Kvm in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mohitmishra786/low-level-dev-skills --skill qemu-kvm -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/qemu-kvm, .gemini/skills/qemu-kvm, .github/skills/qemu-kvm and .opencode/skills/qemu-kvm in your project.

What does Qemu Kvm need to run?

SKILL.md names no scripts, command-line tools or credentials: Qemu Kvm is instructions for the agent only.

Does Qemu Kvm access the network?

SKILL.md names 1 domain. In commands or code: archive.ubuntu.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Qemu Kvm safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Qemu Kvm use?

Qemu Kvm is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Qemu Kvm use?

About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Qemu Kvm?

Skills that share tags, products or a category with Qemu Kvm: Kernel Organization (sgl-project/sglang, 37k stars), Metal Kernel (pytorch/pytorch, 104k stars), Semantic Kernel (github/awesome-copilot, 40k stars) and Add Sgl Kernel (sgl-project/sglang, 37k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Qemu Kvm?

mohitmishra786 (a GitHub user) maintains it in mohitmishra786/low-level-dev-skills, which has 252 GitHub stars. The repository holds 138 skills in this directory. The repository was last updated on June 27, 2026.

Source: mohitmishra786/low-level-dev-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.