Cloning a VM

Using Cockpit, you can clone an existing VM and copy its configuration (type, image, attached volumes). It will create a new VM with the configuration of the source VM. You can also modify some attributes before cloning, such as the name, network isolation, or security groups.

Cloning a VM Using Cockpit

  1. In the VMs dashboard, hover over the row of the VM you want to clone, and click the IconDotMenu action menu.
    A drop-down menu appears.

  2. Click IconCloneVM Clone VM.
    The CLONE VM dialog box appears.

  3. Check the source VM information.

  4. Click Next.
    The Clone Configuration selection screen appears.

Configure Your Clone VM

Choose a Name

  1. (optional) In the New VM name field, modify the name of the VM that will be created.

    By default, the cloned VM is named after the source VM with (clone) appended.

Choose the Public Cloud or a Net and a Subregion

  1. If you want the clone VM to be created in the public Cloud:

    1. Leave the Public Cloud switch on.

    2. Select the Subregion where you want to clone your VM.

      When cloning a VM in the public Cloud, you cannot define the private IP of the VM.

  2. If you want the clone VM to be created in a Net:

    1. Switch off Public Cloud.

    2. Select one of your Subnets in the Subnet list.

    3. (optional) In the Private IP field, type the private IP for the VM, within the IP range of the Subnet.

      When you clone a VM in a Net using Cockpit:

      • Only the Subregion of the chosen Subnet is listed.

      • Network interface cards (NICs) are automatically created and attached to the VM.

Choose Security Groups

  1. (optional) From the Security groups list, select one or more existing security groups you want to assign to your VM.

    This list depends on the choice you made in the previous step. If you chose a Net, only the security groups of the chosen Net are listed.

Source VM Reboot

  1. Select one of the following options:

    • Yes - Reboot for clean state to reboot the source VM before cloning. This action ensure a clean state and a stable image.

    • No - Skip reboot to skip the reboot of the source VM before cloning.

      The image may contain unsynchronized data or incomplete transactions if you choose to skip reboot.

  2. Click Next.
    The Cloud-init selection screen appears.

Specify User Data

  1. (optional) Type user data for the VM in the Outscale section field.
    For more information, see Configuring a VM with User Data and OUTSCALE Tags.

    Cockpit then encodes this user data to Base64. The maximum size for the Base64-encoded user data is 500 kibibytes (KiB).

  2. (optional) Type user data for the VM in the Free section / Cloud-init field. For more information, see Using cloud-init with User Data.

    Cockpit then encodes this user data to Base64. The maximum size for the Base64-encoded user data is 500 kibibytes (KiB).

  3. Click Next.
    The Tags selection screen appears.

Add Tags and Tags Collection

  1. (optional) To add a tag to the resource, click IconAddFull Add New Tag and type a key and a value.

    The tag value is optional. You can add a tag by specifying a key only.

    The tag value must contain 255 characters maximum. However, there is no maximum length for the tag key.

  2. (optional) To add the resource to a tag collection, click IconTag Switch to Tag Collection, then click IconAddFull Add to Collection and type a key and a value.

    If the tag collection already exists, the resource will be added to it. If not, a new tag collection will be created and the resource will be added to it.

    The tag value is optional. You can add a tag by specifying a key only.

    The tag value must contain 255 characters maximum. However, there is no maximum length for the tag key.

  3. Click Next.
    The Summary screen appears.

Confirm the Creation

  1. Review the settings you have specified for the VM.

  2. Click Clone.
    The VM is cloned and created.

Related Pages