Applicable to:
- SolusIO
Question
How to clone a SolusIO VPS?
Answer
In the current implementation, SolusIO 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
- Log in to the SolusIO admin panel
- Create a new VPS with the same resources as the source VPS
- Stop both VPSs from SolusIO
- Find the UUID of both VPSs:
Get Hypervisor ID of VPS in SolusIO > Virtual Servers:
Example of UUID - 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
- Source:
-
Rename destination image:
# mv /var/lib/libvirt/images/46/f9616495b867f6b3c65fa7fb7b833128{,.orig}
- Copy the source image into the destination:
# qemu-img convert -O qcow2 /var/lib/libvirt/images/39/468c2ba5ab8b70016908b774297966ef /var/lib/libvirt/images/46/f9616495b867f6b3c65fa7fb7b833128
Comments
0 comments
Please sign in to leave a comment.