LinuxCommandLibrary

pct-clone

creates a copy of an existing Proxmox LXC container

TLDR

Clone a container

$ pct clone template_id new_id
copy
Clone with custom hostname
$ pct clone template_id new_id --hostname name
copy

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community