Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Physical to container

211 bytes added, 17:24, 26 May 2008
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.
== 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 create a second 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.
== Copying the data ==
18
edits