Applicable to:
- SolusVM 2
Question
How to migrate OpenVZ VPS from other virtualization platform to SolusVM 2
Answer
Migration from other virtualization platforms is not supported in SolusVM 2 at the moment.
As a workaround, use the below instruction.
Warning: this scenario was not tested and is not supported. Therefore, all the operations should be performed at your own risk. Also, it is highly recommended to test the instruction on test VPS first.
Note: Some functions may not work(i.e. networking, root password reset, backups, etc.) since SolusVM 2 uses cloud-init features for configuring VPSes.
- Log into SolusVM 2 admin panel
- Create a SolusVM 2 VPS with the same resources as the source VPS and note the new VPS UUID on Destination OpenVZ Compute Resource at SolusVM 2 > Virtual Servers > Add Server
- Stop the VPS at SolusVM 2 > Virtual Servers > VPS
- Connect to Destination OpenVZ Compute Resource via SSH
- Find the VPS the directory path where the image is located:
# cat /vz/private/UUID/ve.conf | grep image | awk -F ',' {'print $5'} | awk -F '"' {'print $1'} | awk -F '=' {'print $2'}
Where UUID is the VPS hypervisor ID(UUID) from step 3.
For example:
# cat /vz/private/634d325d-11a8-48f7-965e-f94fef1b9e3f/ve.conf | grep image | awk -F ',' {'print $5'} | awk -F '"' {'print $1'} | awk -F '=' {'print $2'}
/vz/private/1058/5aa385bf65f0e067d3537c3218f25300 - Remove the content of the directory from step 5:
# rm -f /vz/private/1058/5aa385bf65f0e067d3537c3218f25300/*
- Connect to Source OpenVZ node via SSH
- Change to directory of Source VPS image and transfer all the files to VPS image directory on Destination node:
# cd /vz/private/CTID/root.hdd
# rsync -av ./ DEST_CR_IP:/vz/private/1058/5aa385bf65f0e067d3537c3218f25300/where CTID is CT ID of the Source VPS and DEST_CR_IP is the IP address of Destination OpenVZ Compute Resource.
Note: rsync should be installed on both Source node and Destination Compute Resource.
- Start VPS at SolusVM 2 > Virtual Servers > VPS
Comments
0 comments
Please sign in to leave a comment.