How to move an OpenVz container from an location to other

Ex: from lv_root to lv_home

locate vz.conf nano /etc/vz/vz.conf

You can replace and dump dir

DUMPDIR=/home/dump

## Template parameters

TEMPLATE=/home/template

VE_ROOT=/home/root/$VEID

VE_PRIVATE=/home/private/$VEID

! container must be stopped before moving

vzlist -a

vzctl stop xxx (container veid)

vzctl start xxx (container veid)

then move from /vz folder dump, template, root, private directory to the new location. /home

edit container conf file. xxx.conf (xxx = 101 or container number)

cd /etc/vz/conf/

nano 101.conf and make the necessary modifications

VE_ROOT="/home/root/$VEID"

VE_PRIVATE="/home/private/$VEID"

Create links between directory

ln -s /home/root /var/lib/vz
ln -s /home/private /var/lib/vz

reload config - restart vz service 

service vz restart

and now start the container.

for errors, check the log file

cat /var/log/vzctl.log