Files
tldr/pages.zh/linux/qm-clone.md

28 lines
747 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# qm clone
> 在 QEMU/KVM 虚拟机管理器上创建虚拟机的副本。
> 更多信息:<https://pve.proxmox.com/pve-docs/qm.1.html>。
- 复制虚拟机:
`qm copy {{vm_id}} {{new_vm_id}}`
- 使用特定名称复制虚拟机:
`qm copy {{vm_id}} {{new_vm_id}} --name {{name}}`
- 使用特定描述复制虚拟机:
`qm copy {{vm_id}} {{new_vm_id}} --description {{description}}`
- 复制虚拟机并创建所有磁盘的完整副本:
`qm copy {{vm_id}} {{new_vm_id}} --full`
- 使用特定格式进行文件存储复制虚拟机(需要 `--full`
`qm copy {{vm_id}} {{new_vm_id}} --full --format {{qcow2|raw|vmdk}}`
- 复制虚拟机后将其添加到特定池:
`qm copy {{vm_id}} {{new_vm_id}} --pool {{pool_name}}`