Skip to main content

Clone a VM

A clone is a new VM (virtual machine) with the same cores, memory, disks and networks as the source. The clone is thin: its disks refer to the disks of the source, so right after creation the clone takes up almost no space in the pool and writes new data to its own disks. The clone is created in the same pool and VDC (virtual data center) as the source.

Before you begin​

  • You need the VDC admin or Vm Developer role in this VDC, or the Cluster master role: cloning requires the same right as creating a VM.
  • The source is powered off: its status is Offline — Start, stop and restart a VM.
  • The source is not a clone: you cannot clone a clone; clone the original VM instead.
  • The source is a regular VM, not a service VM: routers and other service VMs do not have the Clone item.
  • If the VDC has a storage quota, its remainder covers the full size of the source disks: the clone is charged against the quota by the logical size of its disks, even though it takes up almost no physical space at first.

Clone the VM​

  1. Open the cloning window in one of the following ways:

    • on the VM page: Actions → Additional actions → Clone;
    • in the Virtual Machines table: ⋯ in the VM row → Additional actions → Clone.

    The Clone VM window opens. If the item is inactive, its tooltip states the reason: the VM is not powered off or is itself a clone.

  2. Check the name in the Clone name field. By default, it is the source name with the -clone suffix; the name can be up to 255 characters long.

  3. If needed, enter a Description.

  4. Click Clone.

The window changes to Clone is being created: the clone is queued and appears in the VM list with the Creating status. Click Open clone to go to the clone page, or Close.

Clone parameters​

  • Cores, memory, disks and networks — the same as the source.
  • MAC and IP addresses — new ones.
  • Pool and VDC — the same as the source.

A clone is a regular VM: you start, stop and delete it like any other VM.

Check the result​

  • A row of the clone appears in the Virtual Machines table. When the node creates the VM, the status changes to Created.
  • On the clone page, the General properties section has the Cloned from field — a link to the source — and the Clone type field with the Thin value.
  • The source page has the Linked clones section: it lists each clone with a link to its page and its status. A VM without clones does not have this section.

If Center rejects the cloning, the web interface shows a notification, for example Not enough VDC quota to create the clone.

The source and its clones​

  • You cannot delete the source while it has at least one clone: the Remove item of the source is inactive with the tooltip This VM cannot be deleted. It is a source for clones.. If the command still reaches Center, the Cannot delete VM window lists the clones. Delete the clones first, and then the source — Delete a VM.
  • You cannot move a powered-off source to another pool while it has clones: such a move would delete the disks of the clones, so Center rejects it before it starts. Delete the clones first.
  • You cannot move the disks of a clone to another pool.

More​

  • Through the API, you can set the clone's own host name, DNS servers and DNS suffix of the guest OS — the guest parameter of the vms-clone method; whatever is not set is taken from the source. A Windows host name is up to 15 characters long. The web interface does not have these fields.
  • Cloning is shown in the Tasks section — Tasks.

Next​

API methods: vms-clone — in the API reference.