Clone your Linode's existing disks, configuration profiles, and interfaces to another Linode on your account. Consider these points before cloning a Linode:
-
You need the
add_linodesgrant. Run the List a user's grants operation to see if you have this grant, or talk to your local account administrator for more information. -
Cloning to a new Linode incurs a charge on your account.
-
If cloning to an existing Linode, any actions currently running or queued need to finish before you can clone to it.
-
You can run up to five concurrent clone operations, from a single Linode. If you exceed this limit, you'll receive an HTTP 400 error.
-
For Linodes using Linode interfaces, the region where you want the clone to live also needs to support Linode interfaces. You can run the GET a region operation to see what's supported. Your user's account settings also need ot be set to allow creation of Linodes with Linode interfaces.
-
Any tags you have set on your source Linode will be cloned to the target Linode.
-
If your source Linode is protected with a resource lock, the lock is not included on the clone. You'll need to add a new resource lock if you want to protect the clone.
-
If the target Linode uses Metadata, with
has_user_dataset totrue, you need to create the clone withmetadata.user_datain the request. -
If the target Linode has a
vpcinterface on its active legacy configuration profile, and it includes a1:1 NAT, the resulting clone is configured with anany1:1 NAT. See the VPC documentation guide for its specifications and limitations. -
Only next generation network (NGN) data centers (regions) support VLANs. If a VLAN is attached to your Linode and you try to clone it to a non-NGN region, the clone won't start. If a Linode can't be cloned because of an incompatibility, you're prompted to select a different region or contact support. See the VLANs Overview guide for more specifications and limitations.
linode-cli linodes clone 123 \
--linode_id 124 \
--region us-east \
--type g6-standard-2 \
--label cloned-linode \
--backups_enabled true \
--placement_group.id 528 \
--disks 25674 \
--configs 23456 \
--private_ip true \
--metadata.user_data I2Nsb3VkLWNvbmZpZw==
<https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli>linodes:read_write
<https://techdocs.akamai.com/linode-api/reference/get-started#oauth>