Articles in this section

How to clone SolusVM 2 VPS?

Applicable to:

  • SolusVM 2

Question

How to clone a SolusVM 2 VPS?

Answer

In the current implementation, SolusVM 2 does not have such functionality.

Vote for the corresponding feature request - https://solus.uservoice.com/forums/914134-help-us-improve-solus/suggestions/35563315-clone-a-vm-from-solusvm 

As a workaround, it can be done manually:

Warning: the below steps have to be done at your risk

  1. Log in to the SolusVM 2 admin panel
  2. Create a new VPS with the same resources as the source VPS
  3. Stop both VPSs from SolusVM 2
  4. Find the UUID of both VPSs:

    Get Hypervisor ID of VPS in SolusVM 2 > Virtual Servers:

     
  5. Find the image path for both VPSs 
    • Source:

      # virsh domblklist <source_UUID>
      Target Source
      ------------------------------------------------
      sda /var/lib/libvirt/images/39/468c2ba5ab8b70016908b774297966ef
      hdb /usr/local/solus/iso_images/39/config.iso

    • Destination:

      # virsh domblklist <destination_UUID>
      Target Source
      ------------------------------------------------
      sda /var/lib/libvirt/images/46/f9616495b867f6b3c65fa7fb7b833128
      hdb /usr/local/solus/iso_images/46/config.iso

    Note: the above command outputs are examples - they will be different on another server

  6. Rename destination image:

    # mv /var/lib/libvirt/images/46/f9616495b867f6b3c65fa7fb7b833128{,.orig}

  7. Copy the source image into the destination:

    # qemu-img convert -O qcow2 /var/lib/libvirt/images/39/468c2ba5ab8b70016908b774297966ef /var/lib/libvirt/images/46/f9616495b867f6b3c65fa7fb7b833128

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.