Migrate from Parallels Virtuozzo

From Virtualizor Wiki
Jump to: navigation, search

This page explains how to import Parallels Virtuozzo OpenVZ VMs to Virtualizor.

There are two possible scenarios :

  • Importing from a Remote Virtuozzo Server to a Virtualizor server
  • In place(same server) importing (Replacing Virtuozzo with Virtualizor)


Importing from Remote Server:


Note:-

  • Imported VPSes will be not running during migration process.
  • The text in angle brackets '<>' indicates it has to be replaced with values corresponding to your server.
  • A Virtualizor server should be running for exporting
  • The 'rsync' command will ask for the Virtuozzo server password .
  • The text inside the boxes with dotted borders are bash shell commands.


1. Stop the VPS you want to import by from the Virtuzzo panel.

2. Now we need to transfer the VM files from the Virtuozzo server to the Virtualizor server. This may take time, if the VM is large in size. For this, run following console commands on the server running Virtualizor :-

$ rsync -a -z -v -e ssh root@<ip of virtuzzo server>:/vz/private/<Container id>/ve.conf   /etc/sysconfig/vz-scripts/<Container id>.conf
$ rsync -a -z -v -e  ssh root@<ip of virtuzzo server>:/vz/private/<Container id>   /vz/private/ 


3. All files have now been transferred to the Virtualizor server. So, from the Virtualizor Panel, now import the vps by going to IMPORT >> IMPORT VPS in the left menu in the Virtualizor Admin panel.


4. After importing the VPSes, they will appear in the list of servers on the Virtualizor admin panel. You can then edit the VPS configuration and start your newly imported VPS.

In place(Same server) importing:-


Note:-

  • This method requires that you re-install the OS.
  • The text inside the boxes with dotted borders are bash shell commands.
  • The text in angle brackets '<>' indicates it has to be replaced with values corresponding to your server.


1) Stop all the VPSes from the Virtuozzo panel.


2) Mount the the vps container on the Virtuozzo server.

$ vzctl mount <Container id>

To confirm whether the container is mounted or not, check the Virtuozzo panel and the the status field status it should appear as mounted.


3) Copy /etc/sysconfig/vz-scripts/ to your backup drive :-

$ cp -a /etc/sysconfig/vz-scripts/ /<path to backup drive>


4)Now backup the /vz/root folder by using following command:-

 $ tar -cvzf  /<path to backup drive>/private.tar.gz  /vz/root


5) Reinstall the OS to remove the existing Virtuozzo installation.


6) Install Virtualizor on the server.


7)Now copy /vz-scripts/ from bacup hard disk to /etc/sysconfig/vz-scripts/ on the newly installed OS.

$ cp -a  /<path to backup drive>/vz-script /etc/sysconfig/vz-scripts/


8)Now delete the /vz/private folder on the server.

$ rm -rf  /vz/private/


9)Now extract /<path to backup drive>/private.tar.gz to /vz/.

$ tar -xvzf  /<path of backup drive>/private.tar.gz /vz/

From the virtualizor panel, now import the vps by going to IMPORT >> IMPORT VPS in the left menu in the Virtualizor Admin panel.


10) After importing the VPSes, they will appear in the list of servers on the Virtualizor admin panel. You can then edit the VPS configuration and start your newly imported VPS.