Difference between revisions of "Cloning VE"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(See also)
(See also)
Line 12: Line 12:
 
== See also ==
 
== See also ==
 
* http://forum.openvz.org/index.php?t=tree&th=878&mid=4749&
 
* http://forum.openvz.org/index.php?t=tree&th=878&mid=4749&
 +
The relevant services, particularly when the mySQLd encounters timeout errors, follow the following thread:
 
* http://forum.openvz.org/index.php?t=tree&goto=8481&#msg_8481
 
* http://forum.openvz.org/index.php?t=tree&goto=8481&#msg_8481
  
 
[[Category:HOWTO]]
 
[[Category:HOWTO]]

Revision as of 06:23, 21 November 2006

If you need to create an exact copy of an existing VE, these are the steps to make.

# OLDVE=222 NEWVE=333 # Just an example
# vzctl stop $OLDVE
# mkdir /vz/root/$NEWVE
# cp /etc/vz/conf/$OLDVE.conf /etc/vz/conf/$NEWVE.conf
# cp -a /vz/private/$OLDVE /vz/private/$NEWVE
# vzctl start $NEWVE; vzctl start $OLDVE

See also

The relevant services, particularly when the mySQLd encounters timeout errors, follow the following thread: