Clone an Existing VM Instance

Cockpit administrators can use the Virtual machines page in the web console to clone existing virtual machine (VM) instances as needed. VM cloning is useful when deploying identical VMs to a group of users.

Note:

When a VM is cloned, the system makes a copy of the source VM XML configuration and its disk images. A new name is assigned to the newly cloned VM and the data stored on the cloned virtual disk is identical to the data stored on the source VM disk.

What Do You Need?

  • The Cockpit web console must be installed and accessible.

    For details, see these topics: Install and Enable Cockpit and Log in to the Cockpit Web Console.

  • The Cockpit-machines add-on application must be installed in the web console and the Oracle Linux virtualization packages must be installed and enabled on the host system. For more information, see Install Cockpit-Machines and Enable Virtualization.
  • A source VM instance for cloning must exist on the host system.
  • The source VM instance must not contain these configuration properties:
    • A persistent network MAC address other persistent properties that could prevent the clone from working correctly.
    • Sensitive data, such as SSH keys and password files.

    For more information on how to prepare a VM instance for cloning, see Cloning Virtual Machines in the Oracle Linux: KVM User's Guide.

  • All minimum KVM system requirements must be met on the Cockpit host system to create, run, and manage VM instances. For more information, see System Requirements and Recommendations in the Oracle Linux: KVM User's Guide.
  • The source VM instance must be shut down before the cloning process. For more information, see Start, Shutdown, Remove, or Interrupt a VM Instance.

Steps

Using the Cockpit web console, follow these steps to create a clone of an existing VM instance on the host system.
  1. In the Cockpit navigation pane, click Virtual machines.

    The Virtual machines page appears.

  2. In the Virtual machines page, navigate to the VM instance that you want to clone and select Clone from the actions menu [].

    The Create a clone VM based on [name] dialog appears.

  3. In the Create a clone dialog, perform one of the following:
    • Accept the system-assigned name for the clone VM and click Clone.

      -OR-

    • Edit the name provided for the clone VM and click Clone.

    A new VM instance is created based on the source VM configuration. The newly created VM appears in the Virtual machine list on the Virtual machines page.