Changes

Jump to: navigation, search

Cloning VE

134 bytes added, 03:38, 18 April 2007
Change copy to use tar - keeps permissions intact, add change ip address
If you need to create an exact copy of an existing VE, these are the steps to make.
<pre> # 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 mkdir /vz/private/$NEWVE # pushd /vz/private/$OLDVE ; tar c --numeric-owner * | tar x --numeric-owner -C /vz/private/$NEWVE; popd # vi /etc/vz/conf/$NEWVE.conf # Change the IP_ADDRESS # vzctl start $NEWVE; vzctl start $OLDVE</pre>
== See also ==

Navigation menu