Sunday, February 19, 2017



Proxmox to solus migration:


Please follow the below steps for Proxmox to solus migration:
Step 1 :   Login to Proxmox server

Step 2 :   Identify the server need to migrate using below command
                  "qm list" 
Step 3:   Stop the VM
                   "qm shutdown VMID"
Step 4:   Path of image of VPS is 

                   "/var/lib/vz/images/VMID"
Step 5: To list the files.
                    "ls -l"
Step 6: Create a VPS in solus with no template. Please make sure the HDD space is larger than raw file. In the config file (usually under /home/kvm/kvmID), check the following line:
<source file=’/dev/VG_NAME/kvmID_img’/>
and make a note;
Step 7: If file is in raw copy the file to solus (stop the VPS KVMID)
dd if=filename.raw | ssh root@nodeIP ‘dd of=/dev/VG_NAME/kvmID_img’
Example:
root@CORE11:/var/lib/vz/images# dd if=102.raw | ssh root@IPaddress 'dd of=/dev/vg_e52670v3/kvm312_img'
Step 8: If the files is in qcow2 please use below command to convert to raw file.
EG: qemu-img convert vm-102-disk-1_kvm.qcow2 -O raw 102.raw
dd if=141bak.raw | ssh root@IPaddress 'dd of=/dev/vg_e52670v3/kvm313_img'
dd if=vm-104-disk-1_bak.raw | ssh root@IPaddress 'dd of=/dev/vg_e52670v3/kvm314_img'

No comments:

Post a Comment