smithery.ai

QEMU Runner

Identify environment and run the OS kernel in QEMU with serial output.

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,507 B
  • docs SUMMARY.md 89 B

History

  1. First recorded snapshot · 1 installs

SKILL.md

QEMU Runner Skill

This skill provides a unified way to launch the OS in QEMU on Linux and capture serial logs.

1. Environment Detection

Before running, ensure the shell environment is Linux:

Bash (Linux)

if [[ "$OSTYPE" == "linux-gnu"* ]]; then
    echo "Running on Linux"
    chmod +x run-uefi.sh
    ./run-uefi.sh
else
    echo "Error: This script only supports Linux."
    exit 1
fi

2. Running with Serial Logging (Timestamped)

To run the kernel and capture logs to a unique file for each run:

Bash

timestamp=$(date +%Y%m%d_%H%M%S)
log_file="serial_logs/$timestamp.txt"
echo "Logging to $log_file"
./run-uefi.sh | tee "$log_file"

3. Exiting QEMU

QEMU usually stays open after the kernel finishes. To exit:

  • Manual: Click the QEMU window and press Ctrl+C in the terminal to kill the process.
  • Serial Mode: If using -display none, press Ctrl+A then X to exit.
  • Auto-Close: Update your run-uefi.sh script to include -no-reboot to prevent infinite loops on panic.

4. QEMU Serial Parameters

Ensure the QEMU command includes:

  • -serial stdio: Directs memory logs to the terminal.
  • -display none: (Optional) CLI-only mode, no VGA window.
  • -no-reboot: Exit/Stop on failure instead of rebooting.

5. Troubleshooting

  • Linux: Ensure QEMU and OVMF are installed (sudo apt install qemu-system-x86 ovmf).