Re: how to make an exact copy of the VPS [message #3136 is a reply to message #3134] |
Sun, 14 May 2006 19:34 |
|
abhishek jain wrote:
> Dear Friends,
> I need to
> 1)Install openVZ will i get a Control panel for mine clients
> 2) make an exact copy of the VPS from old to new IPs. Tell me how to
> do so.
Oh I now read the subject and know what you want to do.
Say there is a VE with ID 100, and you want to make a clone of it; a new
VE will have ID 200. Here is how:
# Stop source VE
vzctl stop 100
# Copy VE private area:
cd /vz/private/
mkdir 200
cp -a 100/* 200/
# Copy VE config file
cd /etc/sysconfig/vz-scripts/
cp 100.conf 200.conf
# Change VE 200 IP address: remove old ones than add some new ones
vzctl set 200 --ipdel all --ipadd x.x.x.x --save
# Start original VE and the clone
vzctl start 100
vzctl start 200
One can write a simple shell script for that if you want to do it
regularly. As you can see, this is just a few copy and vzctl set operations.
> 3)Also can anyone point me to articles relating with the difference
> between OpenVZ and Xen based VPS., I need to know which is best, in
> terms of which can be installed easily,control panel for the client
> and ease to use/operate and system resources etc.
>
> Thanks,
> Abhishek jain
>
> ------------------------------------------------------------ ------------
>
|
|
|