← スキル一覧に戻る

qemu-runner
by huynq55-v2
⭐ 0🍴 0📅 2026年1月15日
SKILL.md
name: QEMU Runner description: Identify environment and run the OS kernel in QEMU with serial output.
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+Cin the terminal to kill the process. - Serial Mode: If using
-display none, pressCtrl+AthenXto exit. - Auto-Close: Update your
run-uefi.shscript to include-no-rebootto 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).
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です