vm-template-creation
Create, configure, and manage VM templates in Proxmox. Build reusable VM images for rapid deployment of standardized environments, including Kubernetes clusters and managed applications.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o vm-template-creation.zip https://jpskill.com/download/18325.zip && unzip -o vm-template-creation.zip && rm vm-template-creation.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/18325.zip -OutFile "$d\vm-template-creation.zip"; Expand-Archive "$d\vm-template-creation.zip" -DestinationPath $d -Force; ri "$d\vm-template-creation.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
vm-template-creation.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
vm-template-creationフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
VMテンプレート作成スキル
迅速かつ標準化されたインフラストラクチャプロビジョニングのために、Proxmox環境でVMテンプレートを作成、管理、およびデプロイします。
このスキルの機能
このスキルを使用すると、次のことが可能になります。
- クラウドイメージまたはカスタム構成から仮想マシンを準備する
- 構成済みのVMを再利用可能なテンプレートに変換する
- テンプレートを複製して複数のインスタンスを作成する
- テンプレートの構成と更新を管理する
- 標準化された環境を迅速にデプロイする
- デプロイメント全体でテンプレートの一貫性を維持する
- さまざまなワークロード用に特化したテンプレートを作成する
- テンプレートを更新およびバージョン管理する
- テンプレートのライフサイクルを管理する
このスキルの使用時
このスキルは、以下が必要な場合に使用します。
- 迅速なデプロイメントのためにテンプレートVMを作成する
- Ubuntu Cloud-Init互換テンプレートを準備する
- Kubernetesクラスタ用に複数の同一VMをデプロイする
- 標準化されたアプリケーション環境を構築する
- VMプロビジョニングワークフローを自動化する
- 一貫性のあるInfrastructure-as-Codeを維持する
- Infrastructure-as-Code (IaC) 自動化をサポートする
- さまざまなプロジェクト用に再利用可能なテンプレートを作成する
- CI/CDインフラストラクチャテンプレートを構築する
利用可能なツール
コアVM管理
create_vm_advanced- 高度な構成(ディスク、ネットワーク、CD/DVD)でVMを作成しますupdate_vm_config- VM構成を更新し、テンプレートとしてマークしますget_vm_config- VM構成の詳細をすべて取得しますclone_vm- テンプレートVMを複製してインスタンスを作成しますdelete_vm- VMまたはテンプレートを削除します
サポートツール
get_vm_status- VMのステータスとリソース使用量を取得しますget_vms- ノード上のすべてのVMを一覧表示しますstart_vm- VMを起動します(テスト/構成用)stop_vm- 実行中のVMを停止しますshutdown_vm- VMを正常にシャットダウンします
テンプレートVM作成ワークフロー
ステップ1:ベースVMの準備
必要なベース構成で新しいVMを作成します。
create_vm_advanced(
node_name="pve2",
vmid=100,
name="ubuntu-22.04-template",
memory=2048,
cores=2,
sockets=1,
ide2="local:iso/jammy-server-cloudimg-amd64.iso",
sata0="local-lvm:50", # 50GB disk
net0="virtio,bridge=vmbr0"
)
ステップ2:OSのインストールと構成
- Cloud-InitイメージでVMを起動します
- ホスト名、ネットワーク、およびストレージを構成します
- 必要なパッケージとアプリケーションをインストールします
- セキュリティパッチと強化を適用します
- 自動化のためにCloud-Initを構成します
- すべての機能を徹底的にテストします
ステップ3:テンプレートとしてマーク
構成が完了し、テストされたら:
update_vm_config(
node_name="pve2",
vmid=100,
config={
"template": 1
}
)
重要: VMがテンプレートとしてマークされると、直接起動できなくなります。複製のみ可能です。
ステップ4:テンプレートからの複製
テンプレートからインスタンスを作成します。
clone_vm(
node_name="pve2",
source_vmid=100,
new_vmid=101,
new_name="web-server-01",
full=true
)
実際の例:Rancher Kubernetesテンプレート
RKE2用のUbuntuテンプレートを作成する
# 1. ベースVMを作成
create_vm_advanced(
node_name="pve2",
vmid=100,
name="ubuntu-rke2-template",
memory=4096, # コントロールプレーン用に4GB
cores=4,
sockets=1,
ide2="local:iso/jammy-server-cloudimg-amd64.iso",
sata0="local-lvm:100", # システム + RKE2用に100GB
net0="virtio,bridge=vmbr0"
)
# 2. 起動、構成、およびインストール:
# - OS構成
# - Cloud-Initセットアップ
# - RKE2依存関係 (curl, wget, etc.)
# - システム最適化
# 3. テンプレートとしてマーク
update_vm_config(
node_name="pve2",
vmid=100,
config={"template": 1}
)
# 4. Rancher Managerクラスタ用に複製
clone_vm(
node_name="pve2",
source_vmid=100,
new_vmid=101,
new_name="rancher-manager-1",
full=true
)
clone_vm(
node_name="pve2",
source_vmid=100,
new_vmid=102,
new_name="rancher-manager-2",
full=true
)
clone_vm(
node_name="pve2",
source_vmid=100,
new_vmid=103,
new_name="rancher-manager-3",
full=true
)
# 5. NPRD-Appsクラスタ用に複製
clone_vm(
node_name="pve2",
source_vmid=100,
new_vmid=201,
new_name="nprd-apps-1",
full=true
)
clone_vm(
node_name="pve2",
source_vmid=100,
new_vmid=202,
new_name="nprd-apps-2",
full=true
)
clone_vm(
node_name="pve2",
source_vmid=100,
new_vmid=203,
new_name="nprd-apps-3",
full=true
)
テンプレート構成オプション
一般的な構成パラメータ
テンプレートを作成または更新するときに、以下を設定できます。
template=1- VMをテンプレートとしてマークします(直接起動を防止します)cores=N- CPUコア数sockets=N- CPUソケット数memory=NNNN- メモリ(MB単位)sata0="storage:size"- プライマリディスクnet0="virtio,bridge=vmbr0"- ネットワーク構成ide2="storage:iso/image.iso"- インストール用のCD/DVDドライブ
Cloud-Init構成
Cloud-Initが有効なテンプレートの場合:
- カスタムCloud-Init構成用に
cicustomパラメータを設定します - 自動構成のためにユーザーデータを事前準備します
- DHCPまたは静的IPにネットワークメタデータを使用します
- デバッグ用にシリアルコンソールを有効にします
典型的なワークフロー
ワークフロー:標準Linuxテンプレートの作成
- ベース構成でVMを作成します
- Cloud-Init ISOから起動します
- ホスト名、ネットワーク、およびディスクを構成します
- ベースパッケージをインストールします:
curl wget vim git - セキュリティ強化を適用します
- VMを正常にシャットダウンします
update_vm_configでテンプレートとしてマークします- デプロイメントに必要な数だけ複製します
ワークフロー:既存のテンプレートの更新
- テンプレートを一時VMに複製します
- 更新、パッチ、セキュリティ修正を適用します
- 徹底的にテストします
- テストVMを停止します
- テストVMから新しいテンプレートを作成します
- 古いテンプレートとテストVMを削除します
- バージョンでドキュメントを更新します
ワークフロー:Kubernetesクラスタのデプロイメント
- RKE2テンプレートを作成してテストします(上記の手順)
- コントロールプレーンノード用にテンプレートを3回複製します
- ワーカーノード用にテンプレートを3回複製します
- 複製されたVMを起動します
- ネットワークを構成します(ホスト名、Cloud-Init経由のIP)
- コントロールプレーンでRKE2を初期化します
- ワーカーノードをクラスタに参加させます
- クラスタのヘルス状態を確認します
ベストプラクティス
テンプレート設計
- テンプレートを最小限に保ちます(ディスクが小さいほど、複製が速くなります)
- 一般的なツールを事前にインストールします
(原文がここで切り詰められています)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
VM Template Creation Skill
Create, manage, and deploy VM templates in your Proxmox environment for rapid, standardized infrastructure provisioning.
What this skill does
This skill enables you to:
- Prepare virtual machines from cloud images or custom configurations
- Convert configured VMs into templates for reuse
- Clone templates to create multiple instances
- Manage template configurations and updates
- Deploy standardized environments rapidly
- Maintain template consistency across deployments
- Create specialized templates for different workloads
- Update and version templates
- Manage template lifecycle
When to use this skill
Use this skill when you need to:
- Create template VMs for rapid deployment
- Prepare Ubuntu Cloud-Init compatible templates
- Deploy multiple identical VMs for Kubernetes clusters
- Build standardized application environments
- Automate VM provisioning workflows
- Maintain consistent infrastructure-as-code
- Support Infrastructure-as-Code (IaC) automation
- Create reusable templates for different projects
- Build CI/CD infrastructure templates
Available Tools
Core VM Management
create_vm_advanced- Create a VM with advanced configuration (disk, network, CD/DVD)update_vm_config- Update VM configuration and mark as templateget_vm_config- Get full VM configuration detailsclone_vm- Clone a template VM to create instancesdelete_vm- Remove a VM or template
Supporting Tools
get_vm_status- Get VM status and resource usageget_vms- List all VMs on a nodestart_vm- Start a VM (for testing/configuration)stop_vm- Stop a running VMshutdown_vm- Gracefully shut down a VM
Template VM Creation Workflow
Step 1: Prepare Base VM
Create a new VM with desired base configuration:
create_vm_advanced(
node_name="pve2",
vmid=100,
name="ubuntu-22.04-template",
memory=2048,
cores=2,
sockets=1,
ide2="local:iso/jammy-server-cloudimg-amd64.iso",
sata0="local-lvm:50", # 50GB disk
net0="virtio,bridge=vmbr0"
)
Step 2: Install and Configure OS
- Boot the VM with the Cloud-Init image
- Configure hostname, network, and storage
- Install required packages and applications
- Apply security patches and hardening
- Configure Cloud-Init for automation
- Test all functionality thoroughly
Step 3: Mark as Template
Once configuration is complete and tested:
update_vm_config(
node_name="pve2",
vmid=100,
config={
"template": 1
}
)
Important: Once a VM is marked as template, it cannot be started directly. It can only be cloned.
Step 4: Clone from Template
Create instances from the template:
clone_vm(
node_name="pve2",
source_vmid=100,
new_vmid=101,
new_name="web-server-01",
full=true
)
Real-World Example: Rancher Kubernetes Template
Create Ubuntu Template for RKE2
# 1. Create base VM
create_vm_advanced(
node_name="pve2",
vmid=100,
name="ubuntu-rke2-template",
memory=4096, # 4GB for control plane
cores=4,
sockets=1,
ide2="local:iso/jammy-server-cloudimg-amd64.iso",
sata0="local-lvm:100", # 100GB for system + RKE2
net0="virtio,bridge=vmbr0"
)
# 2. Boot, configure, and install:
# - OS configuration
# - Cloud-Init setup
# - RKE2 dependencies (curl, wget, etc.)
# - System optimization
# 3. Mark as template
update_vm_config(
node_name="pve2",
vmid=100,
config={"template": 1}
)
# 4. Clone for Rancher Manager cluster
clone_vm(
node_name="pve2",
source_vmid=100,
new_vmid=101,
new_name="rancher-manager-1",
full=true
)
clone_vm(
node_name="pve2",
source_vmid=100,
new_vmid=102,
new_name="rancher-manager-2",
full=true
)
clone_vm(
node_name="pve2",
source_vmid=100,
new_vmid=103,
new_name="rancher-manager-3",
full=true
)
# 5. Clone for NPRD-Apps cluster
clone_vm(
node_name="pve2",
source_vmid=100,
new_vmid=201,
new_name="nprd-apps-1",
full=true
)
clone_vm(
node_name="pve2",
source_vmid=100,
new_vmid=202,
new_name="nprd-apps-2",
full=true
)
clone_vm(
node_name="pve2",
source_vmid=100,
new_vmid=203,
new_name="nprd-apps-3",
full=true
)
Template Configuration Options
Common Configuration Parameters
When creating or updating templates, you can set:
template=1- Mark VM as template (prevents direct boot)cores=N- Number of CPU coressockets=N- Number of CPU socketsmemory=NNNN- Memory in MBsata0="storage:size"- Primary disknet0="virtio,bridge=vmbr0"- Network configurationide2="storage:iso/image.iso"- CD/DVD drive for installation
Cloud-Init Configuration
For Cloud-Init enabled templates:
- Set
cicustomparameter for custom Cloud-Init configs - Pre-stage user data for automatic configuration
- Use network metadata for DHCP or static IPs
- Enable serial console for debugging
Typical Workflows
Workflow: Create Standard Linux Template
- Create VM with base configuration
- Boot from Cloud-Init ISO
- Configure hostname, network, and disk
- Install base packages:
curl wget vim git - Apply security hardening
- Shutdown VM gracefully
- Mark as template with
update_vm_config - Clone as needed for deployments
Workflow: Update Existing Template
- Clone template to temporary VM
- Apply updates, patches, security fixes
- Test thoroughly
- Stop the test VM
- Create new template from test VM
- Delete old template and test VM
- Update documentation with version
Workflow: Kubernetes Cluster Deployment
- Create and test RKE2 template (steps above)
- Clone template 3 times for control plane nodes
- Clone template 3 times for worker nodes
- Boot cloned VMs
- Configure networking (hostname, IPs via Cloud-Init)
- Initialize RKE2 on control plane
- Join worker nodes to cluster
- Verify cluster health
Best Practices
Template Design
- Keep templates minimal (smaller disk = faster cloning)
- Pre-install common tools and dependencies
- Use Cloud-Init for network and host configuration
- Document template versions and purposes
- Include installation dates and applied patches
Security
- Keep templates patched and updated
- Remove sensitive data before templating
- Use strong default passwords during setup
- Enable SSH key-based authentication
- Disable unnecessary services
- Apply OS-level hardening
Performance
- Use virtio drivers for disks and network (better performance)
- Set appropriate memory/CPU for cloned VMs
- Use thin provisioning where possible
- Monitor template update frequency
Organization
- Use clear naming conventions:
distro-version-purpose - Document template contents and purpose
- Version templates systematically
- Maintain changelog for updates
- Remove old unused templates
- Tag templates with creation date
Testing
- Always test templates before deployment
- Boot cloned VMs to verify functionality
- Test network configuration with Cloud-Init
- Verify all installed packages work correctly
- Test scaling (clone multiple instances)
- Validate performance meets requirements
Example Questions
- "Create a template VM for Ubuntu 22.04 with RKE2"
- "Mark VM 100 as a template for reuse"
- "Clone template VM 100 to create 3 Kubernetes nodes"
- "What's the configuration of the Ubuntu template?"
- "Update the template to add Docker support"
- "Clone the template with custom hostname and IP"
- "Create a template for database servers"
- "Build a template for CI/CD runners"
Response Format
When using this skill, I provide:
- Clear step-by-step template creation instructions
- VM configuration commands ready to execute
- Cloning examples for your use case
- Configuration validation results
- Template status and details
- Recommendations for optimization
- Best practices guidance
Integration with Terraform
The MCP tools complement Terraform's telmate/proxmox provider:
- Use MCP to prepare and test templates interactively
- Use Terraform to clone templates at scale for production
- Use MCP to update template configurations
- Use MCP for troubleshooting template issues
- Combine for complete IaC automation
Limitations
- Templates cannot be booted directly (must be cloned)
- Large templates take longer to clone
- Network configuration happens post-clone via Cloud-Init
- Some fine-tuning may be needed per clone
- Disk image import requires manual steps (see Proxmox documentation)
Related Skills
- Virtual Machine Management - General VM lifecycle operations
- Cluster Management - Monitor Proxmox cluster health
- Disaster Recovery - Backup and restore templates
- Infrastructure as Code - Deploy with Terraform automation