→ Applies to: SynetoOS 6.x and above
Step 1. Login to SynetoOS GUI (replace <your_ip_address_or_hostname> with the correct ip/hostname)
https://<your_ip_address_or_hostname>
Step 2. From Virtualization menu, click on Virtual machines

Step 3. Shutdown the source VM
Step 4. Select the source VM, locate the disk to move, then click on the storage volume

Step 5. Save the path of the source VM

Step 6. Go back to the Virtual machines menu, select the destination VM, then click on the storage volume

Step 7. Save the path of the destination VM

Step 8. Connect to SynetoOS appliance via SSH as admin
ssh admin@<your_ip_address_or_hostname>
Step 9. Get root privileges
sudo su -
Step 10. Locate the correct disk to move in the source VM path (replace <source_VM_path> with the correct path from Step 5)
ls -lh <source_VM_path>EXAMPLE OUTPUT
ls -lh /flash/syn-volumes/c1f25408-7458-4933-ac84-4240e88290cd total 4.5K -rw-r--r-- 1 root root 8.9K Sep 23 13:06 vm_a.xml -rw------- 1 root root 120G Sep 23 13:06 vm_a_1.img -rw------- 1 root root 200G Sep 23 13:06 vm_a_2.img
Step 11. List the disks attached to the source VM and take note of the Device name (replace <source_VM_name> with the correct VM Name)
virsh domblklist --domain <source_VM_name>EXAMPLE OUTPUT
virsh domblklist --domain VM_A Target Source ------------------------------------------------------------------------------ sda - sdb /flash/syn-volumes/c1f25408-7458-4933-ac84-4240e88290cd/vm_a_1.img sdc /flash/syn-volumes/c1f25408-7458-4933-ac84-4240e88290cd/vm_a_2.imgFor this example we are gonna use disk 2, <Target_name>: sdc and <disk_name>: vm_a_2.img.
Step 12. Detach the correct disk from the source VM (replace <source_VM_name> with the correct VM Name and <Target_name> with the target name)
virsh detach-disk --domain <source_VM_name> --target <Target_name> --configEXAMPLE
virsh detach-disk --domain VM_A --target sdc --config
Step 13. Move the disk to the destination VM path (replace <source_VM_path> with the correct path from Step 5, <destination_VM_path> with the correct path from Step 7, <disk_name> with the disk name from Step 11 and <new_disk_name> with the new disk name)
mv <source_VM_path>/<disk_name> <destination_VM_path>/<new_disk_name>EXAMPLE
mv /flash/syn-volumes/c1f25408-7458-4933-ac84-4240e88290cd/vm_a_2.img /flash/syn-volumes/7d85c402-c3c8-46f9-8553-200b1bee81e7/vm_b_2.img
Step 14. List the disks of the destination VM and take note of the last Device name (replace <destination_VM_name> with the destination VM name)
virsh domblklist --domain <destination_VM_name>EXAMPLE OUTPUT
virsh domblklist --domain VM_B Target Source ------------------------------------------------------------------------------ sda - sdb /flash/syn-volumes/7d85c402-c3c8-46f9-8553-200b1bee81e7/vm_b_1.img
Step 15. Attach the correct disk to the destination VM using the next available Target name (replace <destination_VM_name>, <destination_VM_path> with the correct path from Step 7, <new_disk_name> with the disk name from Step 13 and <target_name> with the target name)
virsh attach-disk --domain <destination_VM_name> <destination_VM_path>/<new_disk_name> <target_name> --targetbus sata --persistentEXAMPLE
virsh attach-disk --domain VM_B /flash/syn-volumes/7d85c402-c3c8-46f9-8553-200b1bee81e7/vm_b_2.img sdc --targetbus sata --persistent
In case of virtio-scsi disks using device names like vda, vdb, vcd change the attach command withtargetbus scsiEXAMPLE
virsh attach-disk --domain VM_B /flash/syn-volumes/7d85c402-c3c8-46f9-8553-200b1bee81e7/vm_b_2.img vdc --targetbus scsi --persistent