Linux command
pve-microvm-template 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Create the default microVM template
pve-microvm-template
Clone the template
qm clone [9000] [901] --name [my-sandbox] --full
Start the cloned microVM
qm start [901] && qm terminal [901]
Remove the template
qm destroy [9000]
说明
pve-microvm-template is a helper script shipped by the pve-microvm Debian package, an experimental add-on that brings QEMU's microvm machine type to Proxmox VE. Running it once pulls a minimal OCI base image (_debian:trixie-slim_ by default, about 28 MB), converts it to a bootable disk with pve-oci-import, registers it as Proxmox VM 9000, configures the microvm machine type and serial console, and finally converts the VM into a template. Once the template exists, new microVMs can be created instantly with the standard qm clone workflow. Because microVMs boot in well under a second and use a stripped kernel with no firmware or PCI emulation, the resulting sandboxes behave more like containers than full VMs while keeping KVM-level isolation. The command is intentionally zero-argument: it is meant as a one-shot bootstrapper so that qm clone and qm start can be used for everything afterwards.
FAQ
What is the pve-microvm-template command used for?
pve-microvm-template is a helper script shipped by the pve-microvm Debian package, an experimental add-on that brings QEMU's microvm machine type to Proxmox VE. Running it once pulls a minimal OCI base image (_debian:trixie-slim_ by default, about 28 MB), converts it to a bootable disk with pve-oci-import, registers it as Proxmox VM 9000, configures the microvm machine type and serial console, and finally converts the VM into a template. Once the template exists, new microVMs can be created instantly with the standard qm clone workflow. Because microVMs boot in well under a second and use a stripped kernel with no firmware or PCI emulation, the resulting sandboxes behave more like containers than full VMs while keeping KVM-level isolation. The command is intentionally zero-argument: it is meant as a one-shot bootstrapper so that qm clone and qm start can be used for everything afterwards.
How do I run a basic pve-microvm-template example?
Run `pve-microvm-template` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more pve-microvm-template examples?
This page includes 4 examples for pve-microvm-template, plus related commands for nearby Linux tasks.