Raw Importing OpenVZ Containers
From SolusVM
The Raw import feature allows you to import OpenVZ containers that exist on your host nodes that were not created with SolusVM.
This feature is ideal for importing HyperVM containers directly into SolusVM, automatically creating a user login and setting the hdd, ram and burst as it imports each container. The only restriction is that the CTID.conf must have it's variables specified in kilobytes (most do).
Heres the commands:
IMPORTANT these commands can only be run on the master node and will only import containers from slaves!
To check you have all the ips from the virtual servers on the selected node you can run this to get the full list of IPs:
php /usr/local/solusvm/system/rawimport.php --mode=raw --comm=getips --node=<NODEID>
This is important that you have all the ips added to a block assigned to that server!
Now you can import all containers from the specified node:
php /usr/local/solusvm/system/rawimport.php --mode=raw --comm=import --node=<NODEID> --email=changeme@yourmail.com
The --email flag is used to specify the default email address for the newly created clients.
Thats it! all done. You can repeat this for all the nodes you want to import.
