搜索

PythonReactSEOPDF
GitHub Skill

proxmox-vm

Interact with Proxmox VMs - screenshots, keystrokes, network info (user)

agentydragon☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Proxmox VM Interaction

Interact with VMs on Proxmox via QEMU monitor. Actions execute sequentially in command-line order.

Usage

~/.claude/skills/proxmox-vm/vm-interact.py <vmid> [actions...]

Actions

Action Description
--screenshot, -s Take screenshot, save to ~/.cache/proxmox-vm/vm<id>/<timestamp>.png
--type "text", -t "text" Type text (converts chars to QEMU keys)
--enter, -e Press Enter
--sendkey <key>, -k <key> Send QEMU key code (e.g., ctrl-c, ret, shift-a)
--info, -i Show VM network interfaces via guest agent
--sleep <secs> Sleep between actions
--stdin Read commands from stdin (one per line)

Examples

# Take screenshot
./vm-interact.py 110 --screenshot

# Type command and press Enter
./vm-interact.py 110 --type "ip addr" --enter

# Log in and run command
./vm-interact.py 110 --type "root" --enter --sleep 0.5 --type "password" --enter

# Send Ctrl+C then screenshot
./vm-interact.py 110 --sendkey ctrl-c --screenshot

# Get network info
./vm-interact.py 110 --info

# From stdin
echo -e "type ip addr\nenter\nsleep 1\nscreenshot" | ./vm-interact.py 110 --stdin

QEMU Key Names

Common keys: a-z, 0-9, ret (Enter), spc (Space), tab, minus, equal, comma, dot, slash, backslash, semicolon, apostrophe, bracket_left, bracket_right, grave_accent

Modifiers: shift-X, ctrl-X, alt-X (e.g., shift-a for 'A', ctrl-c for Ctrl+C)

stdin Format

One command per line:

screenshot
type ip addr
enter
sendkey ctrl-c
info
sleep 1.5
# comments start with #

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!