In this blog I have add the procedure to migrate a VMware ESXi vm to Solusvm KVM vps. Just follow the below steps.
Step 1: Find vmdk file in the Vmware server.
You can use below command
find / -name "*.vmdk"
Step 2: Stop the vm on Vmware panel.
Step 3: Get .vmdk file to destination server where you want to migrate that vm.
You can use the below command to get the .vmdk file to destination server. Run below command on destination server.
You can use the below command to get the .vmdk file to destination server. Run below command on destination server.
scp -P XX root@vmwareip:/myserver/sourcefile.vmdk /destination/
Step 4: Convert to .vmdk to .img on destination.
Step 5: Create a KVM VPS with disk space greater then or equal to the size of .vmdk file size and select no template and no iso when creating VPS.
Step 6: Once vps is booted up stop the VPS. Then run the below command to restore the img file to the lvm of the corresponding VPS.
qemu-img convert File-flat.vmdk -O raw File-flat.img
Step 5: Create a KVM VPS with disk space greater then or equal to the size of .vmdk file size and select no template and no iso when creating VPS.
Step 6: Once vps is booted up stop the VPS. Then run the below command to restore the img file to the lvm of the corresponding VPS.
dd if=File-flat.img of=/dev/YourVolumeGroupName/kvmid_img
Step 7: Once done boot the vps.
No comments:
Post a Comment