pct-clone

creates a copy of an existing Proxmox LXC container

TLDR

Clone a container (linked clone by default)
$ pct clone [template_id] [new_id]
Clone with custom hostname
$ pct clone [template_id] [new_id] --hostname [name]
Create a full (independent) copy
$ pct clone [template_id] [new_id] --full
Clone to a specific storage
$ pct clone [template_id] [new_id] --full --storage [storage_name]
Clone with a descriptive note
$ pct clone [template_id] [new_id] --description "[note]"

SYNOPSIS

pct clone vmid newid [OPTIONS]

DESCRIPTION

pct clone creates a copy of an existing Proxmox LXC container. This is useful for creating multiple containers from a configured template container or for backup purposes.

PARAMETERS

vmid

The numeric ID of the source container
newid
The numeric ID for the cloned container
--hostname name
Set a custom hostname for the clone
--full
Create a full copy instead of linked clone
--target node
Target node for the clone
--storage storage
Storage for the clone's disks

CAVEATS

The source container should be stopped for a consistent clone. Linked clones share base storage with the original. Full clones are independent but require more disk space.

HISTORY

pct clone is part of the Proxmox VE virtualization platform for managing LXC containers.

SEE ALSO

pct(1), pct-create(1)