18
edits
Changes
no edit summary
A rough description of how to migrate existing physical server into a [[container]].
== Preparing to migrate ==
Stop most services on a machine to be migrated. “Most” means services such as web server, databases and the like — so you will not lose your data. Just leave the bare minimum (including ssh daemon).
To make things easier you may like to first follow the basic instructions elsewhere and create a dummy container based on the same Linux distribution you want to migrate. That way you can take that dummy as a template and then copy to your new migrated container and modify. You can later discard this dummy.
== Prepare a new “empty” container ==
cat /etc/vz/conf/ve-vps.basic.conf-sample > /etc/vz/conf/123.conf
Hint: Now comes the dummy container handy mentioned above: Simply copy the xxx.conf file of the dummy to your new yyy.conf and modify it.
== Copying the data ==