---
title: Cloning VMs
---

# Cloning VMs {#virt-cloning-vms}

You can clone virtual machines (VMs) or create new VMs from snapshots.

> [!IMPORTANT]
> Cloning a VM with a vTPM device attached to it or creating a new VM from its snapshot is not supported.

## Cloning a VM by using the web console {#virt-cloning-vm-snapshot_virt-cloning-vms}

You can clone an existing VM by using the web console.

**Procedure**

1. Navigate to **Virtualization** → **VirtualMachines** in the web console.
2. Select a VM to open the **VirtualMachine details** page.
3. Click **Actions**.

   Alternatively, access the same menu in the tree view by right-clicking the VM.
4. Select **Clone**.
5. On the **Clone VirtualMachine** page, enter the name of the new VM.
6. Optional: Select the **Start cloned VM** checkbox to start the cloned VM.
7. Optional: In the **Volume name policy** section, select how cloned persistent volume claims (PVCs) are named:

   - **Randomize names** - The cloned PVC names are randomly generated. This is the default setting.
   - **Prefix target name** - The cloned PVC names use the target VM name as a prefix.
8. Click **Clone**.

## Creating a VM from an existing snapshot by using the web console {#virt-creating-vm-from-snapshot-web_virt-cloning-vms}

You can create a new VM by copying an existing snapshot.

**Procedure**

1. Navigate to **Virtualization** → **VirtualMachines** in the web console.
2. Select a VM to open the **VirtualMachine details** page.
3. Click the **Snapshots** tab.
4. Click the Options menu ![](/openshift-docs-markdown/images/kebab.png "Options menu") for the snapshot you want to copy.
5. Select **Create VirtualMachine**.
6. Enter the name of the VM.
7. Optional: Select the **Start this VM after creation** checkbox to start the new VM.
8. Optional: In the **Volume name policy** section, select how cloned persistent volume claims (PVCs) are named:

   - **Randomize names** - The cloned PVC names are randomly generated. This is the default setting.
   - **Prefix target name** - The cloned PVC names use the target VM name as a prefix.
9. Click **Create**.

**Additional resources**
{._additional-resources}

- [Creating VMs by cloning PVCs](/openshift-docs-markdown/virt/creating_vm/virt-creating-vms-by-cloning-pvcs#virt-creating-vms-by-cloning-pvcs)
